Skip to content

Implement getIndexes method #373

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

alexbakharew
Copy link
Contributor

No description provided.

@@ -1299,6 +1299,34 @@ def response_handler(resp: Response) -> Json:

return self._execute(request, response_handler)

def get_indexes(self, with_stats: bool, with_hidden: bool) -> Result[Json]:
Copy link
Member

Choose a reason for hiding this comment

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

Hey @alexbakharew,

Can you add these two parameters to the indexes() (at line 1220) method instead?
I think having two methods will get redundant, and indexes() is already a known part of the API and documented.

Please either include these parameters as Optional[bool] and set them to None by default, or just bool with a default value of False. You might have to adjust the format_index method in order to get the full result back.

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