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

Remove unneeded client subinterfaces #108052

Conversation

DaveCTurner
Copy link
Contributor

@DaveCTurner DaveCTurner commented Apr 30, 2024

Since the removal of the transport client these interfaces all have
exactly one implementation. There's no need for the extra layer of
abstraction any more so this commit removes it.

Since the removal of the transport client these interfaces all have
exactly one implementation. There's no need for the extra layer of
abstraction any more so this commit removes it.
@DaveCTurner DaveCTurner force-pushed the 2024/04/30/pointless-client-subinterfaces branch 2 times, most recently from 3403183 to bb461dc Compare April 30, 2024 12:12
@DaveCTurner DaveCTurner marked this pull request as ready for review April 30, 2024 13:13
@elasticsearchmachine
Copy link
Collaborator

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

@DaveCTurner
Copy link
Contributor Author

This was mechanical but unfortunately that process seems to have lost the Javadocs and reordered everything. I'm not sure this matters, the order wasn't important and there was essentially nothing useful in those comments anyway.

*/
ClusterAdminClient cluster();
protected final ClusterAdminClient clusterAdmin;
protected final IndicesAdminClient indicesAdmin;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this could be a record. Do we rely on those fields being protected in lots of plases?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's mocks and other reflection-based stuff in tests that get in the way of tightening these things down. Possibly we could make them private but I'm hoping this stuff can all just go away soon so I don't think it's worth polishing this too much.

@DaveCTurner DaveCTurner merged commit c2a090c into elastic:main Apr 30, 2024
15 checks passed
@DaveCTurner DaveCTurner deleted the 2024/04/30/pointless-client-subinterfaces branch April 30, 2024 14:09
@DaveCTurner DaveCTurner restored the 2024/04/30/pointless-client-subinterfaces branch June 17, 2024 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Transport API Transport client API >refactoring Team:Core/Infra Meta label for core/infra team v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants