Page MenuHomePhabricator

[desktop] Stop checking for a new version after download
ClosedPublic

Authored by michal on Mar 17 2023, 11:09 AM.
Tags
None
Referenced Files
F3382447: D7095.diff
Thu, Nov 28, 10:52 AM
Unknown Object (File)
Thu, Nov 7, 10:47 AM
Unknown Object (File)
Thu, Nov 7, 10:47 AM
Unknown Object (File)
Mon, Nov 4, 11:36 PM
Unknown Object (File)
Mon, Nov 4, 3:26 AM
Unknown Object (File)
Wed, Oct 30, 6:23 AM
Unknown Object (File)
Wed, Oct 30, 6:23 AM
Unknown Object (File)
Wed, Oct 30, 6:23 AM
Subscribers

Details

Summary

This was the source of the issue ENG-3311, more information in the comments.
The short version is that if we checked for updates (and didn't find any) after downloading a new desktop version an error would appear when user tried to quit and update.

Test Plan

Check if the error stops happening.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

I'm confused – we're just deleting this? Can you provide more details on what it was supposed to do, and how that intent is handled now?

This code was supposed to handle an edge case where:

  1. Electron downloads an update, and we display the modal
  2. Before the user presses the modal to quit-and-install, we release a new version.

Without this, the user will have to update the app twice instead of once (in this rare case).

Unfortunately, this code doesn't work (and is the cause of the ENG-3311 issue). I can't think of an easy way to replace this behavior. I can make a task to replace this code with something else but I don't think it should be a priority right now.

Can you create a Linear task for handling this edge case and set it to Backlog?

This revision is now accepted and ready to land.Mar 20 2023, 2:07 PM