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 pointless AbstractClient indirection #108002

Conversation

DaveCTurner
Copy link
Contributor

Since the removal of the transport client o.e.c.i.Client has exactly
one implementation, o.e.c.i.s.AbstractClient, which essentially just
defines how each method maps onto a transport action. Likewise for
AdminClient, ClusterAdminClient and IndicesAdminClient. This
commit inlines these implementations into the parent interfaces.

Since the removal of the transport client `o.e.c.i.Client` has exactly
one implementation, `o.e.c.i.s.AbstractClient`, which essentially just
defines how each method maps onto a transport action. Likewise for
`AdminClient`, `ClusterAdminClient` and `IndicesAdminClient`. This
commit inlines these implementations into the parent interfaces.
@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.

@DaveCTurner
Copy link
Contributor Author

Ugh TIL AbstractBuilderTestCase what is this nonsense? Ok this is going to take more work.

@DaveCTurner DaveCTurner marked this pull request as draft April 29, 2024 10:32
@DaveCTurner DaveCTurner removed the request for review from original-brownbear April 29, 2024 10:32
@DaveCTurner
Copy link
Contributor Author

I think I mostly care about the admin interfaces for #107984 - see #108052 for a PR that just simplifies those bits. I'm closing this for now.

@DaveCTurner DaveCTurner deleted the 2024/04/29/pointless-client-interfaces branch April 30, 2024 13:14
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.

None yet

2 participants