Skip to content

Conversation

@shobhitupadhyayy
Copy link
Contributor

….service.ts; update defaultValue to empty string in SearchComponent and TeaserComponent

Bug Fix - CMG-724

….service.ts; update defaultValue to empty string in SearchComponent and TeaserComponent

Bug Fix - CMG-724
@shobhitupadhyayy shobhitupadhyayy requested a review from a team as a code owner October 31, 2025 06:42
@umeshmore45 umeshmore45 requested a review from Copilot October 31, 2025 06:46
Copy link
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 updates configuration defaults and field handling for AEM migration. The changes align the system to use AEM as the CMS type and handle reserved field name mappings to avoid conflicts with Contentstack reserved fields.

  • Updated default CMS type from generic placeholder to 'aem'
  • Changed default values from null to empty strings for TextField components
  • Added reserved field mapping logic to rename conflicting fields like 'locale' to 'cm_locale'

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
upload-api/src/config/index.ts Updated default CMS type to 'aem' and hardcoded local path to user-specific directory
upload-api/migration-aem/libs/contentType/components/TeaserComponent.ts Changed integer field default value from null to empty string
upload-api/migration-aem/libs/contentType/components/SearchComponent.ts Changed integer field default value from null to empty string
api/src/services/aem.service.ts Added reserved field mapping helper to handle Contentstack reserved field names

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…vice.ts to utilize new field mappings for improved UID handling
@sayalijoshi27 sayalijoshi27 merged commit 5711f59 into dev Oct 31, 2025
7 checks passed
@sayalijoshi27 sayalijoshi27 deleted the fix/CMG-750 branch October 31, 2025 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants