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

components: Ensure deleting a blueprint also deletes any associated images #1767

Closed

Conversation

regexowl
Copy link
Contributor

@regexowl regexowl commented Feb 2, 2023

Fixes #1694.

This adds a deletion of any associated images when a blueprint is deleted.

Copy for the modal was also updated to inform the user that the images will be deleted together with the blueprint.

@regexowl regexowl force-pushed the delete-images-together-with-blueprint branch 3 times, most recently from 7271a1c to 041adf1 Compare February 9, 2023 13:14
@regexowl regexowl marked this pull request as ready for review February 9, 2023 13:15
@regexowl regexowl force-pushed the delete-images-together-with-blueprint branch 2 times, most recently from b9b74cd to 06abcab Compare February 9, 2023 13:26
Copy link
Collaborator

@jkozol jkozol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works as expected :)

But can you create a filtered thunk for deletion in the images. That way we can dispatch an action to delete filtered images more generally. This also would mean the deleteDlueprint thunk will only have to dispatch a single action instead of loop dispatching actions.

…mages

Fixes osbuild#1694.

This adds a deletion of any associated images when a blueprint is deleted.

Copy for the modal was also updated to inform the user that the images will be deleted together with the blueprint.
@regexowl regexowl force-pushed the delete-images-together-with-blueprint branch from 06abcab to 4f65880 Compare February 10, 2023 10:26
@regexowl
Copy link
Contributor Author

@jkozol Updated. Please let me know if it's similar to what you had in mind.

@regexowl regexowl requested a review from jkozol February 10, 2023 10:28
@regexowl
Copy link
Contributor Author

@jkozol This PR might also be a bit stale. Should I close it?

@regexowl
Copy link
Contributor Author

Closing this PR as stale

@regexowl regexowl closed this Jan 16, 2024
@regexowl regexowl deleted the delete-images-together-with-blueprint branch January 16, 2024 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure that deleting a blueprint also deletes any associated images
2 participants