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

Issue #671 fix trigger name validation #794

Merged
merged 6 commits into from
Nov 27, 2023

Conversation

wang-chenxi
Copy link
Contributor

@wang-chenxi wang-chenxi commented Nov 6, 2023

Description

Worked on [ trigger name validation issue](url)

Issues Resolved

  • update the existing trigger name validation helper to make it compile with the current trigger and monitor setup
  • apply the new trigger to all types of monitor creation, and update the callback of the usage
  • address unit tests

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.

@AWSHurneyt AWSHurneyt changed the title #671 fix trigger name validation Issue #671 fix trigger name validation Nov 7, 2023
@peterzhuamazon peterzhuamazon reopened this Nov 7, 2023
Copy link

codecov bot commented Nov 7, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.78%. Comparing base (598b086) to head (7033e61).
Report is 42 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #794      +/-   ##
==========================================
- Coverage   49.84%   49.78%   -0.07%     
==========================================
  Files         232      232              
  Lines        6556     6562       +6     
  Branches      938      939       +1     
==========================================
- Hits         3268     3267       -1     
- Misses       3285     3292       +7     
  Partials        3        3              

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

@wang-chenxi
Copy link
Contributor Author

Per discussion with Thomas:

1 Backport failing - this issue is able to be ignored

2 E2E tests fails

Checked the failing tests, seems are bugs which have been pointed out in this issue

  1. Bucket-level monitors failing by visual editor:
    image
  • correlated issue mentioned in 415:
    image
  1. CompositeLevelMonitor failed
    image
    this one has not been pointed out in issue 415, however, i am not sure why it is never created.

3 codecov issue

I have no idea what is it
image

wang-chenxi and others added 4 commits November 14, 2023 20:04
Signed-off-by: Chenxi Wang <wangchenxi.us@gmail.com>
Signed-off-by: Chenxi Wang <56898616+wang-chenxi@users.noreply.github.com>
Signed-off-by: Chenxi Wang <wangchenxi.us@gmail.com>
Signed-off-by: Chenxi Wang <wangchenxi.us@gmail.com>
Signed-off-by: Chenxi Wang <wangchenxi.us@gmail.com>
@wang-chenxi
Copy link
Contributor Author

  • fixed all tests failures and the local cypress tests passed as expected:

alerting-dashboards-plugin ricl$ yarn run cypress run
yarn run v1.22.19
$ /Users/ricl/Chenxi/OpenSearch-Dashboards/plugins/alerting-dashboards-plugin/node_modules/.bin/cypress run

====================================================================================================

(Run Starting)

┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Cypress: 6.9.1 │
│ Browser: Electron 87 (headless) │
│ Specs: 9 found (acknowledge_alerts_modal_spec.js, alert_spec.js, alerts_dashboard_flyout_ │
│ spec.js, bucket_level_monitor_spec.js, cluster_metrics_monitor_spec.js, composite_ │
│ level_monitor_spec.js, document_level_monitor_spec.js, monitors_dashboard_spec.js, │
│ query_lev...) │
└────────────────────────────────────────────────────────────────────────────────────────────────┘

────────────────────────────────────────────────────────────────────────────────────────────────────

Running: acknowledge_alerts_modal_spec.js (1 of 9)
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating

AcknowledgeAlertsModal
✓ Acknowledge button disabled when more than 1 trigger selected (71495ms)
✓ Bucket-level monitor modal test (12660ms)
✓ Query-level monitor modal test (11459ms)

3 passing (2m)

(Results)

┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Tests: 3 │
│ Passing: 3 │
│ Failing: 0 │
│ Pending: 0 │
│ Skipped: 0 │
│ Screenshots: 0 │
│ Video: true │
│ Duration: 1 minute, 44 seconds │
│ Spec Ran: acknowledge_alerts_modal_spec.js │
└────────────────────────────────────────────────────────────────────────────────────────────────┘

(Video)

  • Started processing: Compressing to 32 CRF
  • Finished processing: /Users/ricl/Chenxi/OpenSearch-Dashboards/plugins/alerting-d (8 seconds)
    ashboards-plugin/cypress/videos/acknowledge_alerts_modal_sp
    ec.js.mp4

────────────────────────────────────────────────────────────────────────────────────────────────────

Running: alert_spec.js (2 of 9)

Alerts
can be in 'Active' state
✓ after the monitor starts running (70848ms)
can be in 'Acknowledged' state
✓ by clicking the button in Dashboard (4034ms)
can be in 'Completed' state
✓ when the trigger condition is not met after met once (67571ms)
can be in 'Error' state
✓ by using a wrong destination (3453ms)
can be in 'Deleted' state
✓ by deleting the monitor (4995ms)

5 passing (3m)

(Results)

┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Tests: 5 │
│ Passing: 5 │
│ Failing: 0 │
│ Pending: 0 │
│ Skipped: 0 │
│ Screenshots: 0 │
│ Video: true │
│ Duration: 2 minutes, 32 seconds │
│ Spec Ran: alert_spec.js │
└────────────────────────────────────────────────────────────────────────────────────────────────┘

(Video)

  • Started processing: Compressing to 32 CRF
    Compression progress: 95%
  • Finished processing: /Users/ricl/Chenxi/OpenSearch-Dashboards/plugins/alerting-d (11 seconds)
    ashboards-plugin/cypress/videos/alert_spec.js.mp4

────────────────────────────────────────────────────────────────────────────────────────────────────

Running: alerts_dashboard_flyout_spec.js (3 of 9)

Alerts by trigger flyout
✓ Bucket-level monitor flyout test (79639ms)
✓ Query-level monitor flyout test (8468ms)

2 passing (2m)

(Results)

┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Tests: 2 │
│ Passing: 2 │
│ Failing: 0 │
│ Pending: 0 │
│ Skipped: 0 │
│ Screenshots: 0 │
│ Video: true │
│ Duration: 1 minute, 33 seconds │
│ Spec Ran: alerts_dashboard_flyout_spec.js │
└────────────────────────────────────────────────────────────────────────────────────────────────┘

(Video)

  • Started processing: Compressing to 32 CRF
  • Finished processing: /Users/ricl/Chenxi/OpenSearch-Dashboards/plugins/alerting-d (7 seconds)
    ashboards-plugin/cypress/videos/alerts_dashboard_flyout_spe
    c.js.mp4

────────────────────────────────────────────────────────────────────────────────────────────────────

Running: bucket_level_monitor_spec.js (4 of 9)

Bucket-Level Monitors
can be created
✓ by extraction query (31371ms)
✓ by visual editor (30271ms)
can be updated
when defined by visual editor
✓ by adding trigger (15839ms)
✓ to have multiple indices (10322ms)

4 passing (2m)

(Results)

┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Tests: 4 │
│ Passing: 4 │
│ Failing: 0 │
│ Pending: 0 │
│ Skipped: 0 │
│ Screenshots: 0 │
│ Video: true │
│ Duration: 1 minute, 32 seconds │
│ Spec Ran: bucket_level_monitor_spec.js │
└────────────────────────────────────────────────────────────────────────────────────────────────┘

(Video)

  • Started processing: Compressing to 32 CRF
  • Finished processing: /Users/ricl/Chenxi/OpenSearch-Dashboards/plugins/alerting-d (8 seconds)
    ashboards-plugin/cypress/videos/bucket_level_monitor_spec.j
    s.mp4

────────────────────────────────────────────────────────────────────────────────────────────────────

Running: cluster_metrics_monitor_spec.js (5 of 9)

ClusterMetricsMonitor
can be created
✓ for the Cluster Health API (17160ms)
✓ for the Nodes Stats API (9954ms)
displays Path parameters field appropriately
✓ for the CAT Snapshots API (6055ms)
clearTriggersModal renders and behaves as expected
✓ when no triggers exist (4500ms)
✓ when triggers exist (10058ms)
can update
Cluster Health API monitor
✓ with a new trigger (8224ms)

6 passing (60s)

(Results)

┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Tests: 6 │
│ Passing: 6 │
│ Failing: 0 │
│ Pending: 0 │
│ Skipped: 0 │
│ Screenshots: 0 │
│ Video: true │
│ Duration: 59 seconds │
│ Spec Ran: cluster_metrics_monitor_spec.js │
└────────────────────────────────────────────────────────────────────────────────────────────────┘

(Video)

  • Started processing: Compressing to 32 CRF
  • Finished processing: /Users/ricl/Chenxi/OpenSearch-Dashboards/plugins/alerting-d (5 seconds)
    ashboards-plugin/cypress/videos/cluster_metrics_monitor_spe
    c.js.mp4

────────────────────────────────────────────────────────────────────────────────────────────────────

Running: composite_level_monitor_spec.js (6 of 9)

CompositeLevelMonitor
can be created
✓ by visual editor (16372ms)
can be edited
✓ by visual editor (9044ms)

2 passing (29s)

(Results)

┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Tests: 2 │
│ Passing: 2 │
│ Failing: 0 │
│ Pending: 0 │
│ Skipped: 0 │
│ Screenshots: 0 │
│ Video: true │
│ Duration: 29 seconds │
│ Spec Ran: composite_level_monitor_spec.js │
└────────────────────────────────────────────────────────────────────────────────────────────────┘

(Video)

  • Started processing: Compressing to 32 CRF
  • Finished processing: /Users/ricl/Chenxi/OpenSearch-Dashboards/plugins/alerting-d (2 seconds)
    ashboards-plugin/cypress/videos/composite_level_monitor_spe
    c.js.mp4

────────────────────────────────────────────────────────────────────────────────────────────────────

Running: document_level_monitor_spec.js (7 of 9)

DocumentLevelMonitor
can be created
✓ by extraction query editor (32911ms)
✓ by visual editor (50851ms)
can be updated
when defined with extraction query editor
✓ with a new trigger (13945ms)
when defined with visual editor
✓ with a new query and a new trigger (21817ms)
✓ with only 1 index (11381ms)

5 passing (2m)

(Results)

┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Tests: 5 │
│ Passing: 5 │
│ Failing: 0 │
│ Pending: 0 │
│ Skipped: 0 │
│ Screenshots: 0 │
│ Video: true │
│ Duration: 2 minutes, 13 seconds │
│ Spec Ran: document_level_monitor_spec.js │
└────────────────────────────────────────────────────────────────────────────────────────────────┘

(Video)

  • Started processing: Compressing to 32 CRF
    Compression progress: 99%
  • Finished processing: /Users/ricl/Chenxi/OpenSearch-Dashboards/plugins/alerting-d (11 seconds)
    ashboards-plugin/cypress/videos/document_level_monitor_spec
    .js.mp4

────────────────────────────────────────────────────────────────────────────────────────────────────

Running: monitors_dashboard_spec.js (8 of 9)

Monitors dashboard page
✓ Displays expected number of alerts (18314ms)

1 passing (29s)

(Results)

┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Tests: 1 │
│ Passing: 1 │
│ Failing: 0 │
│ Pending: 0 │
│ Skipped: 0 │
│ Screenshots: 0 │
│ Video: true │
│ Duration: 29 seconds │
│ Spec Ran: monitors_dashboard_spec.js │
└────────────────────────────────────────────────────────────────────────────────────────────────┘

(Video)

  • Started processing: Compressing to 32 CRF
  • Finished processing: /Users/ricl/Chenxi/OpenSearch-Dashboards/plugins/alerting-d (2 seconds)
    ashboards-plugin/cypress/videos/monitors_dashboard_spec.js.
    mp4

────────────────────────────────────────────────────────────────────────────────────────────────────

Running: query_level_monitor_spec.js (9 of 9)

Query-Level Monitors
can be created
✓ by extraction query (14084ms)
can be updated
✓ by changing the name (7027ms)
✓ to have multiple indices (15228ms)
can be deleted
✓ from "Actions" menu (3449ms)
can be searched
✓ by name (10763ms)
can have triggers
✓ with names that contain periods (65495ms)
schedule component displays as intended
✓ for an interval schedule (9596ms)
✓ for a cron expression schedule (6428ms)

8 passing (2m)

(Results)

┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Tests: 8 │
│ Passing: 8 │
│ Failing: 0 │
│ Pending: 0 │
│ Skipped: 0 │
│ Screenshots: 0 │
│ Video: true │
│ Duration: 2 minutes, 16 seconds │
│ Spec Ran: query_level_monitor_spec.js │
└────────────────────────────────────────────────────────────────────────────────────────────────┘

(Video)

  • Started processing: Compressing to 32 CRF
    Compression progress: 77%
  • Finished processing: /Users/ricl/Chenxi/OpenSearch-Dashboards/plugins/alerting-d (14 seconds)
    ashboards-plugin/cypress/videos/query_level_monitor_spec.js
    .mp4

====================================================================================================

(Run Finished)

   Spec                                              Tests  Passing  Failing  Pending  Skipped  

┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ✔ acknowledge_alerts_modal_spec.js 01:44 3 3 - - - │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ ✔ alert_spec.js 02:32 5 5 - - - │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ ✔ alerts_dashboard_flyout_spec.js 01:33 2 2 - - - │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ ✔ bucket_level_monitor_spec.js 01:32 4 4 - - - │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ ✔ cluster_metrics_monitor_spec.js 00:59 6 6 - - - │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ ✔ composite_level_monitor_spec.js 00:29 2 2 - - - │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ ✔ document_level_monitor_spec.js 02:13 5 5 - - - │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ ✔ monitors_dashboard_spec.js 00:29 1 1 - - - │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ ✔ query_level_monitor_spec.js 02:16 8 8 - - - │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
✔ All specs passed! 13:51 36 36 - - -

✨ Done in 936.95s.
Richards-MacBook-Pro:alerting-dashboards-plugin ricl$

Signed-off-by: Chenxi Wang <wangchenxi.us@gmail.com>
Signed-off-by: Chenxi Wang <wangchenxi.us@gmail.com>
@lezzago lezzago merged commit 83a2b3e into opensearch-project:main Nov 27, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 27, 2023
Signed-off-by: Chenxi Wang <wangchenxi.us@gmail.com>
(cherry picked from commit 83a2b3e)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AWSHurneyt pushed a commit to AWSHurneyt/alerting-dashboards-plugin that referenced this pull request Feb 5, 2024
…project#794)


Signed-off-by: Chenxi Wang <wangchenxi.us@gmail.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
amsiglan added a commit that referenced this pull request Feb 6, 2024
* Support any channel types from Notification (#743)

* Support any channel types from Notification

Signed-off-by: Ashish Agrawal <ashisagr@amazon.com>

* Remove unused CHANNEL_TYPES constant

Signed-off-by: Ashish Agrawal <ashisagr@amazon.com>

* Return empty array if failed to get features

Signed-off-by: Ashish Agrawal <ashisagr@amazon.com>

---------

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

* Drafted 2.11 release notes. (#764)

* Drafted 2.11 release notes.

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

* Drafted 2.11 release notes.

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

---------

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

* Removed "last updated by" sections from the UI. (#767)

* Removed "last updated by" section from the UI as the SearchMonitor API can no longer return that info.

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

* Updated cypress workflow.

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

---------

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

* Onboard Jenkins prod docker image to github actions (#789)

* Onboard Jenkins prod docker image to github actions

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Small typos

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Add back workflows

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Restore macos/windows

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

---------

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

* Bumped babel version. (#821)

* Bumped babel version. Adjusted babel config. Refactored unit test that started failing after bump.

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

* Updated yarn file.

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

---------

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

* Fix fetching of channels for composite monitors (#820)

* fixed incorrect use of this.props

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

* resolved dependency conflict

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

* updated babel config

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

---------

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

* Added 2.11.1 release notes. (#828)

* Amended 2.11.0 release notes.

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

* Added 2.11.1 release notes.

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

* Added 2.11.1 release notes.

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

* Added 2.11.1 release notes.

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

* Added 2.11.1 release notes.

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

---------

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

* Fixed bucket monitor groupBy/aggregation display bug. (#827)

* Fixed a bug that was causing groupBy/aggregation fields from displaying in various areas of the UI. Related issues: 816, 817, 818.

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

* Fixed trigger context object bug in issue 791.

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

* Capitalized bucket column titles, and moved bucket columns to the end of the column array.

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

* Added wait steps to reduce test flakiness.

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

* Added wait step to reduce test flakiness. Adjusted test monitor trigger condition to always triggers on a healthy clusters.

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

* Removed unused imports.

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

* fixed bucket level monitor flaky cypress test

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

---------

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
Co-authored-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Issue #671 fix trigger name validation (#794)


Signed-off-by: Chenxi Wang <wangchenxi.us@gmail.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Remove integtest.sh since it is not being used (#849)

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

* do not create Message component on every text change (#854)

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

* Implemented server API call to feature backend API.

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

* Implemented remote cluster support for creating/editing query, bucket, and cluster metrics monitors.

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

* Implemented warning model when monitor execution time exceeds a certain value.

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

* Updated alert details flyout to show remote cluster info. Updated monitor details page to show data sources.

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

* Updated unit tests.

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

* Added experimental banner.

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

* Updated snapshots.

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

* Edited text on the experimental banner.

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

* Moved getSettings call to hide Data source panel for cluster metrics monitors when remote monitoring is disabled.

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

* Updated snapshots.

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

* Increased cypress test timeout.

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

---------

Signed-off-by: Ashish Agrawal <ashisagr@amazon.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
Signed-off-by: Chenxi Wang <wangchenxi.us@gmail.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
Co-authored-by: Ashish Agrawal <ashisagr@amazon.com>
Co-authored-by: Peter Zhu <zhujiaxi@amazon.com>
Co-authored-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
Co-authored-by: Chenxi Wang <56898616+wang-chenxi@users.noreply.github.com>
Co-authored-by: Derek Ho <derek01778@gmail.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 6, 2024
* Support any channel types from Notification (#743)

* Support any channel types from Notification

Signed-off-by: Ashish Agrawal <ashisagr@amazon.com>

* Remove unused CHANNEL_TYPES constant

Signed-off-by: Ashish Agrawal <ashisagr@amazon.com>

* Return empty array if failed to get features

Signed-off-by: Ashish Agrawal <ashisagr@amazon.com>

---------

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

* Drafted 2.11 release notes. (#764)

* Drafted 2.11 release notes.

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

* Drafted 2.11 release notes.

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

---------

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

* Removed "last updated by" sections from the UI. (#767)

* Removed "last updated by" section from the UI as the SearchMonitor API can no longer return that info.

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

* Updated cypress workflow.

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

---------

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

* Onboard Jenkins prod docker image to github actions (#789)

* Onboard Jenkins prod docker image to github actions

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Small typos

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Add back workflows

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Restore macos/windows

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

---------

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

* Bumped babel version. (#821)

* Bumped babel version. Adjusted babel config. Refactored unit test that started failing after bump.

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

* Updated yarn file.

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

---------

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

* Fix fetching of channels for composite monitors (#820)

* fixed incorrect use of this.props

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

* resolved dependency conflict

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

* updated babel config

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

---------

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

* Added 2.11.1 release notes. (#828)

* Amended 2.11.0 release notes.

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

* Added 2.11.1 release notes.

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

* Added 2.11.1 release notes.

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

* Added 2.11.1 release notes.

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

* Added 2.11.1 release notes.

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

---------

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

* Fixed bucket monitor groupBy/aggregation display bug. (#827)

* Fixed a bug that was causing groupBy/aggregation fields from displaying in various areas of the UI. Related issues: 816, 817, 818.

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

* Fixed trigger context object bug in issue 791.

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

* Capitalized bucket column titles, and moved bucket columns to the end of the column array.

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

* Added wait steps to reduce test flakiness.

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

* Added wait step to reduce test flakiness. Adjusted test monitor trigger condition to always triggers on a healthy clusters.

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

* Removed unused imports.

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

* fixed bucket level monitor flaky cypress test

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

---------

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
Co-authored-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Issue #671 fix trigger name validation (#794)

Signed-off-by: Chenxi Wang <wangchenxi.us@gmail.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Remove integtest.sh since it is not being used (#849)

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

* do not create Message component on every text change (#854)

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

* Implemented server API call to feature backend API.

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

* Implemented remote cluster support for creating/editing query, bucket, and cluster metrics monitors.

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

* Implemented warning model when monitor execution time exceeds a certain value.

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

* Updated alert details flyout to show remote cluster info. Updated monitor details page to show data sources.

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

* Updated unit tests.

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

* Added experimental banner.

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

* Updated snapshots.

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

* Edited text on the experimental banner.

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

* Moved getSettings call to hide Data source panel for cluster metrics monitors when remote monitoring is disabled.

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

* Updated snapshots.

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

* Increased cypress test timeout.

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

---------

Signed-off-by: Ashish Agrawal <ashisagr@amazon.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
Signed-off-by: Chenxi Wang <wangchenxi.us@gmail.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
Co-authored-by: Ashish Agrawal <ashisagr@amazon.com>
Co-authored-by: Peter Zhu <zhujiaxi@amazon.com>
Co-authored-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
Co-authored-by: Chenxi Wang <56898616+wang-chenxi@users.noreply.github.com>
Co-authored-by: Derek Ho <derek01778@gmail.com>
(cherry picked from commit fb82368)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AWSHurneyt pushed a commit that referenced this pull request Feb 6, 2024
* Support any channel types from Notification (#743)

* Support any channel types from Notification



* Remove unused CHANNEL_TYPES constant



* Return empty array if failed to get features



---------




* Drafted 2.11 release notes. (#764)

* Drafted 2.11 release notes.



* Drafted 2.11 release notes.



---------



* Removed "last updated by" sections from the UI. (#767)

* Removed "last updated by" section from the UI as the SearchMonitor API can no longer return that info.



* Updated cypress workflow.



---------



* Onboard Jenkins prod docker image to github actions (#789)

* Onboard Jenkins prod docker image to github actions



* Small typos



* Add back workflows



* Restore macos/windows



---------




* Bumped babel version. (#821)

* Bumped babel version. Adjusted babel config. Refactored unit test that started failing after bump.



* Updated yarn file.



---------



* Fix fetching of channels for composite monitors (#820)

* fixed incorrect use of this.props



* resolved dependency conflict



* updated babel config



---------




* Added 2.11.1 release notes. (#828)

* Amended 2.11.0 release notes.



* Added 2.11.1 release notes.



* Added 2.11.1 release notes.



* Added 2.11.1 release notes.



* Added 2.11.1 release notes.



---------



* Fixed bucket monitor groupBy/aggregation display bug. (#827)

* Fixed a bug that was causing groupBy/aggregation fields from displaying in various areas of the UI. Related issues: 816, 817, 818.



* Fixed trigger context object bug in issue 791.



* Capitalized bucket column titles, and moved bucket columns to the end of the column array.



* Added wait steps to reduce test flakiness.



* Added wait step to reduce test flakiness. Adjusted test monitor trigger condition to always triggers on a healthy clusters.



* Removed unused imports.



* fixed bucket level monitor flaky cypress test



---------






* Issue #671 fix trigger name validation (#794)




* Remove integtest.sh since it is not being used (#849)




* do not create Message component on every text change (#854)




* Implemented server API call to feature backend API.



* Implemented remote cluster support for creating/editing query, bucket, and cluster metrics monitors.



* Implemented warning model when monitor execution time exceeds a certain value.



* Updated alert details flyout to show remote cluster info. Updated monitor details page to show data sources.



* Updated unit tests.



* Added experimental banner.



* Updated snapshots.



* Edited text on the experimental banner.



* Moved getSettings call to hide Data source panel for cluster metrics monitors when remote monitoring is disabled.



* Updated snapshots.



* Increased cypress test timeout.



---------












(cherry picked from commit fb82368)

Signed-off-by: Ashish Agrawal <ashisagr@amazon.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
Signed-off-by: Chenxi Wang <wangchenxi.us@gmail.com>
Signed-off-by: Derek Ho <dxho@amazon.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>
Co-authored-by: Ashish Agrawal <ashisagr@amazon.com>
Co-authored-by: Peter Zhu <zhujiaxi@amazon.com>
Co-authored-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
Co-authored-by: Chenxi Wang <56898616+wang-chenxi@users.noreply.github.com>
Co-authored-by: Derek Ho <derek01778@gmail.com>
smuthukaruppannp pushed a commit to smuthukaruppannp/alerting-dashboards-plugin that referenced this pull request Feb 7, 2024
…project#794)


Signed-off-by: Chenxi Wang <wangchenxi.us@gmail.com>
amsiglan pushed a commit that referenced this pull request Sep 4, 2024
(cherry picked from commit 83a2b3e)

Signed-off-by: Chenxi Wang <wangchenxi.us@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>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 4, 2024
Signed-off-by: Chenxi Wang <wangchenxi.us@gmail.com>
(cherry picked from commit 83a2b3e)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AWSHurneyt pushed a commit that referenced this pull request Sep 4, 2024
(cherry picked from commit 83a2b3e)

Signed-off-by: Chenxi Wang <wangchenxi.us@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.

5 participants