Skip to content
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

Support ability to create a visualization without an existing index pattern object #56238

Closed
stacey-gammon opened this issue Jan 28, 2020 · 9 comments
Labels
discuss Feature:Data Views Data Views code and UI - index patterns before 8.0 Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@stacey-gammon
Copy link
Contributor

I think this fits into the "Time to visualize" efforts (#51318)

It's been talked about before but I couldn't find an issue. This would allow users to skip the step of creating an index pattern object before creating a visualization. Something like:

Screen Shot 2020-01-28 at 4 38 08 PM

This ties into the generic data source concept as well, since it'd probably be nice to allow the user to type in/edit EQL inside Lens rather than navigate to "index patterns" (or if we renamed it "data sources") .

@stacey-gammon stacey-gammon added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Jan 28, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@wylieconlon
Copy link
Contributor

The title of this issue is definitely the goal, but it isn't very clear to me how we would get there. Visualizations depend heavily on the index pattern service.

@stacey-gammon
Copy link
Contributor Author

I was thinking about in the context of #55842

Either feature I understand would be a huge effort and the priority of either one inside of Lens is up in the air atm.

@wylieconlon
Copy link
Contributor

Okay, if this is Lens-specific then there is actually a datasource selector that is going to be present at a higher level than the index pattern selector. What you are seeing is rendered within the Index Pattern data source.

@timroes timroes added blocked Feature:Data Views Data Views code and UI - index patterns before 8.0 labels Apr 7, 2020
@timroes
Copy link
Contributor

timroes commented Apr 7, 2020

I marked this as blocked, since most of this would depend on having better index pattern APIs that allow us to use "ad hoc" index patterns.

@stacey-gammon
Copy link
Contributor Author

Blocked on: #69379 and #61769

@mattkime
Copy link
Contributor

Ad hoc index patterns have been available for some time but the interface has been so indirect as to make it unclear. Part of the refactoring work is to make save functionality explicit.

I think most of the work will be in the visualization, determining whether an index pattern reference is ad hoc or not.

@stacey-gammon stacey-gammon changed the title Time to visualize: create a visualization without an existing index pattern object Support ability to create a visualization without an existing index pattern object Sep 17, 2020
@mattkime
Copy link
Contributor

mattkime commented Sep 17, 2020

Need to write a better summary but this PR has the bulk of the index pattern refactor. #77791

Example -

const adHocPattern = await IndexPatterns.create({ title: 'kibana', timeFieldName: '@timestamp'});

@stacey-gammon
Copy link
Contributor Author

Closing in favor of #67711.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Feature:Data Views Data Views code and UI - index patterns before 8.0 Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

6 participants