replit / desktop

Replit Desktop App
114 stars 3 forks source link

Check for updates on an interval, add "Later" button back #110

Closed sergeichestakov closed 1 year ago

sergeichestakov commented 1 year ago

Why

We want to check for updates on an interval (up til a certain point) instead of just once at startup in case users have the app open for a long time. Also, we should add the "Later" button back in case users want to defer updates. I only removed it a while back to make sure beta users were consistently updating their stale clients ASAP given how often we were making breaking changes but post-beta we don't want to force people to update every time since it can be disruptive.

Fixes WS-801 and WS-802

What changed

Check for updates on an interval, add "Later" button back

Test plan

Should see auto-update prompt a while after opening. should see "Later" button in resulting dialog

linear[bot] commented 1 year ago

WS-801 Add back "Later" button for auto-update dialog

WS-802 Check for updates on a schedule rather than just on startup

sergeichestakov commented 1 year ago

yeah I actually wasn't sure what the best way to do this was. we can keep checking forever but at some point I don't want to keep making requests while the app is open. maybe can do an exponential backoff or something

sergeichestakov commented 1 year ago

gonna go with exponential backoff from 30mins with a limit of 24 hrs (so 1/2, 1, 2, 4, 8, 16, 24, 24, 24 hrs...) instead. think that makes more sense and handles the case where the app is open forever since we just check once per day