opensearch-project / dashboards-notifications

The Notifications plugin provides a central location for all of your notifications from OpenSearch plugins. You can use either OpenSearch Dashboards or the REST API to configure notifications. Dashboards offers a more organized way of selecting a channel type and selecting which OpenSearch plugin sources you want to use.
Apache License 2.0
9 stars 35 forks source link

Persist dataSourceId across applications under new Nav change #244

Closed riysaxen-amzn closed 1 week ago

riysaxen-amzn commented 2 weeks ago

Description

Issues Resolved

https://github.com/user-attachments/assets/e017361e-82c6-43b9-8440-9375167803ad

Check List

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.

riysaxen-amzn commented 2 weeks ago

UTs passing locally:

 PASS  public/pages/Main/__tests__/Main.test.tsx (34.076 s)
 PASS  public/pages/Channels/__tests__/ChannelSettingsDetails.test.tsx (23.958 s)
 PASS  public/pages/CreateChannel/__tests__/EmailSettings.test.tsx (30.083 s)
 PASS  server/utils/__tests__/helper.test.ts (8.109 s)
 PASS  public/pages/Emails/__tests__/validationHelper.test.ts (10.825 s)
 PASS  public/utils/__tests__/helper.test.ts (10.231 s)
 PASS  public/pages/CreateChannel/__tests__/validationHelper.test.ts (10.832 s)
 PASS  public/pages/Emails/__tests__/helper.test.ts (9.279 s)
 PASS  public/pages/CreateChannel/__tests__/helper.test.ts (6.319 s)
 PASS  public/components/__tests__/ContentPanelActions.test.tsx (20.771 s)
 PASS  public/components/__tests__/Modal.test.tsx (22.695 s)
 PASS  public/pages/CreateChannel/__tests__/WebhookHeaders.test.tsx (22.783 s)
 PASS  public/components/__tests__/ContentPanel.test.tsx (20.366 s)
 PASS  public/pages/Channels/__tests__/DetailsListModal.test.tsx (19.872 s)
 PASS  public/pages/Emails/__tests__/EmailGroups.test.tsx (20.635 s)
A worker process has failed to exit gracefully and has been force exited. This is likely caused by tests leaking due to improper teardown. Try running with --detectOpenHandles to find leaks. Active timers can also cause this, ensure that .unref() was called on them.

Test Suites: 45 passed, 45 total
Tests:       3 skipped, 146 passed, 149 total
Snapshots:   83 passed, 83 total
Time:        137.11 s
riysaxen-amzn commented 2 weeks ago

need to check with osd team why installation of notification plugin in osd is failing

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 82.72%. Comparing base (0bad488) to head (954c6f8). Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #244 +/- ## ========================================== - Coverage 82.79% 82.72% -0.08% ========================================== Files 55 55 Lines 1686 1702 +16 Branches 455 457 +2 ========================================== + Hits 1396 1408 +12 - Misses 283 287 +4 Partials 7 7 ``` | [Flag](https://app.codecov.io/gh/opensearch-project/dashboards-notifications/pull/244/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) | Coverage Δ | | |---|---|---| | [dashboards-notifications](https://app.codecov.io/gh/opensearch-project/dashboards-notifications/pull/244/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) | `82.72% <ø> (-0.08%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

opensearch-trigger-bot[bot] commented 1 week ago

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 128

To backport manually, run these commands in your terminal:

# Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/dashboards-notifications/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/dashboards-notifications/backport-2.x
# Create a new branch
git switch --create backport/backport-244-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 f209c40d3124fb5a52fde7b081684aec4f7fc76f
# Push it to GitHub
git push --set-upstream origin backport/backport-244-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/dashboards-notifications/backport-2.x

Then, create a pull request where the base branch is 2.x and the compare/head branch is backport/backport-244-to-2.x.