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

Integrate Alerting Dashboards with Notifications Plugin #220

Merged
merged 8 commits into from
Apr 19, 2022

Conversation

qreshi
Copy link
Contributor

@qreshi qreshi commented Apr 19, 2022

Description

Integrates Alerting Dashboards with the Notifications plugin:

  • Adds a banner explaining the deprecation of Destinations and a link to the Notifications plugin dashboard
  • Disabled buttons for removed actions related to Destinations
  • Supports selecting Notification Channels when creating an Action and denotes the difference between Channels and Destinations to support pre-migration scenarios

Follow-ups that need to be done in a subsequent PR:

  • Add a reference link in the "Learn more" message for Notifications when the Notifications documentation is available
  • Remove the disabled Add destination button
  • Remove the disable Add sender and Add group buttons
  • Remove the delete button for Destinations
  • Change the edit button for Destinations to view and make the fields read-only on the Destination page
  • Remove any references to Update when viewing read-only Destinations and change Cancel to be Close
  • Confirm if the Channel selection when creating an Action is disabled when Notifications is disabled and add a message there when it is

Issues Resolved

Does not completely resolve but related to opensearch-project/alerting#105

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@qreshi qreshi requested a review from a team April 19, 2022 03:19
@codecov-commenter
Copy link

codecov-commenter commented Apr 19, 2022

Codecov Report

Merging #220 (449f802) into main (259335a) will increase coverage by 0.10%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #220      +/-   ##
==========================================
+ Coverage   53.12%   53.22%   +0.10%     
==========================================
  Files         208      211       +3     
  Lines        5207     5257      +50     
  Branches      704      710       +6     
==========================================
+ Hits         2766     2798      +32     
- Misses       2439     2457      +18     
  Partials        2        2              
Impacted Files Coverage Δ
...ateDestinations/AddSenderButton/AddSenderButton.js 66.66% <0.00%> (-33.34%) ⬇️
...nations/AddEmailGroupButton/AddEmailGroupButton.js 66.66% <0.00%> (-33.34%) ⬇️
.../components/ActionEmptyPrompt/ActionEmptyPrompt.js 87.50% <0.00%> (-12.50%) ⬇️
...erting-dashboards-plugin/public/pages/Main/Main.js 38.46% <0.00%> (-3.21%) ⬇️
...er/containers/ConfigureActions/ConfigureActions.js 7.84% <0.00%> (-1.05%) ⬇️
...erting-dashboards-plugin/public/utils/constants.js 100.00% <0.00%> (ø)
...ugin/public/pages/CreateTrigger/utils/constants.js 100.00% <0.00%> (ø)
...eMonitor/containers/CreateMonitor/CreateMonitor.js 58.33% <0.00%> (ø)
...eTrigger/containers/DefineTrigger/DefineTrigger.js 12.30% <0.00%> (ø)
.../containers/ConfigureTriggers/ConfigureTriggers.js 0.00% <0.00%> (ø)
... and 14 more

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 259335a...449f802. Read the comment docs.

lezzago
lezzago previously approved these changes Apr 19, 2022
Copy link
Member

@lezzago lezzago left a comment

Choose a reason for hiding this comment

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

LGTM, just minor comments

Comment on lines +26 to +28
// export const configToSender = (config: any): SenderItemType => {
// return {
// name: config.config.name,
Copy link
Member

Choose a reason for hiding this comment

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

Can we remove these comments?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do a clean-up passthrough in a follow-up

Comment on lines +8 to +10
// NotificationItem,
// RecipientGroupItemType,
// SenderItemType,
Copy link
Member

Choose a reason for hiding this comment

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

Can we remove these comments?

@qreshi qreshi dismissed stale reviews from praveensameneni and lezzago via 449f802 April 19, 2022 05:08
@qreshi qreshi merged commit fbea210 into opensearch-project:main Apr 19, 2022
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.

4 participants