Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not delete latest snapshot when deleting unused snaphots #2996

Open
1 of 2 tasks
midigofrank opened this issue Mar 7, 2025 · 0 comments · May be fixed by #2997
Open
1 of 2 tasks

Do not delete latest snapshot when deleting unused snaphots #2996

midigofrank opened this issue Mar 7, 2025 · 0 comments · May be fixed by #2997
Assignees
Labels
bug Newly identified bug

Comments

@midigofrank
Copy link
Collaborator

Describe the bug
When the latest snapshot of a workflow is attached to a work order and the work order is deleted during data retention, the snapshot is also deleted alongside it. When the latest snapshot is deleted, the workflow edit page becomes inaccessible.

Version number 2.10.16

I have reproduced this locally on main:

  • Yes
  • No

To Reproduce Steps to reproduce the behavior:

This is how it happens:

  1. You have your latest workflow, say version 2
  2. You create a work order with this version.
  3. The retention period for the project is set to 5 days.
  4. When the work order gets old enough, and the day arrives for retention. That work order gets deleted and the snapshot along side with it given there is no other work order referencing it.
  5. Remember that the workflow is still set at version 2 . When you try viewing the workflow edit page, it will crash because it cannot find a snapshot for version 2
@midigofrank midigofrank added the bug Newly identified bug label Mar 7, 2025
@github-project-automation github-project-automation bot moved this to New Issues in v2 Mar 7, 2025
@midigofrank midigofrank self-assigned this Mar 7, 2025
@midigofrank midigofrank moved this from New Issues to In progress in v2 Mar 7, 2025
@midigofrank midigofrank linked a pull request Mar 7, 2025 that will close this issue
11 tasks
@midigofrank midigofrank moved this from In progress to In review in v2 Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Newly identified bug
Projects
Status: In review
Development

Successfully merging a pull request may close this issue.

1 participant