Skip to content

bug: merging object with migrated kind that is deleted on branch leaves object un-deleted #9283

Description

@ajtmccarty

Component

API Server / GraphQL

Infrahub version

1.9.5

Current Behavior

if I merge a branch that deletes an object that had it's kind/inheritance migrated on the default branch after my branch was created, then that migrated object remains undeleted.

Expected Behavior

deleting an object on a branch and merging it to the default branch should delete the object on the default branch, regardless of how the object was changed on the default branch.

Steps to Reproduce

  1. create an object
  2. create branch br1
  3. update the schema of the object from step 1 to change its name, namespace, or inheritance
  4. merge branch br1
  5. the object from step 1, with its new kind/inheritance, will still exist

Additional Information

No response

Metadata

Metadata

Assignees

Labels

priority/2This issue stalls work on the project or its dependents, it's a blocker for a releasetype/bugSomething isn't working as expected

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions