Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(stdlib/contrib): add teams package #2866

Merged
merged 5 commits into from
Jun 18, 2020
Merged

Conversation

sranka
Copy link
Contributor

@sranka sranka commented May 25, 2020

This PR adds teams package to flux so that notifications can be sent from flux to Microsoft Teams. It is the first step in influxdata/influxdb#17939

Notes:

  • the implementation and tests follow the concepts in existing "slack" package
  • teams event handler is available in V1 kapactior
  • flux's teams package will be then used in influxdata/influxdb to introduce a new teams notification endpoint type

Done checklist

  • Test cases written
  • Sign CLA (if not already signed)

@sranka sranka marked this pull request as ready for review May 25, 2020 13:20
@rockstar rockstar self-assigned this Jun 1, 2020
@rockstar
Copy link
Contributor

rockstar commented Jun 1, 2020

Could you please move this module to use our new "contrib" layout? You can see how to do that here.

@sranka sranka changed the title feat(stdlib/teams): add teams package feat(stdlib/contrib): add teams package Jun 2, 2020
@sranka sranka force-pushed the feat/teams branch 3 times, most recently from 83b3fed to 0583b2a Compare June 2, 2020 06:27
@codecov-commenter
Copy link

codecov-commenter commented Jun 2, 2020

Codecov Report

Merging #2866 into master will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2866   +/-   ##
=======================================
  Coverage   50.81%   50.81%           
=======================================
  Files         317      318    +1     
  Lines       40307    40309    +2     
=======================================
+ Hits        20482    20484    +2     
  Misses      17454    17454           
  Partials     2371     2371           
Impacted Files Coverage Δ
stdlib/contrib/sranka/teams/flux_gen.go 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bb1cab9...6dec3c9. Read the comment docs.

@sranka
Copy link
Contributor Author

sranka commented Jun 2, 2020

@rockstar it is now refactored to a new contrib layout + I also added a README.md to the new package.

@sranka sranka force-pushed the feat/teams branch 2 times, most recently from 1b483e4 to e3eb0f0 Compare June 11, 2020 05:11
@@ -1144,7 +1144,7 @@ impl Function {
// This means they should match. Enforce this condition by inserting
// the pipe argument into the required ones with the same key.
f.req.insert(fp.k.clone(), fp.v);
g.req.insert(fp.k.clone(), gp.v);
g.req.insert(fp.k, gp.v);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

discovered by clippy, required for the tests to pass

@sranka
Copy link
Contributor Author

sranka commented Jun 11, 2020

@rockstar conflicts resolved, a new rust's clippy recommendation applied, pls merge

@sranka sranka requested a review from rockstar June 18, 2020 07:49
@rockstar rockstar merged commit fe25c2f into influxdata:master Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants