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

feat: delete components from management functions #5215

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

zacharyhamm
Copy link
Contributor

Components managed by a management component can now be deleted in a management func. Two new properties have been added to the ops return value: delete?: string[] and erase?: string[]. Delete will mark components with resources as to_delete, while erase will delete components regardless of their resource status. Components to delete or erase can be specified either by their name, or their id (available on the components input array). id will be more reliable if there is more than one managed component with the same name.

@github-actions github-actions bot added A-sdf Area: Primary backend API service [Rust] A-dal A-dal-test labels Jan 7, 2025
Copy link

github-actions bot commented Jan 7, 2025

Dependency Review

✅ No vulnerabilities or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

@zacharyhamm zacharyhamm force-pushed the zack/mgmt-fns-can-delete-components-and-views branch from b14e519 to 63c082a Compare January 7, 2025 20:19
@zacharyhamm
Copy link
Contributor Author

This PR refactors deletion so that the management function and the delete components endpoint use mostly the same code. To test it one should delete and erase a combination of components on head, not on head, with and without resources to see if they delete properly

Components managed by a management component can now be deleted in a
management func. Two new properties have been added to the ops return
value: `delete?: string[]` and `erase?: string[]`. Delete will mark
components with resources as to_delete, while erase will delete
components regardless of their resource status. Components to delete or
erase can be specified either by their name, or their id (available on
the components input array). id will be more reliable if there is more
than one managed component with the same name.
@zacharyhamm zacharyhamm force-pushed the zack/mgmt-fns-can-delete-components-and-views branch from 63c082a to aec717c Compare January 8, 2025 16:05
@zacharyhamm zacharyhamm added this pull request to the merge queue Jan 9, 2025
Merged via the queue into main with commit db9bbba Jan 9, 2025
9 checks passed
@zacharyhamm zacharyhamm deleted the zack/mgmt-fns-can-delete-components-and-views branch January 9, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-dal A-dal-test A-sdf Area: Primary backend API service [Rust]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants