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

[Advanced Settings] hide unknown uiSettings from the UI #94876

Closed
sherry-ger opened this issue Mar 17, 2021 · 8 comments · Fixed by #128030
Closed

[Advanced Settings] hide unknown uiSettings from the UI #94876

sherry-ger opened this issue Mar 17, 2021 · 8 comments · Fixed by #128030
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Kibana Management Feature label for Data Views, Advanced Setting, Saved Object management pages Feature:uiSettings impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:medium Medium Level of Effort Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc

Comments

@sherry-ger
Copy link
Contributor

Kibana version:
7.9.3

Elasticsearch version:
7.9.3

Server OS version:

Browser version:

Browser OS version:

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

Describe the bug:

After disabling reporting, the reporting setting xpackReporting:customPdfLogo is still visible and editable in Stack Management > Kibana > Advanced Settings > General

Screen Shot 2021-03-17 at 4 24 37 PM

Expected behavior:
Since reporting is disabled, the setting should either be invisible or not editable.

@sherry-ger sherry-ger added bug Fixes for quality problems that affect the customer experience (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead labels Mar 17, 2021
@legrego legrego added Feature:Kibana Management Feature label for Data Views, Advanced Setting, Saved Object management pages Feature:uiSettings Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc and removed (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead labels Mar 25, 2021
@elasticmachine
Copy link
Contributor

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

@legrego
Copy link
Member

legrego commented Mar 25, 2021

This is less of a reporting issue, and more an issue with the way Advanced Settings are managed. I'm going to relabel this as such.

@elastic/kibana-core do you know if we have valid use-cases for supporting "custom" (unknown) advanced settings in the API or UI? It's currently a feature today, because there's special handling to support these features. Is there still benefit to keeping this around, or can we consider changing the way this works?

I know that disabling/enabling plugins can change which settings are "custom", but we can keep existing settings around without allowing them to be re-configured, right?

@mshustov
Copy link
Contributor

do you know if we have valid use-cases for supporting "custom" (unknown) advanced settings in the API or UI?

I don't see any technical argument to show them in UI when an owner plugin is disabled. @thesmallestduck @alexfrancoeur Do you see any reason to show and allow users to configure settings for disabled plugins?

@alexfrancoeur
Copy link

If it's disabled, I don't think we should show related configuration settings.

@pgayvallet
Copy link
Contributor

If it's disabled, I don't think we should show related configuration settings.

TBH I assumed this was the behavior for the way I implemented the uiSettings for the banners plugin in #94449, so +1 to hide unknown settings from the UI.

@TinaHeiligers TinaHeiligers added loe:medium Medium Level of Effort and removed loe:medium Medium Level of Effort labels Feb 6, 2022
@TinaHeiligers
Copy link
Contributor

I'm going to rename this issue to make the title more descriptive of what changes we want to make.

@TinaHeiligers TinaHeiligers changed the title [Reporting] Disable reporting does not remove reporting settings [Advanced Settings] hide unknown uiSettings from the UI Feb 6, 2022
@TinaHeiligers TinaHeiligers added EnableJiraSync loe:needs-research This issue requires some research before it can be worked on or estimated impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. labels Feb 6, 2022
@lukeelmers lukeelmers added impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:small Small Level of Effort and removed loe:needs-research This issue requires some research before it can be worked on or estimated impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. labels Mar 8, 2022
@exalate-issue-sync exalate-issue-sync bot added loe:medium Medium Level of Effort and removed loe:small Small Level of Effort labels Mar 8, 2022
@TinaHeiligers
Copy link
Contributor

TinaHeiligers commented Mar 16, 2022

Scope here is to:

  • either filter out unknown settings on the server (those that aren't explicitly registered)
  • or add a label that a setting is unknown to hide it from the UI

@TinaHeiligers
Copy link
Contributor

We removed support for disabling almost all plugins from Kibana as of 8.0. However, there are exceptions to this, with Reporting being one of them.

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:Kibana Management Feature label for Data Views, Advanced Setting, Saved Object management pages Feature:uiSettings impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:medium Medium Level of Effort Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants