Skip to content

[ATL-813] Notify user when IDE new version is available #422

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

Closed

Conversation

AlbyIanna
Copy link
Contributor

Motivation

We need to notify the user when a new version of the IDE is available

Changes

Add a service that checks if there's a newer version than the one installed and if there is one, it shows a notification with a link to the download page.

@AlbyIanna AlbyIanna requested a review from fstasi June 21, 2021 13:56
@CLAassistant
Copy link

CLAassistant commented Jun 21, 2021

CLA assistant check
All committers have signed the CLA.

@AlbyIanna AlbyIanna force-pushed the atl-813--check-for-updates-via-latest-link-service branch from 0bc3c1d to 90d1767 Compare June 21, 2021 13:58
@AlbyIanna AlbyIanna force-pushed the atl-813--check-for-updates-via-latest-link-service branch 2 times, most recently from 5dd7a32 to a2b5bb1 Compare June 22, 2021 15:24
@@ -48,14 +48,15 @@
"@types/which": "^1.3.1",
"ajv": "^6.5.3",
"async-mutex": "^0.3.0",
"axios": "^0.21.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

@AlbyIanna I love axios, but are we sure we want to add another dependency when we have something somehow similar? ("request": "^2.82.0" should be included already)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, you're right. I initially decided to use axios before the API was returning 403 and using request I couldn't handle the response properly, but now the API is not returning 403 anymore so I can change this.

protected readonly messageService: MessageService;

async onStart(): Promise<void> {
if (await this.updatesRetriever.isUpdateAvailable()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

await will block the app startup for the fetch time. It would be better to do this.updatesRetriever.isUpdateAvailable.then(available -> ). What do you think?

Choose a reason for hiding this comment

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

@fstasi @AlbyIanna
please have a look at @kittaakos 's suggestion

@per1234 per1234 added topic: code Related to content of the project itself type: enhancement Proposed improvement labels Oct 25, 2021
@per1234
Copy link
Contributor

per1234 commented Oct 25, 2021

Fixes #361

@per1234
Copy link
Contributor

per1234 commented Mar 24, 2022

@AlbyIanna can this be closed as superseded by #797?

@per1234 per1234 added the status: waiting for information More information must be provided before work can proceed label Mar 24, 2022
@per1234 per1234 self-assigned this Mar 24, 2022
@fstasi
Copy link
Contributor

fstasi commented Mar 24, 2022

@per1234 yes , thanks. Closing 👍

@fstasi fstasi closed this Mar 24, 2022
@per1234 per1234 added conclusion: duplicate Has already been submitted and removed status: waiting for information More information must be provided before work can proceed labels Mar 24, 2022
@per1234 per1234 deleted the atl-813--check-for-updates-via-latest-link-service branch June 27, 2022 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants