ENG-2806: Migrate IDP staged resources to unified IDP_APP type#7712
Draft
dsill-ethyca wants to merge 4 commits intomainfrom
Draft
ENG-2806: Migrate IDP staged resources to unified IDP_APP type#7712dsill-ethyca wants to merge 4 commits intomainfrom
dsill-ethyca wants to merge 4 commits intomainfrom
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
Migrates existing Okta App/Entra App staged resources to unified IDP App resource type with provider stored in meta JSON. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
8ae7791 to
8500b2f
Compare
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This reverts commit ea7c614.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
adamsachs
approved these changes
Mar 20, 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.
Ticket ENG-2806
Description Of Changes
Add a data migration to unify IDP staged resource types. Existing
Okta AppandEntra Approws are consolidated to a singleIDP Appresource type, with the provider stored inmeta["provider"]. Also renames the legacyokta_app_idkey to the genericapp_idin the meta JSON.No customer data is affected — IDP monitor resources are not yet in production. This migration keeps continuity in dev/staging environments.
Code Changes
src/fides/api/alembic/migrations/versions/xx_2026_03_20_1745_ad1bb600715b_migrate_idp_staged_resources.py- Data migration: renameokta_app_id→app_idin meta, addproviderkey, updateresource_typefromOkta App/Entra ApptoIDP AppSteps to Confirm
alembic upgrade head— verify migration applies without errorsSELECT resource_type, meta->>'provider', meta->>'app_id' FROM stagedresource WHERE resource_type = 'IDP App'— verify all IDP resources have the new type and provideralembic downgrade 38071fffda39— verify downgrade restores originalOkta App/Entra Apptypes andokta_app_idkeyPre-Merge Checklist
CHANGELOG.mdupdatedmaindowngrade()migration is correct and works