-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Implement the new selection algorithm #2785
Implement the new selection algorithm #2785
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.
Ah, you beat me to it, thanks!
I added two minor comments. It looks good otherwise but I'll let @emmanuelbernard do the review.
devtools/common/src/test/java/io/quarkus/cli/commands/AddExtensionsTest.java
Show resolved
Hide resolved
Hm, I wonder if we should display the short name and possibly also tags in |
devtools/common/src/main/java/io/quarkus/cli/commands/AddExtensions.java
Show resolved
Hide resolved
devtools/common/src/main/java/io/quarkus/cli/commands/AddExtensions.java
Outdated
Show resolved
Hide resolved
devtools/common/src/main/java/io/quarkus/cli/commands/AddExtensions.java
Outdated
Show resolved
Hide resolved
devtools/common/src/main/java/io/quarkus/cli/commands/AddExtensions.java
Outdated
Show resolved
Hide resolved
devtools/common/src/main/java/io/quarkus/cli/commands/AddExtensions.java
Outdated
Show resolved
Hide resolved
devtools/common/src/main/java/io/quarkus/cli/commands/AddExtensions.java
Outdated
Show resolved
Hide resolved
devtools/common/src/test/java/io/quarkus/cli/commands/AddExtensionsTest.java
Outdated
Show resolved
Hide resolved
devtools/common/src/test/java/io/quarkus/cli/commands/AddExtensionsTest.java
Show resolved
Hide resolved
list-extensions is already too long. I'd use shortname and labels in the web ui as tags and as search restrictions. Not necessarily expose them. |
If you find conflicts or odd behavior in the currently used algorithm (in 0.16.1), let me know we can add a test and check. |
@cescoffier could you squash things a bit? Typically the |
@gsmet I would squash this into a single commit no? The different iterations are not very meaningful. (Github can to it). |
I looked fast but I did not see implemented the approach where the short name was used as the default value for a given choice menu. Were do we stand on option 1 vs option 2 collectively. We we discussed it by voice, I think the compromise was for option 2 as option 1 was denying the notion of a kafka label for searches. |
Option 2 requires a prompt and changing completely how the Maven plugin works (2 phases selections and so on). That's why I picked 1 for now until we find the right approach to implement 2. |
Moving to 0.18.0. I discussed with @cescoffier and the situation is unclear. I think we need a call between @emmanuelbernard and @cescoffier to clarify the situation and converge. |
Also needs to be rebased now, apparently. |
…quarkusio#2737. Impact of the new selection algorithm on the guides. Most of it is purely cosmetic and allow using shorter names. Some tweaks are required to avoid ambiguity. Do not use dash in bean validation. Remove the swagger-ui short name. Swagger may mean something else.
If a query is a GAV, insert the dependency as a GAV. Also, avoid reloading the extension list every time. When the query is containg in the artifact id or in the name of the extension.
Disable the label match by default
6667028
to
cc50c1b
Compare
Commit squashed, rebase done. |
Emmanuel agreed we should merge this one for 0.17.0.
Related to #2737.