Skip to content
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

Extract some methods from IngestService's innerExecute method #93213

Merged

Conversation

joegallo
Copy link
Contributor

@joegallo joegallo commented Jan 24, 2023

Related to #81244

This PR hollows out the body of innerExecute by extracting some methods from it (and updating it to call those methods).

There's no real change in behavior here, I tried to keep this a 1-to-1 in terms of the before and after. The closest thing there is to a change is that the getDynamicTemplates / setDynamicTemplates block is executed slightly earlier than before, since it moves into the body of updateIndexRequestMetadata, but I don't think that affects anything else.

This PR is a prelude to a follow up PR which will rework these new functions to be called outside of innerExecute, but I'm hoping to keep the overall effort more reviewable by keeping this PR to just the "pull out some new methods" part of the work.

@joegallo joegallo added >non-issue :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP Team:Data Management Meta label for data/management team v8.7.0 labels Jan 24, 2023
@joegallo joegallo requested a review from masseyke January 24, 2023 21:17
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

Copy link
Member

@masseyke masseyke left a comment

Choose a reason for hiding this comment

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

LGTM, assuming CI is happy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP >non-issue Team:Data Management Meta label for data/management team v8.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants