-
Notifications
You must be signed in to change notification settings - Fork 22
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
Split "Allow incompatible Patches" from "Developer Mode" #334
Conversation
Contributes-To: sailfishos-patches#333
Contributes-To: sailfishos-patches#333
Marking as Draft, pending changes requested in #333 |
trying to be technically concise.
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 still have my reservations WRT this "easy implementation", as already denoted.
I feel I must at least insist on creating a seamless migration from the old developerMode
setting to the new strictCompatability
setting (value needs to be negated, something I tried to avoid in my suggestions) in order to avoid negative feedback from many Patchmanager users, when this change is released.
@Olf0 sorry, I have the bad habit of using Please hold off any pushes until I take this PR out of Draft mode. |
That is fine: I have the bad habit of committing trivial changes right away. I created another private branch and a MR, but …
… failed to update it twice: Will wait and continue to analyse docker@GitHub to achieve caching of the many GBs of docker-image data which are downloaded for each CI run. |
Okay, have not tested it yet, but it looks okay. Have at it! |
migration snippet needs work. Dropdown is not set to "allow any". |
… setting variable is called `sfosVersionCheck`, the enum is called `Version Check`, plus "Compatability" was misspelled 😉, is much longer and the description explains well, what is done: Thus returning to "Version Check" at the GUI.
… and concise. Reference: `src/qml/patchmanager.h`, line 70, [its commit](https://github.com/sailfishos-patches/patchmanager/pull/334/files#diff-a43ca147b12960521ec92e86439aecdb612da40b4573a5f65f62dc4430e70d22R70)
I first hesitated a bit with the migration logic, but I cannot see any better way to handle that (and see that my original ideas were abstractly nice, but not implementable with the extant boolean setting So to me the basic logic of the migration function is looking good.
??? Does this address the FixMe statement in Minor linguistic and comments improvementsAside of pondering about the migration function, I have only four minor linguistic and comments improvements (= commits) to suggest via MR #3. |
Minor linguistic and comments improvements
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.
IMO this is basically looking fine.
Still I would love to comprehend these two statements, either by being addressed by some commit or a brief explanation. But never mind, I am aware these were just two thoughts being denoted late at night.
migration snippet needs work.
As stated above, IMO its basic logic is O.K. and hard to design differently.
Dropdown is not set to "allow any"
I simply fail to parse this statement, though had an idea what it may address.
Pls do not merge yet. While the migration logic is correct, the Combonox does not yet work correctly.
I have workarounds for both but must test them first. |
I sure won't, it is "your baby" (unless you have ceased to care about it).
Thanks for the details.
I will happily review them, when they are ready. |
Does not required weitrd not-yet-implemented workarounds for nonexisting values, and eases migration from legacy developerMode.
... just so it does not appear so empty.
Please see 4a96399. I decided to do the simple solution, have no gaps in the value list. I know this results in a slightly weird order of the menu options (Strict - None - Relaxed), if I had to argue this I'd say, 0 is always the default, and the others are sorted in order of decreasing strictness. Anyway, doing it this way means we need no workarounds, and also no workarounds/migrations needed when new options are added. I also have removed the planned "Careless" option for now - partly because you pointed out that in current SFOSes, two options would be superfluous, and partly because fine-grainedness of a "relaxed" option can be tuned somewhere else (i.e. an extra tunable) if necessary. |
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 looks fine to me. So I guess you are all set, now.
Landscape was always problematic, but now that we accumulate options, it needs to scroll in poertrait as well.
And like a true evil American Senator, I sneak in an almost unrelated UI fix in 1dc424b as well. |
▲ |
Well, that is not really worth the effort, hence …
… "just squash-merge this as usual". |
Fixes: #333