-
-
Notifications
You must be signed in to change notification settings - Fork 344
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
Override provides prompt with relationship property, check first recommendation in any_of group #3426
Conversation
@NathanKell, @ppboyle, @StonesmileGit, @siimav, @jwvanderbeck: To test the |
Awesome! I'll check this out after supper (am currently fighting with porting my Chrome profile over to a new PC, bleh). Thanks!! |
This comment has been minimized.
This comment has been minimized.
Worked like a treat! ❤️ |
Yeah given that the spec defines (a top-level) comment as
https://github.com/KSP-CKAN/CKAN/blob/master/Spec.md#comment I wouldn't reuse the key like that, even if it's not top-level. Maybe |
Those are good. I'd like to add a short adjective prefix as well that explains what the hint is about. |
I think choice_help_text is clearest.
Sent by my thumbs, slowly.
…On Tue, Aug 3, 2021, 1:45 PM HebaruSan ***@***.***> wrote:
Maybe help or help_text instead? Or hint?
Those are good. I'd like to add a short adjective prefix as well that
explains what the hint is about.
choice_hint? choice_help_text?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3426 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHH4ISBUAXZ2RQYS5TQGHTT3BIP5ANCNFSM5BLZPT6A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
77e807b
to
0b04b5f
Compare
|
I was wondering why RCSBuildAid and RCSBuildAidCont both start checked, despite being in an { "name" : "RCSBuildAid" },
{ "name" : "RCSBuildAidCont" }, ... which has been mentioned in the last line here: KSP-CKAN/NetKAN#8688 (comment) @NathanKell I think you might want to adjust that to be in an |
CKAN/Core/Converters/JsonRelationshipConverter.cs Lines 29 to 32 in a833159
|
Should we also deduplicate items from the list? Of course, the metadata should be changed as well, but I think it doesn't hurt to fix it in the client. Edit: adding |
I think updating just |
Yeah, that makes sense. Thanks! |
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.
Okay, I think this PR works well as is. If we find more fixes that are needed for KSP-CKAN/NetKAN#8701, it might be wise to do them as separate PR, especially if they do dig into the RelationshipResolver.
@DasSkelett, should we bump the spec version for this? That would give us a way to protect old clients from newer metadata with extra properties alongside |
Indeed, the same though came to my mind yesterday. I think we should do that. |
Motivation
The RSS/RO/RP-0/RP-1 team reached out to discuss ways to streamline their installation process, see KSP-CKAN/NetKAN#8615 and KSP-CKAN/NetKAN#8688. They hope to reduce the number of decisions the user has to make and provide more information to help the user make good choices.
We're still brainstorming options for improvements, but a few ideas seem to be clear wins so far. This is the first of possibly/hopefully several changes resulting from that discussion.
Problems
depends
clause matches multiple modules (via eitherprovides
orany_of
), only a standard prompt based on the identifier(s) is shown (and it varies between CmdLine/ConsoleUI/GUI). The RSS/RO/RP-0/RP-1 team would like to be able to override that prompt in order to give users additional help and clues about which module to pick.any_of
relationships for conflicting recommendations because they don't all show up as checked:Rather, they're all unchecked, which is still not great because these are supposed to be recommendations, on-by-default:
Changes
choice_help_text
property to a relationship to override the text the user sees when choosing among multiple modules:any_of
group or an identifier provided by multiple modules, the first one that shows up on screen will be checked, and the rest will be unchecked:After this, it should be possible to guide users into a good RSS/RO/RP-0/RP-1 install more often and more easily.