8000 fix(windows): add values wucUpdateAvailable and wucNotChecked to TRemoteUpdateCheckResult enum by rc-swag · Pull Request #14123 · keymanapp/keyman · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(windows): add values wucUpdateAvailable and wucNotChecked to TRemoteUpdateCheckResult enum #14123

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

Open
wants to merge 2 commits into
base: fix/windows/13767/error-updates-not-downloaded-after-3
Choose a base branch
from

Conversation

rc-swag
Copy link
Contributor
@rc-swag rc-swag commented Jun 5, 2025

TRemoteUpdateCheckResult now has wucUpdateAvailable and wucNotChecked to avoid confusion.

In terms of functionality it is no different then change made in #14095 this just moves the logic test

if (UpdateCheckResult = wucSuccess) and (TUpdateCheckStorage.CheckMetaDataForUpdate) then
to Keyman.System.RemoteUpdateCheck.pas

The tests will be covered in #14095

Test-bot: skip

TRemoteUpdateCheckResult now has wucUpdateAvailable and
wucNotChecked to avoid confusion
@github-project-automation github-project-automation bot moved this to Todo in Keyman Jun 5, 2025
@keymanapp-test-bot keymanapp-test-bot bot added the user-test-missing User tests have not yet been defined for the PR label Jun 5, 2025
@keymanapp-test-bot
Copy link
keymanapp-test-bot bot commented Jun 5, 2025

User Test Results

Test specification and instructions

User tests are not required

Test Artifacts

@keymanapp-test-bot keymanapp-test-bot bot added this to the A19S4 milestone Jun 5, 2025
@keyman-server keyman-server modified the milestones: A19S4, A19S5 Jun 8, 2025
@keymanapp-test-bot keymanapp-test-bot bot removed the user-test-missing User tests have not yet been defined for the PR label Jun 10, 2025
@rc-swag rc-swag self-assigned this Jun 10, 2025
@rc-swag rc-swag requested a review from ermshiperete June 10, 2025 06:50
…nloaded-after-3' into fix/windows/add-wuc-enum-result
@rc-swag rc-swag marked this pull request as ready for review June 12, 2025 10:37
Copy link
Contributor
@ermshiperete ermshiperete left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost LGTM

@@ -723,7 +722,7 @@ procedure UpdateAvailableState.HandleCheck;
finally
CheckForUpdates.Free;
end;
if Result <> wucSuccess then
if Result <> wucFailure then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem right. I would expect something like

Suggested change
if Result <> wucFailure then
if Result = wucFailure then

// TODO: #14126 first check if already downloaded files are the same as the the latest files in
// the metadata, if not then we should download the new files.
if (Result = wucSuccess) and (TUpdateCheckStorage.CheckMetaDataForUpdate) then
// TODO: This actually needs to check if the updates available are newer then the already downloaded updates
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// TODO: This actually needs to check if the updates available are newer then the already downloaded updates
// TODO: This actually needs to check if the updates available are newer than the already downloaded updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

3 participants
0