Skip to content
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

Implement CRC CLI update #162

Merged
merged 2 commits into from
Jul 13, 2023
Merged

Implement CRC CLI update #162

merged 2 commits into from
Jul 13, 2023

Conversation

evidolob
Copy link
Contributor

Update UI(button) are provided by P-D API.

Resolve #37

Demo:

Screen.Recording.2023-07-07.at.09.42.22.mp4

Signed-off-by: Yevhen Vydolob <[email protected]>
@evidolob evidolob requested review from gbraad and anjannath July 10, 2023 11:58
src/extension.ts Outdated Show resolved Hide resolved
src/extension.ts Outdated Show resolved Hide resolved
src/install/crc-install.ts Outdated Show resolved Hide resolved
return undefined;
}

async doUpdate(
Copy link
Contributor

Choose a reason for hiding this comment

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

Please call this something like AskForUpdate

provider.updateVersion(crcVersion.version);
this.crcCliInfo.ignoreVersionUpdate = undefined;
} else if (answer === 'Ignore') {
this.crcCliInfo.ignoreVersionUpdate = updateInfo.newVersion.version.crcVersion;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a way to still install this update?
People might ignore it, meaning ignore for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They have Cancel button.
I could rename Ignore to Ignore %{version}.

Copy link
Contributor

Choose a reason for hiding this comment

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

This does make sense if expressed this way.

Copy link
Contributor

Choose a reason for hiding this comment

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

let's put this in a new issue... but not implement this yet.
as I see this is also in the answer === check

Copy link
Contributor

@gbraad gbraad left a comment

Choose a reason for hiding this comment

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

The DoUpdate is named different from expectation.
Please also 'log' with telemetry that a user has started an update, or ignored.

@evidolob evidolob merged commit 9a19118 into crc-org:main Jul 13, 2023
@evidolob evidolob deleted the crc-update branch July 13, 2023 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement CRC CLI update
2 participants