fix(resources): reset deployment and block access to wildcard on deletion#659
Merged
mitchnielsen merged 2 commits intomainfrom Mar 17, 2026
Merged
fix(resources): reset deployment and block access to wildcard on deletion#659mitchnielsen merged 2 commits intomainfrom
mitchnielsen merged 2 commits intomainfrom
Conversation
…tion Same bug as #652 (work_pool_access): deleting the resource set actor IDs to empty, locking everyone out instead of restoring default open access. Now resets actor IDs to ["*"] while leaving team IDs empty.
…and block access Mirrors the test pattern from #652 (work_pool_access): a two-step acceptance test that sets restricted access, removes the resource, then verifies the API returns wildcard ["*"] access.
jamiezieziula
approved these changes
Mar 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Same bug fixed in #652 for
prefect_work_pool_access: whenprefect_deployment_accessorprefect_block_accessresources are deleted, theDeletefunction was resetting actor IDs to[](empty), which locks everyone out. Should be["*"]to restore the default open access state.Related to https://linear.app/prefect/issue/PLA-2466/fixresources-reset-deployment-access-and-block-access-to-wildcard-on
Requirements
General
Closes <issue>, if availableDraftstatus is used until ready for reviewCode-level changes