You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes two issues in the query export / import flow on branchfix/query-export:
Management token auth in query export— When exporting via a management token, the CLI was passing the token value to-ainstead of the stack alias. The alias from--aliasis now stored onQueryExportConfigand passed to the underlying export command, so auth works correctly with management tokens.
Asset URLs in plain text fields— During import, asset URL discovery only ran for text fields with markdown/rich_text metadata. URLs in plain text fields were skipped.findFileUrlsis now invoked once on the full entry so asset URLs are collected regardless of schema shape.
Changes
Package | File | Change
-- | -- | --
contentstack-query-export | config-handler.ts, types/index.ts | Persist alias from CLI flags
contentstack-query-export | module-exporter.ts | Use alias (not managementToken) for -a when token auth is used
contentstack-import | asset-helper.ts | Unconditional findFileUrls scan after schema-based lookup
Test plan
Run query export with--alias <alias>and management token; confirm export completes and uses the correct stack alias (not the raw token) in the spawned export CLI.
Export entries that reference assets via plain text fields (no markdown/rich text metadata).
Import those entries and verify asset URLs in plain text fields are mapped and assets resolve correctly.
Regression: export/import with markdown/rich text fields still maps assets as before.
Regression: export with explicit-a/ alias option in module options still behaves as expected.
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
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
Fixes two issues in the query export / import flow on branch
fix/query-export:-ainstead of the stack alias. The alias from--aliasis now stored onQueryExportConfigand passed to the underlying export command, so auth works correctly with management tokens.findFileUrlsis now invoked once on the full entry so asset URLs are collected regardless of schema shape.Changes
Test plan
--alias <alias>and management token; confirm export completes and uses the correct stack alias (not the raw token) in the spawned export CLI.-a/ alias option in module options still behaves as expected.