feat: add is_sso parameter to migration and content type handling fun…#1024
Merged
umeshmore45 merged 3 commits intodevfrom Apr 2, 2026
Merged
feat: add is_sso parameter to migration and content type handling fun…#1024umeshmore45 merged 3 commits intodevfrom
umeshmore45 merged 3 commits intodevfrom
Conversation
umeshmore45
previously approved these changes
Apr 1, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the migration/content-type creation flow to propagate an is_sso flag (so downstream calls can choose SSO access tokens vs basic authtoken auth), and refines UI-side content type mapping resolution to prefer the latest local mapping state with a Redux fallback.
Changes:
- UI: resolve mapped destination content type UID using local
contentTypeMappedfirst, then Reduxcontent_type_mapping, and update effect dependencies accordingly. - API: add
is_ssopropagation frommigration.service→fieldAttacher→contenTypeMaker→existingCtMappertoken payload. - API: include
is_ssoin the synthetic request payloads used to callcontentMapperServicefor existing CT/global-field lookups.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| ui/src/components/ContentMapper/index.tsx | Updates mapping lookup logic and effect dependencies for selecting the mapped destination content type. |
| api/src/services/migration.service.ts | Extracts and forwards is_sso from request token payload into the migration pipeline. |
| api/src/utils/field-attacher.utils.ts | Accepts/forwards is_sso to content type creation. |
| api/src/utils/content-type-creator.utils.ts | Threads is_sso into existing content type/global field retrieval calls via token_payload. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
vikrantraut-cstk
previously approved these changes
Apr 2, 2026
umeshmore45
previously approved these changes
Apr 2, 2026
416a6d5
vikrantraut-cstk
approved these changes
Apr 2, 2026
umeshmore45
approved these changes
Apr 2, 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.
…ctions