-
Notifications
You must be signed in to change notification settings - Fork 919
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
Allow index pattern change in visualizations #1132
Conversation
* Introduced VisIndexPatternSelector: A plugin that offers the UX for modifying index patterns to other plugins * Modified the IndexPatternManagement plugin to export `IndexPatternManagmentContext` type * Modified `DefaultEditorSideBar` to use the new plugin to allow changing the index pattern of visualizations that use it * Modified `SerializedVisData` to include information about the index pattern (required for `DefaultEditorSideBar` integration) Signed-off-by: Miki <miki@amazon.com>
05fac50
to
f25ea03
Compare
@@ -0,0 +1,79 @@ | |||
/* |
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.
We can use the simplified header for new files:
https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/.eslintrc.js#L36-L41
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.
Good catch.
…project#1132) fix opensearch-project#1085 Co-authored-by: Nick Partridge <nick.ryan.partridge@gmail.com>
# [29.1.0](elastic/elastic-charts@v29.0.0...v29.1.0) (2021-04-23) ### Bug Fixes * **interaction:** remove unnecessary elements ([opensearch-project#1131](elastic/elastic-charts#1131)) ([dde7bdb](elastic/elastic-charts@dde7bdb)), closes [opensearch-project#1074](elastic/elastic-charts#1074) * **partition:** fix safari highlight bug on single slice ([opensearch-project#1132](elastic/elastic-charts#1132)) ([729c179](elastic/elastic-charts@729c179)), closes [opensearch-project#1085](elastic/elastic-charts#1085) ### Features * **tooltip:** add stickTo option ([opensearch-project#1122](elastic/elastic-charts#1122)) ([534f2a3](elastic/elastic-charts@534f2a3)), closes [opensearch-project#921](elastic/elastic-charts#921)
@AMoo-Miki what's left for this PR? Is it ready for review? |
Talked to @ashwin-pc. We believe this is working, but need to follow-up with UX and PM to see if this is a feature we need. |
Yes -- being able to change your data source will be important. Today, the only way to do that is to manually edit the saved object. I think the main challenge would be matching settings after you switch data source. (What happens when the schema is different between index patterns) |
A ton of changes have been made since this PR was raised. We will need to re-test this before merging it. |
@AMoo-Miki Can we close this then and reopen it when we have time to prioritize this? |
Closing it since its been in the backlog for a year and product roadmap has changed since. |
Signed-off-by: Joshua Li <joshuali925@gmail.com>
Signed-off-by: Joshua Li <joshuali925@gmail.com>
Signed-off-by: Miki miki@amazon.com
Description
IndexPatternManagmentContext
typeDefaultEditorSideBar
to use the new plugin to allow changing the index pattern of visualizations that use itSerializedVisData
to include information about the index pattern (required forDefaultEditorSideBar
integration)VisIndexPatternSelector.mp4
Issues Resolved
#707
Check List
yarn test:jest
yarn test:jest_integration
yarn test:ftr