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

Fixed issues found during bug bash, and implemented tests #240

Merged
merged 17 commits into from
May 18, 2022

Conversation

AWSHurneyt
Copy link
Collaborator

Description

  1. Implemented unit and integration tests.
  2. Refactored the backend formatting used for 'is not' queries.
  3. Fixed a bug that prevented sorting the performance preview for doc level monitors defined with the visual editor.
  4. Fixed a bug that was causing the finding flyout triggered by the alerts table to allow multiple flyouts to be open at once.
  5. Fixed a bug that allowed doc level monitors to be defined with blank queries/tags when using the visual editor.
  6. Refactored actions component to refresh the list of channels on blur.
  7. Refactored actions component for doc level monitors to support configuration action execution options.

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.

…r clarity.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
… have default values. Refactored validation logic for doc level queries. Implemented unit tests for various doc level monitor functions.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
…removed redundant code.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
…are defined using the extraction query editor. Implemented additional form-reset logic when changing monitor types. Moved getDefaultScript to a separate helper class, and refactored the unit tests, to accommodate other monitor types.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
…uration action execution options.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
…ts table to allow multiple flyouts to be open at once.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
…vel monitors defined with the visual editor.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
…queries/tags when using the visual editor.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
…that automatically.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
@AWSHurneyt AWSHurneyt marked this pull request as ready for review May 17, 2022 17:21
@AWSHurneyt AWSHurneyt requested a review from a team May 17, 2022 17:21
@AWSHurneyt AWSHurneyt merged commit 0434b4f into opensearch-project:main May 18, 2022
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 18, 2022
* Renamed FindingsDashboard/utils to FindingsDashboard/findingsUtils for clarity.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Removed an unused helper method. Refactored various helper methods to have default values. Refactored validation logic for doc level queries. Implemented unit tests for various doc level monitor functions.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Implemented FindingPopover snapshot test.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Implemented FindingFlyout snapshot test.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Refactored DocumentLevelTriggerExpression to require selections, and removed redundant code.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Implementing integration tests

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Implemented an example trigger condition for doc level monitors that are defined using the extraction query editor. Implemented additional form-reset logic when changing monitor types. Moved getDefaultScript to a separate helper class, and refactored the unit tests, to accommodate other monitor types.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Refactored actions component for doc level monitors to support configuration action execution options.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Refactored actions component to refresh the list of channels on blur.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Fixed a bug that was causing the finding flyout triggered by the alerts table to allow multiple flyouts to be open at once.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Removed development comment.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Fixed a bug that prevented sorting the performance preview for doc level monitors defined with the visual editor.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Fixed a bug that allowed doc level monitors to be defined with blank queries/tags when using the visual editor.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Refactored the backend formatting used for 'is not' queries.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Implemented additional integration tests.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Refactored the default notify option for doc level monitors.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Removed index creation step from test as ingesting data will perform that automatically.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
(cherry picked from commit 0434b4f)
AWSHurneyt added a commit that referenced this pull request May 18, 2022
* Renamed FindingsDashboard/utils to FindingsDashboard/findingsUtils for clarity.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Removed an unused helper method. Refactored various helper methods to have default values. Refactored validation logic for doc level queries. Implemented unit tests for various doc level monitor functions.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Implemented FindingPopover snapshot test.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Implemented FindingFlyout snapshot test.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Refactored DocumentLevelTriggerExpression to require selections, and removed redundant code.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Implementing integration tests

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Implemented an example trigger condition for doc level monitors that are defined using the extraction query editor. Implemented additional form-reset logic when changing monitor types. Moved getDefaultScript to a separate helper class, and refactored the unit tests, to accommodate other monitor types.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Refactored actions component for doc level monitors to support configuration action execution options.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Refactored actions component to refresh the list of channels on blur.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Fixed a bug that was causing the finding flyout triggered by the alerts table to allow multiple flyouts to be open at once.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Removed development comment.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Fixed a bug that prevented sorting the performance preview for doc level monitors defined with the visual editor.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Fixed a bug that allowed doc level monitors to be defined with blank queries/tags when using the visual editor.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Refactored the backend formatting used for 'is not' queries.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Implemented additional integration tests.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Refactored the default notify option for doc level monitors.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Removed index creation step from test as ingesting data will perform that automatically.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
(cherry picked from commit 0434b4f)

Co-authored-by: AWSHurneyt <hurneyt@amazon.com>
AWSHurneyt added a commit to AWSHurneyt/alerting-dashboards-plugin that referenced this pull request Jun 10, 2022
…-project#240) (opensearch-project#245)

* Renamed FindingsDashboard/utils to FindingsDashboard/findingsUtils for clarity.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Removed an unused helper method. Refactored various helper methods to have default values. Refactored validation logic for doc level queries. Implemented unit tests for various doc level monitor functions.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Implemented FindingPopover snapshot test.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Implemented FindingFlyout snapshot test.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Refactored DocumentLevelTriggerExpression to require selections, and removed redundant code.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Implementing integration tests

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Implemented an example trigger condition for doc level monitors that are defined using the extraction query editor. Implemented additional form-reset logic when changing monitor types. Moved getDefaultScript to a separate helper class, and refactored the unit tests, to accommodate other monitor types.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Refactored actions component for doc level monitors to support configuration action execution options.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Refactored actions component to refresh the list of channels on blur.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Fixed a bug that was causing the finding flyout triggered by the alerts table to allow multiple flyouts to be open at once.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Removed development comment.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Fixed a bug that prevented sorting the performance preview for doc level monitors defined with the visual editor.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Fixed a bug that allowed doc level monitors to be defined with blank queries/tags when using the visual editor.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Refactored the backend formatting used for 'is not' queries.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Implemented additional integration tests.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Refactored the default notify option for doc level monitors.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Removed index creation step from test as ingesting data will perform that automatically.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
(cherry picked from commit 0434b4f)

Co-authored-by: AWSHurneyt <hurneyt@amazon.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.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