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

Refactor PipelineConfiguration#getVersion #115423

Merged

Conversation

joegallo
Copy link
Contributor

There's no benefit in calling containsKey and then get -- we can just call get and eat the null value. Since this code handles the absence of a key and the presence of a null value in the exact same way, it's less code to just collapse the two paths together. It's also imperceptibly faster, but that doesn't really matter.

@joegallo joegallo added :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP >refactoring Team:Data Management Meta label for data/management team auto-backport Automatically create backport pull requests when merged v9.0.0 v8.17.0 labels Oct 23, 2024
@joegallo joegallo requested a review from masseyke October 23, 2024 13:59
@elasticsearchmachine
Copy link
Collaborator

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

@joegallo joegallo merged commit 1c38f87 into elastic:main Oct 23, 2024
16 checks passed
@joegallo joegallo deleted the refactor-pipeline-configuration-version branch October 23, 2024 15:24
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.x

joegallo added a commit to joegallo/elasticsearch that referenced this pull request Oct 23, 2024
smalyshev pushed a commit to smalyshev/elasticsearch that referenced this pull request Oct 23, 2024
georgewallace pushed a commit to georgewallace/elasticsearch that referenced this pull request Oct 25, 2024
jfreden pushed a commit to jfreden/elasticsearch that referenced this pull request Nov 4, 2024
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 :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP >refactoring Team:Data Management Meta label for data/management team v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants