Skip to content

Hotfix/contentful - Taxonomy Support Added#1042

Open
shobhit-cstk wants to merge 3 commits intodevfrom
hotfix/contentful
Open

Hotfix/contentful - Taxonomy Support Added#1042
shobhit-cstk wants to merge 3 commits intodevfrom
hotfix/contentful

Conversation

@shobhit-cstk
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread app.json Outdated
Comment thread api/src/services/contentful.service.ts Outdated
Comment thread api/src/services/migration.service.ts
Comment thread api/src/services/migration.service.ts
Comment thread api/package-lock.json
Comment thread upload-api/src/services/contentful/index.ts
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants