Skip to content

Conversation

@thecoop
Copy link
Member

@thecoop thecoop commented Jan 21, 2025

IndexNameExpressionResolver is needed by TransportMasterNodeAction, even though it doesn't use it. This removes IndexNameExpressionResolver from that base class, moving the field into classes that actually use it.

Note that the majority of these changes were automated remove-parameter refactorings.

There are many classes that still have IndexNameExpressionResolver in their injection constructor that doesn't go anywhere - these can be removed as part of this PR (once the concept is approved), or later over time.

@thecoop thecoop added :Core/Infra/Core Core issues without another label >refactoring labels Jan 21, 2025
@thecoop thecoop requested a review from DaveCTurner January 21, 2025 14:18
@elasticsearchmachine elasticsearchmachine added Team:Core/Infra Meta label for core/infra team v9.0.0 labels Jan 21, 2025
@elasticsearchmachine
Copy link
Collaborator

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

protected final ThreadPool threadPool;
protected final TransportService transportService;
protected final ClusterService clusterService;
protected final IndexNameExpressionResolver indexNameExpressionResolver;
Copy link
Member Author

Choose a reason for hiding this comment

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

boom

Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

LGTM; I'd like this to be backported to 8.x too.

@thecoop thecoop added auto-backport Automatically create backport pull requests when merged v8.18.0 labels Jan 21, 2025
@elasticsearchmachine elasticsearchmachine added the serverless-linked Added by automation, don't add manually label Jan 21, 2025
Copy link
Contributor

@ldematte ldematte left a comment

Choose a reason for hiding this comment

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

LGTM2, nice cleanup!

@thecoop thecoop merged commit 39601ed into elastic:main Jan 22, 2025
16 checks passed
@thecoop thecoop deleted the move-index-name-expression-resolver branch January 22, 2025 10:17
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.x Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 120531

thecoop added a commit to thecoop/elasticsearch that referenced this pull request Jan 22, 2025
thecoop added a commit that referenced this pull request Jan 22, 2025
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Feb 24, 2025
Follow-up to elastic#120531 to remove all the now-redundant constructor
parameters.
elasticsearchmachine pushed a commit that referenced this pull request Feb 24, 2025
Follow-up to #120531 to remove all the now-redundant constructor
parameters.
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Feb 24, 2025
Follow-up to elastic#120531 to remove all the now-redundant constructor
parameters.
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Feb 24, 2025
Follow-up to elastic#120531 to remove all the now-redundant constructor
parameters.

Backport of elastic#123258 to 8.x
elasticsearchmachine pushed a commit that referenced this pull request Feb 24, 2025
)

Follow-up to #120531 to remove all the now-redundant constructor
parameters.
elasticsearchmachine pushed a commit that referenced this pull request Feb 24, 2025
Follow-up to #120531 to remove all the now-redundant constructor
parameters.

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

Labels

auto-backport Automatically create backport pull requests when merged :Core/Infra/Core Core issues without another label >refactoring serverless-linked Added by automation, don't add manually Team:Core/Infra Meta label for core/infra team v8.18.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants