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

Fit and Finish UX changes Pt 2 #1099

Merged
merged 8 commits into from
Sep 20, 2024

Conversation

jowg-amazon
Copy link
Contributor

Description

Second part of the fit and finish UX changes. This PR makes changes to the datasource alerts card which include:

  • Removes truncating the monitor name
  • Modifies the query that is used to grab alerts so that dataSourceId is only included as a field if data source is enabled. Without this change alerts were not fetched correctly when data source was disabled
  • Alert links to the monitor page

Data source enabled
Screenshot 2024-09-18 at 6 03 45 PM

Data source disabled
Screenshot 2024-09-18 at 6 03 01 PM

Issues Resolved

[List any issues this PR will resolve]

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.

Signed-off-by: Joanne Wang <[email protected]>
@jowg-amazon
Copy link
Contributor Author

Acknowledge alerts tests passed locally

       Spec                                              Tests  Passing  Failing  Pending  Skipped  
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✔  acknowledge_alerts_modal_spec.js         01:46        3        3        -        -        - │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    ✔  All specs passed!                        01:46        3        3        -        -        - 
    ```

Copy link

codecov bot commented Sep 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.17%. Comparing base (db4af39) to head (f3baa26).
Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1099      +/-   ##
==========================================
- Coverage   48.41%   48.17%   -0.25%     
==========================================
  Files         237      237              
  Lines        7052     7110      +58     
  Branches     1035     1045      +10     
==========================================
+ Hits         3414     3425      +11     
- Misses       3635     3682      +47     
  Partials        3        3              

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

@AWSHurneyt AWSHurneyt merged commit 42ee4fe into opensearch-project:main Sep 20, 2024
10 of 13 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 20, 2024
* remove truncated monitor name

Signed-off-by: Joanne Wang <[email protected]>

* wip

Signed-off-by: Joanne Wang <[email protected]>

* fix alerts not showing up when no datasource id

Signed-off-by: Joanne Wang <[email protected]>

* fix url for composite monitors

Signed-off-by: Joanne Wang <[email protected]>

* check if datasource is enabled

Signed-off-by: Joanne Wang <[email protected]>

* fix overflow monitor name

Signed-off-by: Joanne Wang <[email protected]>

* make monitor name truncated dynamically

Signed-off-by: Joanne Wang <[email protected]>

* change mounting point id and fix sizing

Signed-off-by: Joanne Wang <[email protected]>

---------

Signed-off-by: Joanne Wang <[email protected]>
(cherry picked from commit 42ee4fe)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 20, 2024
* remove truncated monitor name

Signed-off-by: Joanne Wang <[email protected]>

* wip

Signed-off-by: Joanne Wang <[email protected]>

* fix alerts not showing up when no datasource id

Signed-off-by: Joanne Wang <[email protected]>

* fix url for composite monitors

Signed-off-by: Joanne Wang <[email protected]>

* check if datasource is enabled

Signed-off-by: Joanne Wang <[email protected]>

* fix overflow monitor name

Signed-off-by: Joanne Wang <[email protected]>

* make monitor name truncated dynamically

Signed-off-by: Joanne Wang <[email protected]>

* change mounting point id and fix sizing

Signed-off-by: Joanne Wang <[email protected]>

---------

Signed-off-by: Joanne Wang <[email protected]>
(cherry picked from commit 42ee4fe)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
amsiglan pushed a commit that referenced this pull request Sep 20, 2024
* remove truncated monitor name



* wip



* fix alerts not showing up when no datasource id



* fix url for composite monitors



* check if datasource is enabled



* fix overflow monitor name



* make monitor name truncated dynamically



* change mounting point id and fix sizing



---------


(cherry picked from commit 42ee4fe)

Signed-off-by: Joanne Wang <[email protected]>
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>
jowg-amazon added a commit to jowg-amazon/alerting-dashboards-plugin that referenced this pull request Sep 20, 2024
* remove truncated monitor name

Signed-off-by: Joanne Wang <[email protected]>

* wip

Signed-off-by: Joanne Wang <[email protected]>

* fix alerts not showing up when no datasource id

Signed-off-by: Joanne Wang <[email protected]>

* fix url for composite monitors

Signed-off-by: Joanne Wang <[email protected]>

* check if datasource is enabled

Signed-off-by: Joanne Wang <[email protected]>

* fix overflow monitor name

Signed-off-by: Joanne Wang <[email protected]>

* make monitor name truncated dynamically

Signed-off-by: Joanne Wang <[email protected]>

* change mounting point id and fix sizing

Signed-off-by: Joanne Wang <[email protected]>

---------

Signed-off-by: Joanne Wang <[email protected]>
riysaxen-amzn pushed a commit that referenced this pull request Sep 24, 2024
* remove truncated monitor name



* wip



* fix alerts not showing up when no datasource id



* fix url for composite monitors



* check if datasource is enabled



* fix overflow monitor name



* make monitor name truncated dynamically



* change mounting point id and fix sizing



---------

Signed-off-by: Joanne Wang <[email protected]>
jowg-amazon added a commit to jowg-amazon/alerting-dashboards-plugin that referenced this pull request Sep 24, 2024
jowg-amazon added a commit to jowg-amazon/alerting-dashboards-plugin that referenced this pull request Sep 24, 2024
AWSHurneyt pushed a commit that referenced this pull request Sep 24, 2024
* Revert "Fit and Finish UX changes Pt 2 (#1099) (#1107)"

This reverts commit bfb0d79.

Signed-off-by: Joanne Wang <[email protected]>

* Revert "Fit and Finish UX Fixes (#1092) (#1094)"

This reverts commit 51d2c95.

Signed-off-by: Joanne Wang <[email protected]>

---------

Signed-off-by: Joanne Wang <[email protected]>
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.

3 participants