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

[Backport 2.x] [Multiple Datasource] Add data source selection service to support storing and getting selected data source updates #6875

Merged
merged 1 commit into from
May 31, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport e2c0df2 from #6827.

…oring and getting selected data source updates (#6827)

* add data source selection service

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

* export generateComponentId in util

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

* update tests and type

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

* update tests

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

* update bind in components

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

* Changeset file for PR #6827 created/updated

* test: add tests for service

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

* move dataSourceSelection out of componoent props

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

* update service class name

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

* use getter to replace dataSourceSelection props

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

* add fallback for getter

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

* test: add selection test case for component

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

---------

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 e2c0df2)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link

codecov bot commented May 31, 2024

Codecov Report

Attention: Patch coverage is 91.52542% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 67.45%. Comparing base (b4593db) to head (b62c9e2).

Files Patch % Lines
...ents/data_source_selector/data_source_selector.tsx 75.00% 2 Missing ⚠️
...c/components/data_source_view/data_source_view.tsx 75.00% 1 Missing and 1 partial ⚠️
.../data_source_selectable/data_source_selectable.tsx 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              2.x    #6875      +/-   ##
==========================================
+ Coverage   67.42%   67.45%   +0.02%     
==========================================
  Files        3442     3443       +1     
  Lines       67823    67860      +37     
  Branches    11023    11021       -2     
==========================================
+ Hits        45733    45774      +41     
+ Misses      19426    19425       -1     
+ Partials     2664     2661       -3     
Flag Coverage Δ
Linux_1 33.09% <ø> (ø)
Linux_2 55.16% <ø> (ø)
Linux_3 45.24% <91.52%> (+0.05%) ⬆️
Linux_4 34.96% <25.42%> (+<0.01%) ⬆️
Windows_1 33.11% <ø> (ø)
Windows_2 55.13% <ø> (ø)
Windows_3 45.26% <91.52%> (+0.07%) ⬆️
Windows_4 34.96% <25.42%> (+<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.

@BionIT BionIT merged commit 9bf254d into 2.x May 31, 2024
88 of 89 checks passed
@github-actions github-actions bot deleted the backport/backport-6827-to-2.x branch May 31, 2024 17:02
@BionIT BionIT added the v2.15.0 label Jun 5, 2024
@zhyuanqi zhyuanqi added the enhancement New feature or request label Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocut Skip the changelog verification check on backports enhancement New feature or request v2.15.0 valued-contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants