fix: update export-meta.ts to use 'policy_type' instead of 'template' #606
+1
−1
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
Updates the export-meta.ts config to use
policy_typeinstead oftemplatefor the policy table field mapping. This aligns with the schema change in constructive-db PR #328 where thetemplatecolumn was renamed topolicy_typein themetaschema_public.policytable.Review & Testing Checklist for Human
policy_typecolumn instead oftemplate. If merged before constructive-db, exports will fail.templatefor policies exist in this codebase that need updatingNotes
This is part of a larger refactoring effort to rename policy types to use PascalCase with Authz prefix (e.g.,
AuthzMembership,AuthzDirectOwner) and rename the column fromtemplatetopolicy_type.Related PRs:
Link to Devin run: https://app.devin.ai/sessions/14351ad5a39d46c9aa33be151e6977e4
Requested by: Dan Lynch (@pyramation)