-
Notifications
You must be signed in to change notification settings - Fork 918
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
Refactor saved object management plugin to use datasourceManagement ui API to get DataSourceSelector #6544
Refactor saved object management plugin to use datasourceManagement ui API to get DataSourceSelector #6544
Conversation
❌ Empty Changelog SectionThe Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section. |
❌ Invalid PrefixInvalid description prefix. Found "refactor saved object management plugin to use datasourceManagement ui API to get DataSourceSelector". Expected "breaking", "deprecate", "feat", "fix", "infra", "doc", "chore", "refactor", "security", "skip", or "test". |
1 similar comment
❌ Invalid PrefixInvalid description prefix. Found "refactor saved object management plugin to use datasourceManagement ui API to get DataSourceSelector". Expected "breaking", "deprecate", "feat", "fix", "infra", "doc", "chore", "refactor", "security", "skip", or "test". |
❌ Invalid PrefixInvalid description prefix. Found "refactor saved object management plugin to use datasourceManagement ui API to get DataSourceSelector". Expected "breaking", "deprecate", "feat", "fix", "infra", "doc", "chore", "refactor", "security", "skip", or "test". |
1 similar comment
❌ Invalid PrefixInvalid description prefix. Found "refactor saved object management plugin to use datasourceManagement ui API to get DataSourceSelector". Expected "breaking", "deprecate", "feat", "fix", "infra", "doc", "chore", "refactor", "security", "skip", or "test". |
fullWidth={true} | ||
isClearable={false} |
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.
Hi Zhongnan, what is this isClearable do? I did not find it in the doc here. https://quip-amazon.com/UepCAPYFGtKC/Use-Data-Source-Menu-to-Nav-Bar-or-Data-Source-Selector-inside-Page#temp:C:eCC8e412f6d533d4057af4524ca8
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 was a new prop added by this PR https://github.com/opensearch-project/OpenSearch-Dashboards/pull/6298/files, it's being passed to EuiComboBox
basically it make sure you can't clear the input, but you can switch to other option.
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.
Got it.
...ugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx
Show resolved
Hide resolved
Can we add test details? Data source turn on and off, hide local cluster on and off, etc |
sure, updated PR description with more test details and screenshots |
…i API get DataSourceSelector Signed-off-by: Zhongnan Su <[email protected]>
be613c3
to
da174e4
Compare
…i API to get DataSourceSelector (#6544) * Refactor saved object management plugin to use datasourceManagement ui API get DataSourceSelector Signed-off-by: Zhongnan Su <[email protected]> * Changeset file for PR #6544 created/updated --------- Signed-off-by: Zhongnan Su <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 36a91dd) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…i API to get DataSourceSelector (#6544) (#6556) * Refactor saved object management plugin to use datasourceManagement ui API get DataSourceSelector * Changeset file for PR #6544 created/updated --------- (cherry picked from commit 36a91dd) Signed-off-by: Zhongnan Su <[email protected]> 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>
…i API to get DataSourceSelector (opensearch-project#6544) * Refactor saved object management plugin to use datasourceManagement ui API get DataSourceSelector Signed-off-by: Zhongnan Su <[email protected]> * Changeset file for PR opensearch-project#6544 created/updated --------- Signed-off-by: Zhongnan Su <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Description
dataSourceManagement
as an optional plugin of saved obeect manamgent pluginconst DataSourceSelector = dataSourceManagement.ui
, instead of direct inporthideLocalCluster
, and no need pass to DataSourceSelector as propsIssues Resolved
#6369
fix #6546
Screenshot
Testing the changes
With datasource enabled, and localCluster shown, no other avaliable data sources.
With datasource enabled, and LocalCluster shown, with other data sources
With data source disabled
Changelog
Check List
yarn test:jest
yarn test:jest_integration