-
Notifications
You must be signed in to change notification settings - Fork 86
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
adding MDS support for ISM Pages: Indices, Aliases, DataStreams, Templates & Component Templates #1006
adding MDS support for ISM Pages: Indices, Aliases, DataStreams, Templates & Component Templates #1006
Conversation
public/pages/ComposableTemplates/containers/ComposableTemplates/ComposableTemplates.tsx
Outdated
Show resolved
Hide resolved
public/pages/ComposableTemplates/containers/ComposableTemplates/ComposableTemplates.tsx
Outdated
Show resolved
Hide resolved
...es/CreateComposableTemplate/containers/CreateComposableTemplate/CreateComposableTemplate.tsx
Outdated
Show resolved
Hide resolved
public/pages/CreateComposableTemplate/containers/TemplateDetail/TemplateDetail.tsx
Show resolved
Hide resolved
public/pages/CreateDataStream/containers/CreateDataStream/CreateDataStream.tsx
Outdated
Show resolved
Hide resolved
public/pages/CreateDataStream/containers/CreateDataStream/CreateDataStream.tsx
Show resolved
Hide resolved
9caddda
to
9ef5c90
Compare
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.
Looks much better and thanks for the quick update.
Concerns left:
- Is it doable that we compute dataSourceLabel by using dataSourceList and dataSourceId?
- Can we keep one convention to pass dataSourceId across ISM?
Concerns left:
I will confirm on this by syncing up with opensearch-core team once by the end of this week, as new features are being rolled out in the data source picker this week.
I will work on this and try to come up with a convention for passing data source id across ISM.. |
@SuZhou-Joe, if we use data source id to compute data source label, it will involve a database read call and ISM plugin needs to be aware of the schema of the index where these data source details are being stored and if this schema changes our code might break. Therefore, in my opinion, we should avoid computing this in the plugin if possible and abstract this functionality away to |
...es/CreateComposableTemplate/containers/CreateComposableTemplate/CreateComposableTemplate.tsx
Outdated
Show resolved
Hide resolved
2f5b4a7
to
078bd72
Compare
…lates Signed-off-by: Ramakrishna Chilaka <[email protected]>
Signed-off-by: Ramakrishna Chilaka <[email protected]>
Signed-off-by: Ramakrishna Chilaka <[email protected]>
Signed-off-by: Ramakrishna Chilaka <[email protected]>
Signed-off-by: Ramakrishna Chilaka <[email protected]>
Signed-off-by: Ramakrishna Chilaka <[email protected]>
Signed-off-by: Ramakrishna Chilaka <[email protected]>
Signed-off-by: Ramakrishna Chilaka <[email protected]>
Signed-off-by: Ramakrishna Chilaka <[email protected]>
Co-authored-by: SuZhou-Joe <[email protected]> Signed-off-by: Ramakrishna Chilaka <[email protected]> Signed-off-by: Ramakrishna Chilaka <[email protected]>
…rcelabel Signed-off-by: Ramakrishna Chilaka <[email protected]>
Signed-off-by: Ramakrishna Chilaka <[email protected]>
Signed-off-by: Ramakrishna Chilaka <[email protected]>
50c4692
to
bd37b58
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1006 +/- ##
==========================================
+ Coverage 63.37% 63.43% +0.06%
==========================================
Files 341 344 +3
Lines 11554 11668 +114
Branches 2243 2260 +17
==========================================
+ Hits 7322 7402 +80
- Misses 3658 3689 +31
- Partials 574 577 +3 ☔ View full report in Codecov by Sentry. |
91116b7
to
0fe42ab
Compare
Signed-off-by: Ramakrishna Chilaka <[email protected]>
0fe42ab
to
bf5558d
Compare
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/index-management-dashboards-plugin/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/index-management-dashboards-plugin/backport-2.x
# Create a new branch
git switch --create backport/backport-1006-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 b151b851ef06234196208bc4505737aba375e307
# Push it to GitHub
git push --set-upstream origin backport/backport-1006-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/index-management-dashboards-plugin/backport-2.x Then, create a pull request where the |
…lates & Component Templates (opensearch-project#1006) * adding MDS support for ISM Pages: Indices, Aliases, DataStreams, Templates Signed-off-by: Ramakrishna Chilaka <[email protected]> * Reverting (not required) onCancel changes for forceMerge Signed-off-by: Ramakrishna Chilaka <[email protected]> * force mounting IndexDetail page Signed-off-by: Ramakrishna Chilaka <[email protected]> * force mounting template page Signed-off-by: Ramakrishna Chilaka <[email protected]> * clearing indexdetail on datasource change Signed-off-by: Ramakrishna Chilaka <[email protected]> * mounting data source menu as read only Signed-off-by: Ramakrishna Chilaka <[email protected]> * integrating with readonly data source Signed-off-by: Ramakrishna Chilaka <[email protected]> * re building services on page switches Signed-off-by: Ramakrishna Chilaka <[email protected]> * refactoring to common hooks and MDSEnabledComponent Signed-off-by: Ramakrishna Chilaka <[email protected]> * Update public/components/MDSEnabledComponent/MDSEnabledComponent.tsx Co-authored-by: SuZhou-Joe <[email protected]> Signed-off-by: Ramakrishna Chilaka <[email protected]> Signed-off-by: Ramakrishna Chilaka <[email protected]> * refactoring code for server & appending URL with datasourceId/datasourcelabel Signed-off-by: Ramakrishna Chilaka <[email protected]> * refactoring types & fixing tests Signed-off-by: Ramakrishna Chilaka <[email protected]> * resolving yarn.lock conflict Signed-off-by: Ramakrishna Chilaka <[email protected]> * flaky test flush action aliases Signed-off-by: Ramakrishna Chilaka <[email protected]> --------- Signed-off-by: Ramakrishna Chilaka <[email protected]> Signed-off-by: Ramakrishna Chilaka <[email protected]> Co-authored-by: SuZhou-Joe <[email protected]> (cherry picked from commit b151b85)
…lates & Component Templates (#1006) (#1018) * adding MDS support for ISM Pages: Indices, Aliases, DataStreams, Templates Signed-off-by: Ramakrishna Chilaka <[email protected]> * Reverting (not required) onCancel changes for forceMerge Signed-off-by: Ramakrishna Chilaka <[email protected]> * force mounting IndexDetail page Signed-off-by: Ramakrishna Chilaka <[email protected]> * force mounting template page Signed-off-by: Ramakrishna Chilaka <[email protected]> * clearing indexdetail on datasource change Signed-off-by: Ramakrishna Chilaka <[email protected]> * mounting data source menu as read only Signed-off-by: Ramakrishna Chilaka <[email protected]> * integrating with readonly data source Signed-off-by: Ramakrishna Chilaka <[email protected]> * re building services on page switches Signed-off-by: Ramakrishna Chilaka <[email protected]> * refactoring to common hooks and MDSEnabledComponent Signed-off-by: Ramakrishna Chilaka <[email protected]> * Update public/components/MDSEnabledComponent/MDSEnabledComponent.tsx Co-authored-by: SuZhou-Joe <[email protected]> Signed-off-by: Ramakrishna Chilaka <[email protected]> Signed-off-by: Ramakrishna Chilaka <[email protected]> * refactoring code for server & appending URL with datasourceId/datasourcelabel Signed-off-by: Ramakrishna Chilaka <[email protected]> * refactoring types & fixing tests Signed-off-by: Ramakrishna Chilaka <[email protected]> * resolving yarn.lock conflict Signed-off-by: Ramakrishna Chilaka <[email protected]> * flaky test flush action aliases Signed-off-by: Ramakrishna Chilaka <[email protected]> --------- Signed-off-by: Ramakrishna Chilaka <[email protected]> Signed-off-by: Ramakrishna Chilaka <[email protected]> Co-authored-by: SuZhou-Joe <[email protected]> (cherry picked from commit b151b85)
Description
This change adds multi data source selector (described in opensearch-project/OpenSearch-Dashboards#6035). This change adds MDS support to Indices, Aliases, Data streams, Templates & Component template pages. There will be a follow-up PR raised for the remaining pages.
Issues Resolved
#982 This issue will be solved partially through this PR.
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.