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

Expose more server endpoint through cli commands #773

Merged
merged 3 commits into from
Oct 30, 2024

Conversation

aprudhomme
Copy link
Contributor

Added cli commands missing for endpoints:

  • DeleteByQuery
  • NodeInfo
  • GlobalState
  • Metrics
  • Custom

I skipped the state endpoint for now, since I intend to replace it with a better version. I also skipped the snapshot endpoints, since they likely need to be reworked a bit.

@aprudhomme aprudhomme requested a review from sarthakn7 October 24, 2024 20:53
@@ -400,6 +410,28 @@ public List<String> getIndices() {
.collect(Collectors.toList());
}

public void nodeInfo() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really need these functions in NrtsearchClient? Can we just to client.getBlockingStub().<method> directly in the Command classes? Most of these methods are not reused either.

@aprudhomme aprudhomme requested a review from sarthakn7 October 28, 2024 18:13
@aprudhomme aprudhomme merged commit 6a9049a into Yelp:main Oct 30, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants