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

[Multi DataSource] Add removedComponentIds for data source selection service #6920

Merged
merged 5 commits into from
Jun 6, 2024

Conversation

raintygao
Copy link
Contributor

@raintygao raintygao commented Jun 5, 2024

Description

Add removedComponentIds for data source selection service.

In the implementation of some selector components, it may call onSelect function in promise.then or after await, which could be executed later than componentWillUnmount.
If some components do not use memorize and frequently unmount and mount, it is possible that the set function is triggered and selected data source stored after the componentWillUnmount emit. The security analytics page is currently known which may cause this problem.

Screenshot

No UI updates

Testing the changes

Changelog

  • feat: [Multi DataSource] Add removedComponentIds for data source selection service

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

@raintygao
Copy link
Contributor Author

Need help to add backport 2.x label.

SuZhou-Joe
SuZhou-Joe previously approved these changes Jun 5, 2024
Copy link

codecov bot commented Jun 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.46%. Comparing base (61e29b5) to head (2217fca).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6920      +/-   ##
==========================================
+ Coverage   67.44%   67.46%   +0.01%     
==========================================
  Files        3443     3443              
  Lines       67811    67815       +4     
  Branches    11032    11033       +1     
==========================================
+ Hits        45732    45748      +16     
+ Misses      19413    19401      -12     
  Partials     2666     2666              
Flag Coverage Δ
Linux_1 33.09% <ø> (ø)
Linux_2 55.06% <ø> (ø)
Linux_3 45.21% <100.00%> (+<0.01%) ⬆️
Linux_4 34.89% <50.00%> (+<0.01%) ⬆️
Windows_1 33.14% <ø> (+0.02%) ⬆️
Windows_2 55.03% <ø> (ø)
Windows_3 45.22% <100.00%> (+<0.01%) ⬆️
Windows_4 34.89% <50.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@zhongnansu zhongnansu removed the Skip-Changelog PRs that are too trivial to warrant a changelog or release notes entry label Jun 6, 2024
opensearch-changeset-bot bot added a commit to raintygao/OpenSearch-Dashboards that referenced this pull request Jun 6, 2024
@SuZhou-Joe SuZhou-Joe merged commit efab1a8 into opensearch-project:main Jun 6, 2024
67 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jun 6, 2024
…service (#6920)

* add removedComponentIds for data source selection service to fallback

Signed-off-by: tygao <tygao@amazon.com>

* update comment

Signed-off-by: tygao <tygao@amazon.com>

* update component variable snapshot in navigation plugin

Signed-off-by: tygao <tygao@amazon.com>

* Changeset file for PR #6920 created/updated

---------

Signed-off-by: tygao <tygao@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Co-authored-by: Lu Yu <nluyu@amazon.com>
(cherry picked from commit efab1a8)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
SuZhou-Joe pushed a commit that referenced this pull request Jun 6, 2024
…service (#6920) (#6944)

* add removedComponentIds for data source selection service to fallback



* update comment



* update component variable snapshot in navigation plugin



* Changeset file for PR #6920 created/updated

---------




(cherry picked from commit efab1a8)

Signed-off-by: tygao <tygao@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: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Co-authored-by: Lu Yu <nluyu@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.

4 participants