-
Notifications
You must be signed in to change notification settings - Fork 667
Alertmanager: Added Email and Slack Receiver forms, implemented Save-As-Global/Default functionality #4041
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
Alertmanager: Added Email and Slack Receiver forms, implemented Save-As-Global/Default functionality #4041
Conversation
spadgett
left a comment
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.
I'm concerned that we have no type safety with this approach. This is problem particularly because we have no API server validation on this config (it's just a YAML block in a secret). I'm not sure what to suggest, though, because it we would need to change the approach to add types.
It seems like there's too much magic converting to/from Alertmanager config property names and camel case names. I'm not sure why that's necessary.
frontend/public/components/monitoring/receiver-forms/slack-receiver-form.tsx
Outdated
Show resolved
Hide resolved
frontend/public/components/monitoring/receiver-forms/slack-receiver-form.tsx
Outdated
Show resolved
Hide resolved
frontend/public/components/monitoring/receiver-forms/slack-receiver-form.tsx
Outdated
Show resolved
Hide resolved
frontend/public/components/monitoring/receiver-forms/slack-receiver-form.tsx
Outdated
Show resolved
Hide resolved
frontend/public/components/monitoring/receiver-forms/slack-receiver-form.tsx
Outdated
Show resolved
Hide resolved
05e2a27 to
e07d7ab
Compare
|
Hi @spadgett, I believe I have addressed the majority of your review comments.
|
1580422 to
fe1086d
Compare
spadgett
left a comment
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.
Thanks, @dtaylor113. We need to make sure this can pass CI since I haven't seen it pass yet.
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.
I don't think this is right... You want aria-describedby. This will break screenreaders using the label. I would leave this off.
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.
fixed
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.
This shouldn't be necessary if you use the right checkbox styles.
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.
This is not for the checkbox, it is for the blue (?) icon
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.
This is not for the checkbox, it is for the blue (?) icon
We should give it a better name in that case.
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.
I feel like we have some existing styles you can reuse for the tooltip icon.
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.
Hi @spadgett, seaching through css, nothing jumping out at me, what's a better name? It matches the naming convention of the css definition above it in the .scss file.
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.
By convention, id should be kebab case, not camel case (here and below).
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.
fixed
fe1086d to
f002a35
Compare
|
/hold |
|
/approve We can address any further changes in follow on PRs. |
f002a35 to
aeb42ad
Compare
aeb42ad to
be2e96e
Compare
|
This was approved on Friday. Tagging again for the rebase /lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dtaylor113, spadgett The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/hold cancel |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
17 similar comments
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest |
1 similar comment
|
/retest |
${alertManagerBaseURL}/api/v2/status/to get global values not found in alertmanager-main's alertmanager.yaml's global properties.Screenshots
Follow on [WIP] PR adds advanced fields: #4044