-
-
Notifications
You must be signed in to change notification settings - Fork 140
feat(windows): honour Windows "metered connection" flag for downloading updates #16099
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
Draft
rc-swag
wants to merge
11
commits into
master
Choose a base branch
from
feat/windows/13566/check-metered-connection
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+248
−33
Draft
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a9933ab
feat(windows): add network connectivity tool
rc-swag cc8b4d2
Merge branch 'master' into feat/windows/13566/check-metered-connection
rc-swag 94756fd
feat(windows): add intstall ready flag to pop up
rc-swag e92f01a
Merge branch 'master' into feat/windows/13566/check-metered-connection
rc-swag 293f8ec
feat(windows): apply suggestions from code review
rc-swag 5e26d5d
feat(windows): address review comments
rc-swag 3974f03
feat(windows): use enum to drive installfrm layout
rc-swag 85da9dc
feat(windows): apply suggestions
rc-swag 448d63e
feat(windows): apply exception check
rc-swag 0bd7bf1
feat(windows): apply suggestions from code review
rc-swag 6009473
feat(windows): wrap network util in class
rc-swag File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 found this install case name confusing; is the following name accurate?
I guess my confusion extends to the dialog box as well -- would it be possible for the dialog box to say something to clarify that a download is required, something like this?
The update has not yet been downloaded.and
You're on a metered connection. Downloading now may incur data charges.Uh oh!
There was an error while loading. Please reload this page.
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 don't like the name change suggested because it overlaps with the first case. I can see the confusion though with you suggested messages.
In thinking about the fact I have not got on to this issue # #13711 yet. The forground update is still confusing to the user especially if they are on a slow connection and click
Check for Updatesfollowed byInstall Nowon a slow connection it there will be no gui while it is downloading the update. Untill #13711 we can provide more information (at least in english, hopefully it gets translated will in the pop-up) I am worried though it maybe to much and confusing.Scenarios.
Foreground Update Tab:
Messages that can be displayed in isolation or combination off.
Keyman Configuration will close and it will be downloaded in the background before installing[The second part of this message in `` will be untill feat(windows): apply update now give progress if download still in progress #13711 is implemented then removed.]
OnBoot:
icReadyToInstallNotMeteredThis is the true backroung update scenario. The update has downloaded in the background the user is starting Keyman, it has not been run we are just letting them know we are about to install the new version and giving them an option to cancel
Now this code can be improved to actually use the StateMachine to check the state. It could be
downloadingor inupdateavailable(if automatic updates are off).Then for Update Tab
DownloadRequired && RestartRequired && Metered
->
icRestartRequiredMetered= show 1-3DownloadRequired && RestartRequired && !Metered
->
icRestartRequiredNotMetered= show 1-2DownloadRequired && !RestartRequired && !Metered
->
icDownloadRequired= show 2 (this is really now just informing about the pending silence :))DownloadRequired && !RestartRequired && Metered
->
icNoInstallMessageMetered= show 2 & 3!DownloadRequired && !RestartRequired && !Metered
-> no pop up required
Then for boot up
icReadyToInstallNotMetered= show 4.Below I is the same as above but have renamed the enums for clarity with the additonal download message.
DownloadRequired && RestartRequired && Metered
->
icDownloadRestartMetered= show 1-3DownloadRequired && RestartRequired && !Metered
->
icDownloadRestart= show 1-2DownloadRequired && !RestartRequired && !Metered
->
icDownload= show 2 (this is really now just informing about the pending silence :))DownloadRequired && !RestartRequired && Metered
->
icDownloadMetered= show 2 & 3!DownloadRequired && !RestartRequired && !Metered
-> no pop up required
Then for boot up
icReadyToInstall= show 4.