Skip to content

Remove unnecessary FeatureService dependencies #121496

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

Conversation

original-brownbear
Copy link
Contributor

We have a lot of unused fields for this thing. Also, more of its methods
can just be made static to avoid a dependency.
(+ some adjacent unused constructor arg removals)

We have a lot of unused fields for this thing. Also, more of its methods
can just be made static to avoid a dependency.
@original-brownbear original-brownbear added >non-issue :Core/Infra/Node Lifecycle Node startup, bootstrapping, and shutdown labels Feb 2, 2025
@original-brownbear original-brownbear requested a review from a team as a code owner February 2, 2025 14:12
@elasticsearchmachine elasticsearchmachine added v9.1.0 Team:Core/Infra Meta label for core/infra team labels Feb 2, 2025
@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

Change looks fine, but I want to be sure we aren't missing some reason they need to be instance methods. @thecoop was there a need for feature service to be passed around? based on this change it's unclear if it needs to even be injected.

@thecoop
Copy link
Member

thecoop commented Feb 6, 2025

The extra FeatureService references were probably for feature checks that were removed in v9. The references can be removed - although they may need to be added back in in the future if a feature check is needed again

@original-brownbear original-brownbear merged commit 9209341 into elastic:main Feb 7, 2025
17 checks passed
@original-brownbear
Copy link
Contributor Author

Thanks Ryan!

@original-brownbear original-brownbear deleted the remove-unnecessary-feature-service branch February 7, 2025 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Node Lifecycle Node startup, bootstrapping, and shutdown >non-issue Team:Core/Infra Meta label for core/infra team v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants