Skip to content

Display warning if object has been deleted in main branch #342

@arthanson

Description

@arthanson

Plugin Version

v0.7.1

Proposed functionality

Handle ____DoesNotExist exceptions when updating objects that have been deleted in the base branch. I think we could handle this flow better, my suggestion is a modal that redirects users to sync their branch with the base branch.

  • Create an object in main (like a site)
  • Create a branch
  • In main delete the site you created
  • Go to the branch and select the site
  • edit the site (change the description) and save
  • Get a server error

Use case

When making changes in branches to objects that have been deleted in the base branch, we throw this exception. For users that aren't familiar with Django, the server error is intimidating.

External dependencies

N/A

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions