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
Adds support for AM 2.0–style exports alongside the legacy asset flow in @contentstack/cli-cm-import.
Detection: Enables the AM path when the export includes spaces/ and stack metadata indicates am_v2 (see import-config-handler).
Orchestration: contentstack-import delegates space creation, folder/asset upload, org-level fields/asset types, and mapper output to @contentstack/cli-asset-management.
Mappers: Writes mapper/assets/uid-mapping.json, url-mapping.json, and space-uid-mapping.json for entries resolution (pending requests + throughput charts use GCP metrics; URLs map old AM direct URLs → new).
Stack linking: Links imported spaces to the target stack via branch settings (stack.branch(uid).updateSettings / am_v2.linked_workspaces) after mappers are written.
The reason will be displayed to describe this comment to others. Learn more.
I have not added comments for entire code changes, what I would suggest here that we should follow the export and import designs and code structures and utilities that we used in export and import of other modules here as well, please go through the assets. module export and import similar structure can be followed here, along with assets please check other modules as well, you could easily find the pattern that we followed, I expect the same here as well.
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.
Import: Asset Management (AM 2.0) integration
Adds support for AM 2.0–style exports alongside the legacy asset flow in
@contentstack/cli-cm-import.spaces/and stack metadata indicatesam_v2(seeimport-config-handler).contentstack-importdelegates space creation, folder/asset upload, org-level fields/asset types, and mapper output to@contentstack/cli-asset-management.mapper/assets/uid-mapping.json,url-mapping.json, andspace-uid-mapping.jsonforentriesresolution (pending requests + throughput charts use GCP metrics; URLs map old AM direct URLs → new).stack.branch(uid).updateSettings/am_v2.linked_workspaces) after mappers are written.Requires:
@contentstack/managementwith branchupdateSettings; regionassetManagementUrlfor AM API calls.