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

[File data visualizer] Embed component into Add Data page in home plugin #98652

Closed
jgowdyelastic opened this issue Apr 28, 2021 · 5 comments · Fixed by #100863
Closed

[File data visualizer] Embed component into Add Data page in home plugin #98652

jgowdyelastic opened this issue Apr 28, 2021 · 5 comments · Fixed by #100863
Labels
enhancement New value added to drive a business result Feature:File and Index Data Viz ML file and index data visualizer :ml v7.14.0

Comments

@jgowdyelastic
Copy link
Member

jgowdyelastic commented Apr 28, 2021

Recent work has moved ML's File Data Visualizer into it's own plugin.
The File Data Visualizer component is now being imported into the ML app and embedded into the location it originally lived.

The ability to upload data would be better suited in the home plugin's Add Data page.
When adding a new tab to the home app here to contain the File Data Visualizer component, it all works correctly, however errors in the code inform us that we cannot import code from x-pack into the home plugin.

A possible solution could be for the home plugin to allow us to register a tab for the Add data page, but this would require a lot more work than just importing the code.

@jgowdyelastic jgowdyelastic added enhancement New value added to drive a business result :ml Feature:File and Index Data Viz ML file and index data visualizer labels Apr 28, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@stacey-gammon
Copy link
Contributor

@spalger - I'm trying to find a recent issue, that I think we closed, because you should be able to import from xpack, there was just a wrong eslint error or something. Does this sound familiar to you? I'll keep looking too...

@spalger
Copy link
Contributor

spalger commented Apr 30, 2021

I'm pretty confident that we still require that x-pack code always reach out to OSS code, and not the other way around. I'm not sure which issue you're referring to, doesn't sound familiar, but I'm pretty sure that writing an import from src/plugins to x-pack is going to cause issues that we haven't quite moved past, even though we're not distributing a version of Kibana that only includes SSPL code anymore... not certain though.

@stacey-gammon
Copy link
Contributor

stacey-gammon commented May 6, 2021

I talked with @jgowdyelastic about this offline and suggested to either make the Add Data page extensible, or to move the file uploader into the home plugin itself. It sounds like the latter option was discussed but difficult due to circular dependency issues which are more and more becoming a problem

We considered this, but it came with other issues as the file_data_visualizer plugin relies on the file_upload plugin to perform some of its tasks. we had to split them because of circular dependencies with maps .
maps uses the file_upload plugin and file_data_visualizer uses embeddable maps

@jgowdyelastic - have you talked to the @elastic/kibana-core team about making the home page extensible with new tabs? This may solve the problem without introducing a dependency on maps into the home page.

@pgayvallet
Copy link
Contributor

A possible solution could be for the home plugin to allow us to register a tab for the Add data page, but this would require a lot more work than just importing the code.

I agree that this sounds like more work, however it's probably the correct approach. To be honest I thought it was already the case.

It would also allow to cleanup the tutorial directory code, to remove the hardcoded stuff for the add data tab...

if (this.state.selectedTabId === SAMPLE_DATA_TAB_ID) {
return <SampleDataSetCards addBasePath={this.props.addBasePath} />;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:File and Index Data Viz ML file and index data visualizer :ml v7.14.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants