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

Implemented support for >, >=, <, and <= query operators for the doc level monitor visual editor. #508

Merged
merged 8 commits into from
Apr 17, 2023

Conversation

AWSHurneyt
Copy link
Collaborator

@AWSHurneyt AWSHurneyt commented Mar 27, 2023

Description

  1. Implemented support for >, >=, <, and <= query operators for the doc level monitor visual editor.

Issues Resolved

  1. [FEATURE] Support "<,>,<=,>=" operators for Document Level monitor queries in visual editor #433

Screenshots

Screenshot 2023-03-29 at 2 31 23 PM

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.

@codecov-commenter
Copy link

codecov-commenter commented Mar 27, 2023

Codecov Report

Merging #508 (bcd3a32) into main (6dc848e) will decrease coverage by 0.57%.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main     #508      +/-   ##
==========================================
- Coverage   53.39%   52.82%   -0.57%     
==========================================
  Files         209      211       +2     
  Lines        5501     5569      +68     
  Branches      775      781       +6     
==========================================
+ Hits         2937     2942       +5     
- Misses       2562     2625      +63     
  Partials        2        2              

see 11 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@AWSHurneyt AWSHurneyt marked this pull request as ready for review March 27, 2023 16:53
@AWSHurneyt AWSHurneyt requested a review from a team March 27, 2023 16:53
…level monitor visual editor.

Signed-off-by: AWSHurneyt <[email protected]>
…r more details." This fix will be implemented in a separate PR.

This reverts commit 3a1e8b1.

Signed-off-by: AWSHurneyt <[email protected]>
@AWSHurneyt
Copy link
Collaborator Author

Separated the fix for issue #448 into PR #513 for easy backporting.

lezzago
lezzago previously approved these changes Apr 10, 2023
public/utils/validate.js Outdated Show resolved Hide resolved
…tests to a more appropriate location.

Signed-off-by: AWSHurneyt <[email protected]>
…lemented related unit tests.

Signed-off-by: AWSHurneyt <[email protected]>
@AWSHurneyt AWSHurneyt merged commit 6089ad9 into opensearch-project:main Apr 17, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 17, 2023
…level monitor visual editor. (#508)

* Implemented support for >, >=, <, and <= query operators for the doc level monitor visual editor.

Signed-off-by: AWSHurneyt <[email protected]>

* Fixed a bug with doc level trigger creation. See issue 448 for more details.

Signed-off-by: AWSHurneyt <[email protected]>

* Revert "Fixed a bug with doc level trigger creation. See issue 448 for more details." This fix will be implemented in a separate PR.

This reverts commit 3a1e8b1.

Signed-off-by: AWSHurneyt <[email protected]>

* Fixed a bug involving the parsing of query operators.

Signed-off-by: AWSHurneyt <[email protected]>

* Implemented cypress tests to validate all support query operators.

Signed-off-by: AWSHurneyt <[email protected]>

* Renamed function based on PR feedback.

Signed-off-by: AWSHurneyt <[email protected]>

* Refactored validation method to be more succinct. Moved related unit tests to a more appropriate location.

Signed-off-by: AWSHurneyt <[email protected]>

* Refactored validation method to check whether input value is NaN. Implemented related unit tests.

Signed-off-by: AWSHurneyt <[email protected]>

---------

Signed-off-by: AWSHurneyt <[email protected]>
(cherry picked from commit 6089ad9)
AWSHurneyt added a commit that referenced this pull request Apr 17, 2023
…level monitor visual editor. (#508) (#528)

* Implemented support for >, >=, <, and <= query operators for the doc level monitor visual editor.

Signed-off-by: AWSHurneyt <[email protected]>

* Fixed a bug with doc level trigger creation. See issue 448 for more details.

Signed-off-by: AWSHurneyt <[email protected]>

* Revert "Fixed a bug with doc level trigger creation. See issue 448 for more details." This fix will be implemented in a separate PR.

This reverts commit 3a1e8b1.

Signed-off-by: AWSHurneyt <[email protected]>

* Fixed a bug involving the parsing of query operators.

Signed-off-by: AWSHurneyt <[email protected]>

* Implemented cypress tests to validate all support query operators.

Signed-off-by: AWSHurneyt <[email protected]>

* Renamed function based on PR feedback.

Signed-off-by: AWSHurneyt <[email protected]>

* Refactored validation method to be more succinct. Moved related unit tests to a more appropriate location.

Signed-off-by: AWSHurneyt <[email protected]>

* Refactored validation method to check whether input value is NaN. Implemented related unit tests.

Signed-off-by: AWSHurneyt <[email protected]>

---------

Signed-off-by: AWSHurneyt <[email protected]>
(cherry picked from commit 6089ad9)

Co-authored-by: AWSHurneyt <[email protected]>
mjsell1234 pushed a commit to mjsell1234/alerting-dashboards-plugin that referenced this pull request Jun 14, 2023
…level monitor visual editor. (opensearch-project#508)

* Implemented support for >, >=, <, and <= query operators for the doc level monitor visual editor.

Signed-off-by: AWSHurneyt <[email protected]>

* Fixed a bug with doc level trigger creation. See issue 448 for more details.

Signed-off-by: AWSHurneyt <[email protected]>

* Revert "Fixed a bug with doc level trigger creation. See issue 448 for more details." This fix will be implemented in a separate PR.

This reverts commit 3a1e8b1.

Signed-off-by: AWSHurneyt <[email protected]>

* Fixed a bug involving the parsing of query operators.

Signed-off-by: AWSHurneyt <[email protected]>

* Implemented cypress tests to validate all support query operators.

Signed-off-by: AWSHurneyt <[email protected]>

* Renamed function based on PR feedback.

Signed-off-by: AWSHurneyt <[email protected]>

* Refactored validation method to be more succinct. Moved related unit tests to a more appropriate location.

Signed-off-by: AWSHurneyt <[email protected]>

* Refactored validation method to check whether input value is NaN. Implemented related unit tests.

Signed-off-by: AWSHurneyt <[email protected]>

---------

Signed-off-by: AWSHurneyt <[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.

4 participants