Fix PolicySet --prereqs import to create missing resource types before PolicySet import#578
Merged
Merged
Conversation
… flow Agent-Logs-Url: https://github.com/rockcarver/frodo-lib/sessions/17ba7543-91b6-40c9-bb2a-543ec5255d01 Co-authored-by: vscheuber <28791378+vscheuber@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix importing PolicySet with prerequisites failure
Fix PolicySet Apr 21, 2026
--prereqs import to create missing resource types before PolicySet import
vscheuber
approved these changes
Apr 21, 2026
vscheuber
added a commit
to vscheuber/frodo-lib
that referenced
this pull request
Apr 25, 2026
…ore PolicySet import (rockcarver#578) * Initial plan * fix(policyset): import resource type prereqs via resource type import flow Agent-Logs-Url: https://github.com/rockcarver/frodo-lib/sessions/17ba7543-91b6-40c9-bb2a-543ec5255d01 Co-authored-by: vscheuber <28791378+vscheuber@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: vscheuber <28791378+vscheuber@users.noreply.github.com>
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.
authz set import --prereqscould fail with “Resource Type ... does not exist” because PolicySet prerequisite handling attempted a direct resource-type update path that assumes prior existence. This prevented importing a PolicySet + ResourceType bundle in one operation.Prerequisite import behavior
PolicySetOpsto use the resource-type import flow (importResourceType) rather than a direct APIputResourceTypecall.Scope
Illustrative diff
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
openam-frodo-dev.classic.com/usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/frodo-lib/frodo-lib/node_modules/jest-worker/build/processChild.js(dns block)openam-frodo-dev.forgeblocks.com/usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/frodo-lib/frodo-lib/node_modules/jest-worker/build/processChild.js(dns block)If you need me to access, download, or install something from one of these locations, you can either: