enhc: Added taxonomy publish details for all taxonomy#112
Merged
cs-raj merged 1 commit intofeat/taxonomy-publishingfrom Apr 27, 2026
Merged
enhc: Added taxonomy publish details for all taxonomy#112cs-raj merged 1 commit intofeat/taxonomy-publishingfrom
cs-raj merged 1 commit intofeat/taxonomy-publishingfrom
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:
✅ BUILD PASSED - All security checks passed |
aman19K
approved these changes
Apr 27, 2026
netrajpatel
approved these changes
Apr 27, 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.
Summary
Ensures taxonomy export JSON files retain
publish_detailswhen the per-UID export API omits or returns empty publish metadata. This is achieved by cachingpublish_detailsfrom the taxonomy list (find) API and merging them only when the detailed export is empty.Problem
taxonomy().query(…).find()) withinclude_publish_details: truecan returnpublish_detailson each taxonomy.export-taxonomy) may not include the samepublish_details(it can benull,[], or{}).Solution
publish_detailsduring fetch/sanitize, keyed by locale bucket (localeCode) or_defaultfor non-localized list fetch.publish_detailsintotaxonomy.publish_detailsonly if the export value is considered empty (missing, null, empty array, or empty object).publish_detailsreturned by the detailed export.publishDetailsByLocalealong with other taxonomy state so buckets stay consistent.Technical notes
include_publish_details: truevia shared query settings (qs).exportTaxonomies.onSuccess, immediately beforewriteFilefor each{locale}/{uid}.jsonor legacy{uid}.json.Files changed
cli-plugins/packages/contentstack-export/src/export/modules/taxonomies.ts: includes changes forpublishDetailsByLocale, sanitize merge capture, mergeListPublishDetailsIntoExportPayload / helpers, legacy reset indetermineExportStrategycli-plugins/packages/contentstack-export/test/unit/export/modules/taxonomies.test.ts: coverage for merge behavior (legacy / locale, no clobber, empty fill)cli-plugins/packages/contentstack-export/src/export/modules/taxonomies-flow.md: flow/docs for publish cache and merge policy.