-
-
Notifications
You must be signed in to change notification settings - Fork 431
[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
Conversation
0bc3c1d
to
90d1767
Compare
5dd7a32
to
a2b5bb1
Compare
@@ -48,14 +48,15 @@ | |||
"@types/which": "^1.3.1", | |||
"ajv": "^6.5.3", | |||
"async-mutex": "^0.3.0", | |||
"axios": "^0.21.1", |
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.
@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)
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.
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()) { |
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.
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?
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.
@fstasi @AlbyIanna
please have a look at @kittaakos 's suggestion
Fixes #361 |
@AlbyIanna can this be closed as superseded by #797? |
@per1234 yes , thanks. Closing 👍 |
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.