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

Fix API CLI gettrades bug: category param can be uppercase #6207

Conversation

ghubstan
Copy link
Contributor

When category param value was uppercase, e.g., $ ./bisq-cli --password=xyz --port=9998 gettrades --category=OPEN,
CLI validation failed: Error: No enum constant bisq.cli.opts.GetTradesOptionParser.CATEGORY.OPEN.
(gRPC java/python clients were OK because they have to use the protobuf enum instead of a string parameter value.)

This fixes the bug, and --category=open|closed|failed now passes CLI validation.

Based on master.

ghubstan added 2 commits May 15, 2022 16:26
When category param value was uppercase, e.g.,
  $ ./bisq-cli --password=xyz --port=9998 gettrades --category=OPEN
CLI validation failed:
  Error: No enum constant bisq.cli.opts.GetTradesOptionParser.CATEGORY.OPEN

This fixes the bug, and --category=open now passes CLI validation.

Based on `master`.
@ghubstan ghubstan marked this pull request as ready for review May 15, 2022 22:03
Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

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

utACK

@ripcurlx ripcurlx added this to the v1.9.2 milestone May 16, 2022
@ripcurlx ripcurlx merged commit 5ff04a1 into bisq-network:master May 16, 2022
@ghubstan ghubstan deleted the fix-gettrades-category-param-uppercase-bug branch May 16, 2022 19:30
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