Skip to content

fix: package:shorebird_code_push reports upToDate when current patch has been rolled back #3206

@bryanoltman

Description

@bryanoltman

Description

After rolling back a patch, package:shorebird_code_push's checkForUpdate method does not return the correct update status.

Steps To Reproduce

  1. Create and install a new patch
  2. Roll back that patch in the console
  3. Trigger a call to checkForUpdate
  4. Note that the call reports upToDate, even though the current patch has been rolled back and a restart is required.

Expected Behavior

checkForUpdate reports restartRequired

Additional Info

After the rollback has been applied, both currentPatch and nextPatch report null, so that might be the real issue

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions