Repository navigation
feature/2644 regroup asset subtypes and add mcdev migrate - #2646
Merged
Merged
Conversation
Historical asset group folders are renamed in v10: - message -> email - jsonmessage -> mobile (jsonmessagetemplate keeps the template group) - webpage, webtemplate, cloudpages, landingpage, microsite, interactivecontent and the six *coderesource types -> webstudio Adds `mcdev migrate <cred/bu>`, which moves the selected Business Unit's existing retrieve tree into the current layout. Only that one retrieve tree is touched; the deploy and template trees are left alone and no server call is made. Moves are conflict-safe: when any destination path already exists, the whole asset is left in place and reported instead of being moved partially. createDeltaPkg now ignores byte-identical regrouping moves, so a path change without a content edit produces neither an addition nor a deletion, while an asset that was moved and edited stays actionable in its new location instead of showing up as a logical deletion in the old one. Also drops the retired xnerd.ampscript-language extension recommendation and updates the boilerplate VS Code file-nesting patterns to the new groups.
Coverage ReportCommit:257cc34Base: develop@fd0a632 Details (changed files):
|
The migration guide now lives in the wiki, which is the maintained home for this material and covers the same ground in more detail: https://github.com/Accenture/sfmc-devtools/wiki/03.a-~-Migrating-to-v10 Remove the in-repo copy so the two cannot drift apart, and point the README at the wiki page instead. Before removing it, the one thing the wiki was missing was carried over: the list of retired legacy boilerplate build scripts (build, build-cp, build-email) and the note that custom or chained build commands are preserved.
The v10 asset migration gave no feedback while it ran and could leave retired group folders behind without explaining why. - print upfront info stating what happens, that only the local retrieve folder is reorganized (no changes on the server) and that it may take a while - show one cli-progress bar per historical group, sized from the owner count already gathered before any move - never throw while removing folders: retry once on EPERM/EBUSY and record survivors instead of aborting the run - replace file-move-driven pruning, which could never remove folders that were already empty, with a bottom-up sweep of the retired group root; the now-unused pruneEmptyDirectories is removed - report asset types without a current mapping instead of skipping them silently - distinguish surviving folders that are now empty (safe to remove manually) from those that still contain files (must NOT be deleted) and name the remaining entries - guard the directory walk against unreadable entries so the report is always produced - raise the Mocha timeout in the automation and journey suites, which exceeded the 2000 ms default on loaded machines
Migrate every BU of one credential in a single run: per-BU reporting with each line prefixed credential/BU, a per-BU catch so one failure cannot abort the run, and partial results returned. Stops the group progress bar on throw so a failed BU no longer leaves a stale bar. Adds mutation-verified coverage for the isolation and bar cleanup.
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.
PR details
What changes did you make? (Give an overview)
Further details (optional)
Historical asset group folders are renamed in v10:
Adds
mcdev migrate <cred/bu>, which moves the selected Business Unit's existing retrieve tree into the current layout. Only that one retrieve tree is touched; the deploy and template trees are left alone and no server call is made. Moves are conflict-safe: when any destination path already exists, the whole asset is left in place and reported instead of being moved partially.createDeltaPkg now ignores byte-identical regrouping moves, so a path change without a content edit produces neither an addition nor a deletion, while an asset that was moved and edited stays actionable in its new location instead of showing up as a logical deletion in the old one.
Also drops the retired xnerd.ampscript-language extension recommendation and updates the boilerplate VS Code file-nesting patterns to the new groups.
Checklist