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 upload missing in homepage #93623

Closed
m-adams opened this issue Mar 4, 2021 · 6 comments
Closed

File upload missing in homepage #93623

m-adams opened this issue Mar 4, 2021 · 6 comments
Labels
bug Fixes for quality problems that affect the customer experience Feature:File Upload Feature:Home Kibana home application :ml Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc

Comments

@m-adams
Copy link

m-adams commented Mar 4, 2021

Kibana version: 7.11.1

**Elasticsearch version:**7.11.1

**Server OS version:**ESS

Browser version: Chrome

Browser OS version: Mac

Original install method (e.g. download page, yum, from source, etc.): ESS

Describe the bug:

When I launch Kibana, sometimes, but not every time, the "File Upload" link is missing from the homepage.
No obvious errors in the console and that item is missing from the DOM

Screenshot 2021-03-04 at 16 01 52

Steps to reproduce:

  1. Hard to reproduce, launch Kibana multiple times

Expected behavior:

The File Upload link should be there

Screenshots (if relevant):

Screenshot 2021-03-04 at 11 33 59

Errors in browser console (if relevant):

No

Provide logs and/or server output (if relevant):

Any additional context:

@m-adams m-adams added the bug Fixes for quality problems that affect the customer experience label Mar 4, 2021
@bhavyarm bhavyarm added the Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc label Mar 4, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

@bhavyarm bhavyarm added Feature:Home Kibana home application Feature:File Upload labels Mar 4, 2021
@lukeelmers
Copy link
Member

@nreese Any thoughts as to whether this is possibly related to the recent file upload refactoring?

@nreese
Copy link
Contributor

nreese commented Mar 4, 2021

Probably not, since the first file upload refactoring work did land until 7.12 - #89640

@pgayvallet pgayvallet added this to Bug Backlog in kibana-core [DEPRECATED] Apr 7, 2021
@pgayvallet
Copy link
Contributor

pgayvallet commented Apr 13, 2021

The upload file action is registered by the ml plugin. However ml waits for the license to be fetched to ensure that it should register the action

licensing.subscribe(async (license) => {
const [coreStart] = await core.getStartServices();
const { capabilities } = coreStart.application;
if (isMlEnabled(license)) {
// add ML to home page
if (pluginsSetup.home) {
registerFeature(pluginsSetup.home);
}

This causes a race condition, as we may render the home page before the license is effectively resolved on the client side.

cc @elastic/ml-ui

I guess one possible solution would be to change the API of the FeatureCatalogueRegistry of the home plugin to expose an observable, but that represents some work and is also quite in opposition to the 'register things only during setup' logic.

@pgayvallet pgayvallet added the :ml label Apr 13, 2021
@jgowdyelastic
Copy link
Member

This is similar to how we register our sample dataset links which we only do after a license check.
image

These also suffer from a user permissions check issue where a user with no permission to create ML jobs or even no permission to access ML can still see and click the link.

@jgowdyelastic
Copy link
Member

This should be fixed by #101393
The file upload link is now registered by the new file data visualizer plugin and is not dependent on a license check

kibana-core [DEPRECATED] automation moved this from Bug Backlog to Done (7.13) Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:File Upload Feature:Home Kibana home application :ml Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Projects
Development

No branches or pull requests

7 participants