Uh oh!
There was an error while loading. Please reload this page.
fix: add global fields FVRs in export - #232
Conversation
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
Consider reviewing these vulnerabilities when fixes become available. |
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
Consider reviewing these vulnerabilities when fixes become available. |
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
Consider reviewing these vulnerabilities when fixes become available. |
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
❌ BUILD FAILED - Security checks failed Please review and fix the security vulnerabilities before merging. |
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
❌ BUILD FAILED - Security checks failed Please review and fix the security vulnerabilities before merging. |
shafeeqd959
commented
Jul 1, 2026
@naman-contentstack Please wait for the review from my side |
There was a problem hiding this comment.
Pull request overview
This PR improves handling of Field Visibility Rules (field_rules) involving global fields across the CLI plugins: exporting global-field rules, safely deferring/rehydrating embedded-global-field rules during import, and auditing global-field rules.
Changes:
- Export: allow
field_rulesto be included when exporting global fields. - Import: extend
updateFieldRulesto optionally keep global-field rules, and re-apply them after global fields are complete (updateGFFieldRules). - Audit: extend the
field-rulesaudit to scan both content types and global fields; add/extend unit tests accordingly.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/contentstack-import/test/unit/utils/content-type-helper.test.ts | Adds unit coverage for dropping/keeping global-field rules and the isGlobalFieldRule predicate. |
| packages/contentstack-import/src/utils/content-type-helper.ts | Introduces isGlobalFieldRule and adds keepGlobalFieldRules option to updateFieldRules while avoiding mutation of the original rules array. |
| packages/contentstack-import/src/import/modules/content-types.ts | Re-applies deferred global-field rules after global fields are expected to be complete; tracks failures and reports partial success. |
| packages/contentstack-export/src/config/index.ts | Adds field_rules to the allowed export keys for global fields. |
| packages/contentstack-audit/test/unit/modules/field-rules.test.ts | Adds tests to ensure global-field field_rules are validated during audit. |
| packages/contentstack-audit/src/audit-base-command.ts | Runs field-rules audit for both CT and GF schemas and merges results into a single report/summary. |
| .talismanrc | Adds a talisman checksum ignore entry for the modified export config file. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
❌ BUILD FAILED - Security checks failed Please review and fix the security vulnerabilities before merging. |
1 similar comment
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
❌ BUILD FAILED - Security checks failed Please review and fix the security vulnerabilities before merging. |
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
Consider reviewing these vulnerabilities when fixes become available. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
Consider reviewing these vulnerabilities when fixes become available. |
Uh oh!
There was an error while loading. Please reload this page.
No description provided.