feat(electron-updater): add ignoreStagingPercentage option for checking updates#9016
Conversation
|
Thoughts 🤔The staging percentage feature is a great tool, but I think it'd greatly benefit from having two version definitions: the stable & the new one. However, if I understand it correctly, even users with a very outdated version, say v2, they will be offered v8 only if in test group, and nothing at all if in control group. It'd be ideal to offer v7 to those in control group. But I do realize it'd require a major refactoring, so that you can publish two versions v7 & v8 when releasing v8. What do you think? Is it worth creating an issue, or did I misunderstand how it works? |
|
Thanks for submitting a PR! I think this functionality already exists with electron-builder/packages/electron-updater/src/AppUpdater.ts Lines 209 to 215 in 106640d |
|
@mmaietta I believe that's a different case 🤔 But I meant the case when 💡 Though your suggestion did give me an idea – instead of the new parameter, I could create similar get/set/protected logic for |
|
Closing in favor of #9021 |
Description
Add
ignoreStagingPercentageoption to the interface ofAppUpdater.checkForUpdates(), so that you can override the staging percentage and get offerred an update if the other necessary conditions are met.Usecase
staging rollout is observed when automatically querying for updates in background, but we also have a manual "Check for updates" button in Settings. This will allow the manual check to always offer you the latest version.