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: add notifications API #10279
feat: add notifications API #10279
Conversation
we allow to list triggers, templates and services Signed-off-by: Pavel <aborilov@gmail.com>
e0c6d62
to
a52f2fe
Compare
@aborilov is there an issue and/or proposal I can look at to read up on this change? |
Codecov Report
@@ Coverage Diff @@
## master #10279 +/- ##
=======================================
Coverage 45.76% 45.76%
=======================================
Files 233 234 +1
Lines 28401 28460 +59
=======================================
+ Hits 12998 13025 +27
- Misses 13629 13658 +29
- Partials 1774 1777 +3
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Pavel <aborilov@gmail.com>
3b47779
to
fe2cdfb
Compare
for some reason notification configmap has old data, trying to fix with the sleep Signed-off-by: Pavel <aborilov@gmail.com>
fe2cdfb
to
d1f44f9
Compare
@crenshaw-dev created the issue: #10310 I think it deserves a proposal. Initially it looked like a small UI enhancement, however we are introducing a new notifications endpoint so it makes sense to discuss it first. |
Signed-off-by: Pavel <aborilov@gmail.com>
3a08e16
to
08d7670
Compare
message Triggers { | ||
repeated string triggers = 1; | ||
} | ||
|
||
message TriggersListRequest {} | ||
|
||
message Services { | ||
repeated string services = 1; | ||
} | ||
|
||
message ServicesListRequest {} | ||
|
||
message Templates { | ||
repeated string templates = 1; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if if it's short sighted for this API to return []string
or if it would be better to return []struct{name:string}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just in case? if we need something later?
what it can be for example?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For example, I believe some notifications allow for inputs from user. In addition to name, the API might provide metadata to prompt the UI to show the additional options for input (e.g. description or input name).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jessesuen done, pls check
Signed-off-by: Pavel <aborilov@gmail.com>
08d7670
to
233b34b
Compare
d025b47
to
e67b71d
Compare
to be able easily extend API in the future return list of trigger/template/service as list of structs Signed-off-by: Pavel <aborilov@gmail.com>
e67b71d
to
08fca61
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
we allow listing triggers, templates, and services
Note on DCO:
If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.
Checklist: