-
Notifications
You must be signed in to change notification settings - Fork 15
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
Clarify stake-pool queries with an "all or some"-logic #541
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I completely understand why the Only
constructor was converted to Some a [a]
but I think the semantics you are looking for can be expressed with some
: main...jordan/clarify-all-or-some-flags.
Specifically: ee94ab5
@Jimbo4350 Not sure why I renamed Edit: what I wrote above is untrue. |
@Jimbo4350 I changed to the simpler use of |
04c23f6
to
4823900
Compare
@@ -635,7 +635,7 @@ runQueryPoolStateCmd | |||
|
|||
let poolFilter = case allOrOnlyPoolIds of | |||
All -> Nothing | |||
Only poolIds -> Just $ Set.fromList poolIds | |||
Some poolId poolIds -> Just $ Set.fromList (poolId : poolIds) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has the same issue we spoke about previously. We can rely on some
vs many
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure you're looking at the most recent commit? I agreed with you on our previous discussion, and changed this is 4823900.
Changelog
Context
This is a follow-up to #514, more concretely this comment. I try to make it obvious from the flags and help texts what the logic of the command is. As an example, consider
How to trust this PR
Highlight important bits of the PR that will make the review faster. If there are commands the reviewer can run to observe the new behavior, describe them.
Checklist