Skip to content

Single instance of the IndexNameExpressionResolver#52596

Merged
jaymode merged 1 commit into
elastic:masterfrom
jaymode:single_index_expression_resolver
Feb 20, 2020
Merged

Single instance of the IndexNameExpressionResolver#52596
jaymode merged 1 commit into
elastic:masterfrom
jaymode:single_index_expression_resolver

Conversation

@jaymode

@jaymode jaymode commented Feb 20, 2020

Copy link
Copy Markdown
Member

This commit modifies the codebase so that our production code uses a
single instance of the IndexNameExpressionResolver class. This change
is being made in preparation for allowing name expression resolution
to be augmented by a plugin.

In order to remove some instances of IndexNameExpressionResolver, the
single instance is added as a parameter of Plugin#createComponents and
PersistentTaskPlugin#getPersistentTasksExecutor.

This commit modifies the codebase so that our production code uses a
single instance of the IndexNameExpressionResolver class. This change
is being made in preparation for allowing name expression resolution
to be augmented by a plugin.

In order to remove some instances of IndexNameExpressionResolver, the
single instance is added as a parameter of Plugin#createComponents and
PersistentTaskPlugin#getPersistentTasksExecutor.
@elasticmachine

Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Plugins)

@rjernst rjernst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jaymode jaymode merged commit 0d1e67d into elastic:master Feb 20, 2020
jaymode added a commit to jaymode/elasticsearch that referenced this pull request Feb 20, 2020
This commit modifies the codebase so that our production code uses a
single instance of the IndexNameExpressionResolver class. This change
is being made in preparation for allowing name expression resolution
to be augmented by a plugin.

In order to remove some instances of IndexNameExpressionResolver, the
single instance is added as a parameter of Plugin#createComponents and
PersistentTaskPlugin#getPersistentTasksExecutor.
jaymode added a commit that referenced this pull request Feb 21, 2020
This commit modifies the codebase so that our production code uses a
single instance of the IndexNameExpressionResolver class. This change
is being made in preparation for allowing name expression resolution
to be augmented by a plugin.

In order to remove some instances of IndexNameExpressionResolver, the
single instance is added as a parameter of Plugin#createComponents and
PersistentTaskPlugin#getPersistentTasksExecutor.

Backport of #52596
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants