Actions
action #99414
openEnsure we eventually delete non-existing assets from the database
Start date:
2021-09-28
Due date:
% Done:
0%
Estimated time:
Description
Since https://github.com/os-autoinst/openQA/pull/4136 we track non-existing assets. However, we should still ensure that assets are deleted from the database after the last job referencing the asset has been deleted.
acceptance criteria¶
- AC1: The
assets
table contains no rows for non-existing assets unless the assets are still referenced by a job.
suggestions¶
- Possibly this is already the case. Write a unit test first to check that.
- If it isn't the case, use DBIx's features for deleting rows when a related row has been deleted.
No data to display
Actions