-
Notifications
You must be signed in to change notification settings - Fork 318
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
Custom labels for readability and CLI output #1292
Custom labels for readability and CLI output #1292
Conversation
Can we get this reviewed please? Many thanks |
Hi there @Fishbowler! Thanks for taking the time to create a Pull Request! Let me check internally with the team regarding your questions and I'll back to you. Also, I'm curious, Why did you implement only for a partial set of commands? (Instead of all of them?) |
I did all the ones that seemed sensible. But I've only got my single point of view & use cases. I asked the question since it might go against some design values, rather than being "obviously incomplete". |
Hey @Fishbowler! Thanks for your answer - I was wondering if you had found any technical challenges but it seems it was not the case. I brought this suggestion to the team, and we see this as a big quality-of-life improvement for Maestro users and we want to move forward with this PR. Now, one thing is that we would love to see this This also has the benefit of making it easier to update the documentation: we can make a new page that describes the label and that it works for every command. I can also help with documentation after this PR is ready for merge.
Your tests here are already great! |
@igorsmotto What are your feelings on the commands that currently don't take parameters, like |
@Fishbowler The only thing to be aware of is that both APIs should work to avoid retro-compatibility issues, e.g.:
and
|
What about keeping support for undocumented (legacy?) formats like
Currently, this is in my way. |
Feel free to ignore those. |
6552b04
to
9ebb93e
Compare
@igorsmotto I think this is ready for re-review |
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.
That's awesome work! @Fishbowler 🎉
Made some small comments, but everything is looking good.
In the meantime, I'll run this PR against our internal test suite to be extra sure and if everything goes well, we'll be ready to merge it.
maestro-orchestra-models/src/main/java/maestro/orchestra/Condition.kt
Outdated
Show resolved
Hide resolved
maestro-orchestra-models/src/main/java/maestro/orchestra/Commands.kt
Outdated
Show resolved
Hide resolved
maestro-orchestra-models/src/main/java/maestro/orchestra/Commands.kt
Outdated
Show resolved
Hide resolved
maestro-orchestra-models/src/main/java/maestro/orchestra/Commands.kt
Outdated
Show resolved
Hide resolved
maestro-orchestra-models/src/main/java/maestro/orchestra/Commands.kt
Outdated
Show resolved
Hide resolved
maestro-orchestra-models/src/main/java/maestro/orchestra/Commands.kt
Outdated
Show resolved
Hide resolved
maestro-orchestra-models/src/main/java/maestro/orchestra/Commands.kt
Outdated
Show resolved
Hide resolved
maestro-orchestra-models/src/main/java/maestro/orchestra/Commands.kt
Outdated
Show resolved
Hide resolved
maestro-orchestra/src/test/java/maestro/orchestra/yaml/YamlCommandReaderTest.kt
Outdated
Show resolved
Hide resolved
c5bfcef
to
fd1b922
Compare
…or this text to appear in your log/command display.
Co-authored-by: Igor Lema <[email protected]>
Co-authored-by: Igor Lema <[email protected]>
5b762d3
to
0a7085e
Compare
Accepted all, and tidied commit history (slightly) 👍 |
Added a draft PR of some docs to the docs repo. |
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.
Hi there, @Fishbowler!
After our internal testing, we're thrilled to report that everything has passed with flying colors. Therefore, your PR has been given the green light, and we're planning to merge it ASAP.
I will take care of both this PR and the docs PR.
One important note is that this change will wait until the next release (1.33.0). The exact release date is still TBD, but your name will be in the Changelog when it finally arrives.
Your efforts have truly made a difference! We deeply appreciate it!
Hey, @Fishbowler Given that this is your user fork I don't have permission to edit this PR and resolve conflicts with the main branch We have 3 options here:
|
faa32a6
to
f1f0956
Compare
Weird, I've checked and I already had I've fast-forwarded my branch to yours, and got all the ✅s - good to go! |
Future archaeologists: |
Proposed Changes
Builds on the work of @SuperRoach in #1238
Adds a
label
attribute to a number of commands. This:description()
method of those commands to be displayed in the CLI output.I'm a first-timer, so have some outstanding questions:
label
acceptable, so long as it's documented?Testing
Issues Fixed
Solves #1229 and provides a workaround for #1226