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

Moved enrichment of server features to server side #181

Merged

Conversation

amsiglan
Copy link
Collaborator

@amsiglan amsiglan commented Apr 4, 2024

Description

In notifications plugin, the response from /_plugins/_notifications/features is used to derive the available channels. Since, alerting also requires this information and uses the routes setup in the notification dashboards server to fetch the server features, this PR moves the logic of deriving channels to the server itself. This way we keep single source of truth for the available channels and alerting would get the updates for free in future.

Issues Resolved

Plays role in fixing opensearch-project/alerting-dashboards-plugin#795

Check List

  • 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.

Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
Copy link

codecov bot commented Apr 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.70%. Comparing base (7ed9bac) to head (8bd0e46).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #181   +/-   ##
=======================================
  Coverage   86.70%   86.70%           
=======================================
  Files          52       52           
  Lines        1497     1497           
  Branches      373      373           
=======================================
  Hits         1298     1298           
  Misses        196      196           
  Partials        3        3           
Flag Coverage Δ
dashboards-notifications 86.70% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
@amsiglan amsiglan merged commit 1fc2abe into opensearch-project:main Apr 18, 2024
8 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 26, 2024
* moved enrichment of server features to server side

Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>

* simplified code

Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>

---------

Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
(cherry picked from commit 1fc2abe)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AWSHurneyt pushed a commit that referenced this pull request Apr 26, 2024
* moved enrichment of server features to server side



* simplified code



---------


(cherry picked from commit 1fc2abe)

Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants