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". |
| disabled={!this.props.dataSourceEnabled} | ||
| hideLocalCluster={this.props.hideLocalCluster} | ||
| fullWidth={true} | ||
| isClearable={false} |
There was a problem hiding this comment.
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.
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.
...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 <szhongna@amazon.com>
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 <szhongna@amazon.com> * Changeset file for PR #6544 created/updated --------- Signed-off-by: Zhongnan Su <szhongna@amazon.com> 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 <szhongna@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>
…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 <szhongna@amazon.com> * Changeset file for PR opensearch-project#6544 created/updated --------- Signed-off-by: Zhongnan Su <szhongna@amazon.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Description
dataSourceManagementas 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:jestyarn test:jest_integration