-
Notifications
You must be signed in to change notification settings - Fork 916
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
[Multiple Datasource] Move data source selectable to its own folder, fix test and a few type errors for data source selectable component #6287
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6287 +/- ##
=======================================
Coverage 67.47% 67.47%
=======================================
Files 3368 3368
Lines 65431 65433 +2
Branches 10560 10561 +1
=======================================
+ Hits 44147 44152 +5
+ Misses 18713 18709 -4
- Partials 2571 2572 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
CHANGELOG.md
Outdated
@@ -91,6 +91,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) | |||
- [BUG][MD]Expose picker using function in data source management plugin setup([#6030](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/6030)) | |||
- [BUG][Multiple Datasource] Fix data source filter bug and add tests ([#6152](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/6152)) | |||
- [BUG][Multiple Datasource] Fix obsolete snapshots for test within data source management plugin ([#6185](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/6185)) | |||
- [Multiple Datasource] Move data source selectable to its own folder, fix test and a few type errors for data source selectable component ([#6287](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/6287)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we move this changelog to Refactoring section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing out @bandinib-amzn! Right! will change in new commit
Looks like codecov check is failing. Can you add/modify UT for uncovered lines? Thanks! |
selectedOption?: SelectedDataSourceOption[]; | ||
} | ||
|
||
interface SelectedDataSourceOption extends DataSourceOption { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
non blocking comment.
interface SelectedDataSourceOption extends DataSourceOption { | |
interface SelectableDataSourceOption extends DataSourceOption { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makes more sense to call it SelectedDataSourceOption
|
||
this.props.onSelectedDataSources([selectedDataSource]); | ||
this.props.onSelectedDataSources([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
non blocking comment~
this.props.onSelectedDataSources([ | |
this.props.onSelectDataSources([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will be disruptive to change the props, plus I think onSelectedDataSources makes more sense
All checks were passing before rebase. |
Signed-off-by: Lu Yu <nluyu@amazon.com>
Signed-off-by: Lu Yu <nluyu@amazon.com>
Signed-off-by: Lu Yu <nluyu@amazon.com>
Signed-off-by: Lu Yu <nluyu@amazon.com>
The backport to
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/OpenSearch-Dashboards/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch-Dashboards/backport-2.x
# Create a new branch
git switch --create backport/backport-6287-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 e35529778c271616aa96356b6d8a240ad2cbce75
# Push it to GitHub
git push --set-upstream origin backport/backport-6287-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch-Dashboards/backport-2.x Then, create a pull request where the |
…fix test and a few type errors for data source selectable component (#6287) * Move data source selectable to its own folder and fix test Signed-off-by: Lu Yu <nluyu@amazon.com> * add change log Signed-off-by: Lu Yu <nluyu@amazon.com> * add tests and relocate change log Signed-off-by: Lu Yu <nluyu@amazon.com> * fix snapshots Signed-off-by: Lu Yu <nluyu@amazon.com> --------- Signed-off-by: Lu Yu <nluyu@amazon.com> (cherry picked from commit e355297) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
…fix test and a few type errors for data source selectable component (#6287) (#6322) * Move data source selectable to its own folder and fix test Signed-off-by: Lu Yu <nluyu@amazon.com> * add change log Signed-off-by: Lu Yu <nluyu@amazon.com> * add tests and relocate change log Signed-off-by: Lu Yu <nluyu@amazon.com> * fix snapshots Signed-off-by: Lu Yu <nluyu@amazon.com> --------- Signed-off-by: Lu Yu <nluyu@amazon.com> (cherry picked from commit e355297) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
This change moves data source selectable to its own folder, fix test and a few type errors for data source selectable component
Issues Resolved
Screenshot
dsselectable.mp4
Testing the changes
The following were performed in the video:
Check List
yarn test:jest
yarn test:jest_integration