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

[Composite monitor] UX updates #679

Merged

Conversation

amsiglan
Copy link
Collaborator

@amsiglan amsiglan commented Aug 8, 2023

Description

This PR

  • Updates monitor overview section in details page to show the related monitors with responsive design
  • Updates the trigger condition builder to have two monitors by default for every new trigger and only show delete button when there are more than 2 monitors expressions
  • Updates API used to fetch alerts from delegate monitors for a chained alert

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: Amardeepsingh Siglani <amardeep7194@gmail.com>
Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
@codecov
Copy link

codecov bot commented Aug 8, 2023

Codecov Report

Merging #679 (73f3ed9) into main (1741371) will decrease coverage by 0.20%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #679      +/-   ##
==========================================
- Coverage   50.06%   49.87%   -0.20%     
==========================================
  Files         231      233       +2     
  Lines        6503     6567      +64     
  Branches      927      938      +11     
==========================================
+ Hits         3256     3275      +19     
- Misses       3244     3289      +45     
  Partials        3        3              

see 10 files with indirect coverage changes

Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
AWSHurneyt
AWSHurneyt previously approved these changes Aug 8, 2023
Copy link
Collaborator

@AWSHurneyt AWSHurneyt left a comment

Choose a reason for hiding this comment

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

LGTM. Approved assuming cypress tests succeed locally.

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

amsiglan commented Aug 8, 2023

Cypress tests passed locally.

@amsiglan amsiglan merged commit 5025ae3 into opensearch-project:main Aug 9, 2023
7 of 9 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 9, 2023
* updated composite monitors ux

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

* updated tests

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

* remove expression when monitor unselected in list

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

* addressed PR comments

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

* fixed cypress test

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

---------

Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
(cherry picked from commit 5025ae3)
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 Aug 9, 2023
* updated composite monitors ux

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

* updated tests

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

* remove expression when monitor unselected in list

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

* addressed PR comments

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

* fixed cypress test

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

---------

Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
(cherry picked from commit 5025ae3)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
amsiglan pushed a commit that referenced this pull request Aug 15, 2023
* updated composite monitors ux



* updated tests



* remove expression when monitor unselected in list



* addressed PR comments



* fixed cypress test



---------


(cherry picked from commit 5025ae3)

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>
amsiglan pushed a commit that referenced this pull request Aug 15, 2023
* updated composite monitors ux



* updated tests



* remove expression when monitor unselected in list



* addressed PR comments



* fixed cypress test



---------


(cherry picked from commit 5025ae3)

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.

3 participants