-
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
Discuss: Ui settings ownership #63459
Comments
The list that should move to Core mostly makes sense to me, a few notes:
|
@joshdover For |
I agree, I just wasn't sure if this setting was used by any plugins that aren't using index patterns directly? |
At first glance App Arch list makes sense to me.
Correct, this is confusingly named but it is referring to the ID of the default index pattern, not the pattern string itself. While we are on the topic of confusing names, I think |
@flash1293 does platform need to prioritize #59755 for 7.8? Is it a hard blocker for any migration work, or just needs to get done before we can delete the legacy kibana plugin? |
@joshdover No blocker for us, can happen anytime :) |
I don't think it's a blocker for plugin migration. It should be done to make LP deletion possible, so we didn't set a high priority on #59755 |
I have a general concern or something we should keep in mind here and I need some clarification on: Once we move an advanced setting to a specific plugin and you disable that plugin I assume this advanced setting will no longer be registered? Meaning, that if you want to consume an advanced setting that is not defined within your plugin, you must have that other plugin as a dependency and/or handle that that setting might not be present at all? Are we sure that for those settings not going to core, we're not using them across plugins that might not yet have a dependency on each other? |
Yes. That would make clear that settings are part of your public contract, which would prevent accidental breaking changes when you need to update this setting.
The platform team is just not the right owner for all of them. We don't know about use-cases for every setting. When someone wants to update a setting and pings the platform team, we won't be able to verify whether changes are correct and do not affect all the consumers.
It means that either a parameter has several responsibilities or a plugin access value that doesn't belong to it. Even if we have such a problem, we can duplicate a setting in both plugins and add a migration for the current value. |
@timroes This is a good point, it should be part of the migration to audit this (I'm 83% sure we don't have that case right now though :) ). We should probably provide guidelines as well how to consume uisettings in a save way. |
Looks like it's just a small chunk of the overall list, but wrt the legacy maps settings, no objections from me to move registration to the |
@elastic/kibana-platform, What do you think of
moving into Why I think
In theory this condition cc @lukeelmers |
Came here to actually say this too 😄 With the changes in #67899, Core will be referencing this setting in the UI. Makes sense to move to Core itself, even if we're not consuming it, it acts as a global option that affects many apps. EDIT: updated the list, but if anyone objects we can change it again |
Platform team is planning to remove the legacy kibana plugin in 7.10. We still need to migrate our settings to Core, but these also need still to be migrated by other teams: @elastic/kibana-gis
@elastic/kibana-app-arch
I suspect moving these is not difficult, but we will need to do this soon in the 7.10 development cycle in order to unblock #56205 |
I have a PR open for the |
As this issue was intended for the discussion of ownership, I will close now - Maps team ( @elastic/kibana-gis ), it seems like you are missing a few migrations. |
Map migrations completed in #75887 |
Lots of UI settings are currently defined in https://github.com/elastic/kibana/blob/dd7531deb4c83a2711b0d4bc4871acea425eb8cf/src/legacy/core_plugins/kibana/ui_setting_defaults.js
These should be moved to their respective owner plugins using the
core.uiSettings.register
interface in the server part of the plugin.Here is a list of all settings in there - I added suggestions where to move them but I'm open to discuss this.
@elastic/kibana-platform
defaultRoute
👉core
dateFormat
👉core
(date format is something super central, IMHO we shouldn't split these up but put everything into core)dateFormat:tz
👉core
dateFormat:scaled
👉core
dateFormat:dow
👉core
dateNanosFormat
👉core
truncate:maxHeight
👉core
theme:darkMode
👉core
notifications:banner
👉core
notifications:lifetime:banner
👉core
notifications:lifetime:error
👉core
notifications:lifetime:warning
👉core
notifications:lifetime:info
👉core
accessibility:disableAnimations
👉core
state:storeInSessionStorage
👉core
Issue for platform team (not listing specific settings): #59755
@elastic/kibana-app-arch
query:queryString:options
👉data
query:allowLeadingWildcards
👉data
search:queryLanguage
👉data
sort:options
👉data
defaultIndex
👉data
courier:ignoreFilterIfFieldNotInIndex
👉data
courier:setRequestPreference
👉data
courier:customRequestPreference
👉data
courier:maxConcurrentShardRequests
👉data
courier:batchSearches
👉data
search:includeFrozen
👉data
histogram:barTarget
👉data
histogram:maxBars
👉data
visualize:enableLabs
👉visualizations
csv:separator
👉share
csv:quoteValues
👉share
history:limit
👉data
shortDots:enable
👉data
format:defaultTypeMap
👉data
format:number:defaultPattern
👉data
format:bytes:defaultPattern
👉data
format:percent:defaultPattern
👉data
format:currency:defaultPattern
👉data
format:number:defaultLocale
👉data
timepicker:refreshIntervalDefaults
👉data
timepicker:quickRanges
👉data
indexPattern:placeholder
👉data
filters:pinnedByDefault
👉data
filterEditor:suggestValues
👉data
@elastic/kibana-app
defaultColumns
👉discover
metaFields
👉discover
discover:sampleSize
👉discover
discover:aggs:terms:size
👉discover
discover:sort:defaultOrder
👉discover
discover:searchOnPageLoad
👉discover
doc_table:highlight
👉discover
doc_table:hideTimeColumn
👉discover
fields:popularLimit
👉discover
visualization:colorMapping
👉charts
visualization:loadingDelay
(seems to be unused)visualization:dimmingOpacity
👉vis_type_vislib
visualization:heatmap:maxBuckets
👉vis_type_vislib
savedObjects:perPage
👉saved_objects
savedObjects:listingLimit
👉saved_objects
metrics:max_buckets
👉vis_type_timeseries
context:defaultSize
👉discover
context:step
👉discover
context:tieBreakerFields
👉discover
@elastic/kibana-gis
visualization:tileMap:maxPrecision
👉vis_type_tile_map
visualization:tileMap:WMSdefaults
👉vis_type_tile_map
visualization:regionmap:showWarnings
👉vis_type_region_map
It would be super cool if someone from each team mentioned here could review the list and give their OK/concerns about the items. When everyone is happy with the allocation, I can create separate issues for each team.
The text was updated successfully, but these errors were encountered: