Hotfix/contentful - Taxonomy Support Added#1042
Open
shobhit-cstk wants to merge 3 commits intodevfrom
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds end-to-end taxonomy support for Contentful migrations (schema extraction, mapper transport, taxonomy file generation, and entry assignment), along with some Content Mapper UI mapping fixes and dependency updates.
Changes:
- Extract Contentful taxonomy schemes from export metadata and include them in mapper payloads.
- Generate taxonomy vocabularies/terms from Contentful exports in the API and assign entry taxonomy values from
metadata.concepts. - Improve Content Mapper UI matching for nested modular blocks and adjust a few config/dependency files.
Reviewed changes
Copilot reviewed 13 out of 15 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| upload-api/src/services/contentful/index.ts | Calls taxonomy extraction and includes taxonomies in mapper POST payload. |
| upload-api/src/config/index.ts | Updates default localPath placeholder. |
| upload-api/migration-contentful/libs/extractTaxonomy.js | New extractor that writes taxonomySchema.json from Contentful export metadata.taxonomy. |
| upload-api/migration-contentful/libs/createInitialMapper.js | Adds taxonomy field rows to initial mapper based on content type metadata.taxonomy. |
| upload-api/migration-contentful/index.js | Exports extractTaxonomy from the migration library. |
| upload-api/migration-aem/package-lock.json | Locks additional Node typings dependencies. |
| ui/src/components/ContentMapper/index.tsx | Refactors and extends matching logic for saved mappings against modular blocks nesting. |
| app.json | Updates app metadata and auth configuration values (currently includes real-looking identifiers). |
| api/src/utils/content-type-creator.utils.ts | Normalizes taxonomy UIDs and adjusts taxonomy field schema creation/merge behavior. |
| api/src/services/migration.service.ts | Invokes Contentful taxonomy generation before creating entries (test + prod flows). |
| api/src/services/contentful/taxonomy.service.ts | New service to derive taxonomies/terms from Contentful export and write taxonomy files. |
| api/src/services/contentful.service.ts | Assigns taxonomy field values to entries based on metadata.concepts, and exposes createTaxonomy. |
| api/src/services/contentMapper.service.ts | Adds a fallback path to discover Contentful taxonomies from upload-api generated files. |
| api/package.json | Reorders/adds dependencies (incl. @emnapi/*). |
| api/package-lock.json | Updates many locked dependency versions (incl. Node engine requirements for undici). |
Files not reviewed (2)
- api/package-lock.json: Language not supported
- upload-api/migration-aem/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…nfig - Extract and map Contentful taxonomies from export; upload-api and mapper integration - Contentful service: field/widget helpers, taxonomy metadata locale resolution (mapper + sys.locale) - API: Vitest thresholds; migration and user unit tests (SSO, createTaxonomy mocks) - app.json placeholder updates and related fixes
71f90ee to
0765373
Compare
ff8bbd5 to
0765373
Compare
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.
No description provided.