Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issues found during bug bash, and implemented tests (opensearch…
…-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>
- Loading branch information