Skip to content

Conversation

@jordan-powers
Copy link
Contributor

Backports the following commits to 9.2:

Some settings (such as index.mapping.total_fields.
ignore_dynamic_beyond_limit) rely on the value of other settings to
determine their default value.

When retrieving a setting value or default, the api allows the user to
specify a filter, and the returned settings object will be filtered to only
include the relevant setting.

However, we are currently applying this filter to the settings object that
we pass to the defaults providers. This means that the other setting(s)
which determines the default value for the dependent setting might be
hidden by the filter, and so an incorrect default will be returned.

This PR fixes that logic so that the unfiltered set of all set settings is
passed into the default values provider.
@jordan-powers jordan-powers added :Core/Infra/Settings Settings infrastructure and APIs >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Core/Infra Meta label for core/infra team labels Nov 17, 2025
@elasticsearchmachine elasticsearchmachine merged commit 9cd5d9a into elastic:9.2 Nov 18, 2025
34 checks passed
@jordan-powers jordan-powers deleted the backport/9.2/pr-137652 branch November 18, 2025 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :Core/Infra/Settings Settings infrastructure and APIs Team:Core/Infra Meta label for core/infra team v9.2.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants