-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[uiSettings/theme] restrict theme options based on KBN_OPTIMIZER_THEMES #94834
[uiSettings/theme] restrict theme options based on KBN_OPTIMIZER_THEMES #94834
Conversation
1ce0d2b
to
7a6aa3f
Compare
7a6aa3f
to
83a80c9
Compare
@elasticmachine merge upstream |
Pinging @elastic/kibana-core (Team:Core) |
interface GetCoreSettingsOptions { | ||
isDist?: boolean; | ||
} |
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.
NIT: why optional?
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.
Mostly because this is a temporary thing that I plan to remove once we not longer need to switch back to the v7 theme, so I wanted to avoid updating all the tests which use the getCoreSettings()
fn.
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.
And if you're mostly curious about the property specifically, I didn't really want to push people to define the property if they somehow end up calling getCoreSettings()
as I'm not really sure where it's called but the places where it matters the right options are passed.
…/kibana into implement/restrict-theme-options
…trict-theme-options
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
…ES (#94834) Co-authored-by: spalger <spalger@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Thanks for this @spalger ! Do you think it would be possible to just disable the option instead of completely remove it? I think it's unclear why there's even a theme setting when there's only one option. |
Closes #94817
In development, only expose theme versions which have actually been built to avoid confusing state where v7 theme is selected but not built and things seem broken.