Issues icon indicating copy to clipboard operation
Issues copied to clipboard

For Git-enabled Projects, merging then deleting a branch can cause UI errors on "not version-controlled" pages

Open donnybell opened this issue 2 years ago • 2 comments

Severity

No response

Version

2023.2.2028

Latest Version

I could reproduce the problem in the latest build

What happened?

For Git-enabled Projects, merging then deleting a branch can cause UI errors on "not version-controlled" pages until a version-controlled page for that Project is visited.

Ideally, Octopus should handle this more gracefully. One possibility would be defaulting to the main branch if a branch can no longer be found (even on "not version-controlled" pages).

Reproduction

  1. Start with a Git-enabled Project

  2. Make a Project change

  3. Commit to a new branch

  4. While viewing the Process for the new branch, use the Create pull request link: image

  5. Open the "Channels" section in a new tab

  6. Merge, Close, then Delete the branch (GitHub example below) image

  7. Click on a channel in the "Channels" tab: image

Error and Stacktrace

No response

More Information

No response

Workaround

Click on any "version-controlled" page for a Project as indicated by the branch symbol: image

donnybell avatar Mar 16 '23 15:03 donnybell

Another occurrence (internal): https://octopus.zendesk.com/agent/tickets/122948

patrick-smergut-octopus avatar May 11 '23 19:05 patrick-smergut-octopus

We've run into this as well. This also blocks redeploying a release that references a branch that was deleted. Use case there for us is that we sometimes need to update variable snapshot and redeploy to rotate some secrets.

andrew-from-toronto avatar Feb 07 '24 15:02 andrew-from-toronto