This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Fix auto update UX #9164
Copy link
Copy link
Closed
Description
Our automatic update process is pretty bad. We release once a week, and every week over a half million people need to go through this process.
There are errors, bugs, folks want better feedback, and the squirrel icon + release notes are really really confusing:
- Status bar icon persists after installing updates settings-view#511
- Post upgrade, makes the squirrel icon gray atom-archive/release-notes#38
- Restart and Update Doesn't from Release Notes Page #5692
- The update squirrel should not be colored for release notes #6922
- Release notes don't seem to update properly #3757
- "Check for update" says no update is available although a new one is available. #8265
What happens now
- Download an old version
- Start it
- Notice there is a blue squirrel in the status bar, and it says 'view release notes'
- Click the squirrel
- See the release notes, note that they are showing notes for an old release
- Click the restart and update button
- Atom quits, notice that there is no feedback as to what is happening.
- It's still not back. What's up?
- Atom restarts again after 5 - 15 seconds
- Notice that the release notes are up in the reloaded window. They are still out of date, and still have the 'Restart and Update' button showing and enabled
- Notice that the squirrel icon is still showing, and still blue, with the same tooltip text
- I click the squirrel because it's still there, and not going away. It focuses the release notes. Ok.
- I'm thinking: is there another update??!? What is happening?
- I check the atom menu
- Click the 'About' item, theres no information saying it's the latest version
- I notice there is a version number, and a 'Check for update'
- Nothing indicates I'm at the latest version
- On reload, squirrel goes away; still nothing tells me I'm at the latest version. But no squirrel, so I guess so?
A 70% fix
tl;dr: fix the squirrel icon, remove the release notes package, use the about package for update status (similar to chrome).
- An update becomes available
- The blue squirrel shows, its tooltip says "Downloading update for version 1.0.20..."
- Clicking the squirrel shows the about page which shows
- the current version
- new version detected
- some text indicating that the update is being downloaded
- When it's finished downloading:
- the blue squirrel turns green, with a tooltip of "Version 1.0.20 is available"
- the about page now shows that an update is available, and has a button to restart the editor
- The menu item now takes you to the about page
- Clicking the green squirrel still shows / focuses the about page
- Clicking reload reloads the editor like today
- On reload the about page is shown.
- The about page indicates that you are up to date, and has a link to the release notes
- The squirrel is gone after reload as the about page has the relevant information
Additionally, take a stab at the bugs:
- Error checking for updates immediately after updating Atom #7854
- Manually updating Atom vs updates #6482
Bonus:
- In the about page, indicate which release rail you are on. beta? stable? development?
An extra 10%
Add some kind of feedback when atom is reloading. A small window with an infinite spinner would be sufficient. The goal is to indicate that it is working.
That last 20%
- Add progress to the download in squirrel (cc @joshaber, is this possible today?)
- Add progress to the menu item in %
- Add progress to the squirrel icon
- Could add a progress bar to the tooltip
- Could make the blue squirrel "fill up" with green as it progresses
- Add an option to turn off automatic downloads in the about page to fix Downloading an update without asking causes problem for users on mobile data plans #1882
Reacted by zakaria ridouh, Bernhard Häussner, Tom Moor, Violet Hayes, dz - David Zhu, KamasamaK, Peter Lyons, Dr. Wolfram Schroers, Scott Thiessen, Anson Hoyt and 2 more
Reacted by zakaria ridouh, Oliver Koch-Witzig and dz - David Zhu
Activity
joshaber commentedon Oct 15, 2015
Not currently 😞 Certainly something that could be added.
benogle commentedon Oct 15, 2015
What's difficulty / time commitment on something like that?
joshaber commentedon Oct 15, 2015
This is a problem for GitHub Desktop on Mac too. Every time we do an update, we get crashes reported because users try to relaunch the app themselves since the updater takes so long to restart the app.
joshaber commentedon Oct 15, 2015
The work itself isn't too hard. The time consuming part is testing. Probably a few days worth of work.
benogle commentedon Oct 15, 2015
❤️ for the info about the mac update issues and the difficulty level.
Would a UI for restart progress make sense in squirrel or should we subscribe to something and show our own window?
joshaber commentedon Oct 15, 2015
Restart progress or download progress? Restart progress would be tricky since the app is quit at that point.
benogle commentedon Oct 15, 2015
Yeah some kind of restart feedback. e.g. sketch has a little window with a progress bar when it's restarting after an update.
joshaber commentedon Oct 15, 2015
Oh interesting. Squirrel could do that, though it's a non-trivial amount of effort.
It'd also be interesting to see why restarting takes so long. I suspect there's work we could do up front, before we relaunch, that would shorten the restarting window.
winstliu commentedon Oct 16, 2015
I think download progress can be shown on Squirrel for Windows; I just haven't had enough time yet to dig into the code and try to implement that. Though now that I've actually built Atom I might be able to make some progress soon ™️.
also, /cc @paulcbetts and refs #8038
All
auto-updater-labeled issuesAll
installer-labeled issuesZireael07 commentedon Oct 16, 2015
The squirrel changing color would be a brilliant quick change.
anaisbetts commentedon Oct 17, 2015
Squirrel for Windows reports download progress already, in a very node.js friendly way, you just need to wire it up. That being said though, most of the work in Squirrel on Windows isn't downloading, it's reconstituting the full package from the delta. Ideally the download step of your download will be super-ass short
maxbrunsfeld commentedon Oct 30, 2015
Refs #8911
ethanluoyc commentedon Nov 16, 2015
@benogle Are we trying to make something like this? (I added in the icon just for illustration purpose..)
I noticed that if we want to check for updates we may need to use the auto-update manager from the core. The about page, however, it organized as a separate package
UPDATE: I checked again, so are we merging the release-notes with the about package or we will just open up the about page from the squirrel, after that there will be buttons in the about page if there is an update which will direct us to the release package.
15 remaining items
benogle commentedon Jan 28, 2016
Thanks for the feedback. This is definitely something we are working on at the moment.
jokeyrhyme commentedon Jan 28, 2016
@judahstevenson this is pretty much the Chrome update experience: no notifications, it just works behind the scenes, and you have the manually check
@benogle has it been determined that Atom should strive to have a different / better update experience than Chrome?
benogle commentedon Jan 28, 2016
Basically we're adding some things to the about page to be more like chrome. e.g.
Plus some feedback when it's downloading, when it's already up to date, etc. You can deal with it just like chrome and restart at your leisure, or you can pay attention to the squirrel and do a similar update flow from the about page.
benogle commentedon Feb 12, 2016
Just an update. This is coming along in:
Stanzilla commentedon Apr 10, 2016
This is now super weird: atom/about#24
Stanzilla commentedon Jun 13, 2016
Related: #4696
winstliu commentedon Jun 5, 2017
@JHabdas Based on the conversation in this issue, it would appear that Squirrel.Mac doesn't report download percentages. Squirrel.Windows does, but no one has had time to investigate how to hook that up with Atom.
(Squirrel is the update framework Atom uses, though the Windows version and Mac version are maintained by different people and work differently)
movingobjects commentedon May 21, 2018
It's been a while since there's been any update on this—still find this very confusing every single update. (I'm on macOS 10.13)
It'd be great to have more feedback on what is going on. Clicking the
Restart and Installbutton only occasionally seems to actually restart the app itself. More often, it closes all windows but Atom remains open in the dock. I then wait and wonder whether a new version is downloading/installing or Atom just didn't succeed in restarting itself. After 5-10 minutes, I'll give up and quit and re-open Atom manually—after which, sometimes I end up with the new version, and sometimes I don't and instead see the sameRestart and Installbutton sitting there like I never clicked it. After a few rounds of this, I will eventually find myself with the new version, but after a year of updates, I honestly still don't know what I'm supposed to expect or do to update correctly.lee-dohm commentedon Apr 23, 2019
Thanks very much for the feedback.
Unfortunately, because of the disparity in the APIs between the implementations of Squirrel, we're not going to take on adding a progress indicator for the automatic updates at this time. Because of this, and because since this issue has been opened, we've made a bunch of progress on improving the auto-update UX, we're going to close this issue.
If people have other feedback for fixing the auto-update experience beyond adding a progress indicator, please open a new issue for it.
Thanks everyone for your help!
lock commentedon Oct 20, 2019
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!