Add staged publishing-page migration framework for Enterprise Wiki - #1278
Draft
TaoziZ03 wants to merge 53 commits into
Draft
Add staged publishing-page migration framework for Enterprise Wiki#1278TaoziZ03 wants to merge 53 commits into
TaoziZ03 wants to merge 53 commits into
Conversation
3 tasks
…migration-publishable
Member
|
Hey there, quick question what are you building here? Did you know we have the modernisation framework as part of this repo and PnP PowerShell that does this already. |
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
Consumer cmdlet PR: pnp/powershell#5457. It intentionally remains unchanged while the Framework API and namespace layout are reviewed.
Architecture
The dependency direction is now:
This is composition rather than a publishing-page inheritance hierarchy. Future Wiki Page and Web Part Page families can define their own aggregates while reusing
PageIdentity,PageField*,ClassicWebPart*,PageReference*,PageSecurity*,PageLifecycleSnapshot, capture fences, and planning mechanics.Policy now lives at the narrowest owning layer:
PageLifecycleSnapshotis shared evidence;PublishingPageLifecyclePolicyowns Draft/Published interpretation.ClassicWebPartSnapshotReaderonly captures common export evidence;EnterpriseWikiWebPartPolicyowns the Enterprise Wiki portability decision.PageIdentityis page-wide; publishing layout moved toPublishingPageLayoutSnapshotin the Publishing capture aggregate.The implementation reuses existing PnP primitives including
GetPagesLibrary,AddPublishingPage,GetWebParts,AddWebPartToWebPartPage,EnsureFolderPath,UploadFile,ExecuteQueryRetry,UrlUtility, andResourcePath.API and namespace changes in this draft
PnP.Framework.Migration.PublishingPages.*->PnP.Framework.Migration.Pages.*orPnP.Framework.Migration.Pages.Publishing.*, based on ownershipPublishingPageIdentity->PageIdentityPublishingPageExportOptions->PageCaptureOptionsPublishingPagePlanningOptions->PagePlanningOptionsPublishingPageMigrationOperation->PageMigrationOperationPublishingPageContentTransformer->PageTextTransformerPageWebPartSnapshot*->ClassicWebPartSnapshot*PageLifecyclePolicy->PublishingPageLifecyclePolicyPageWebPartPortabilityPolicy->EnterpriseWikiWebPartPolicyThe JSON snapshot now stores publishing layout under
snapshot.layout, separate from commonsnapshot.sourceidentity. The schema remains draft/unreleased and the focused round-trip test covers the new shape.Technical documentation
src/lib/PnP.Framework/Migration/README.mddefines the migration boundary and links the current areas.src/lib/PnP.Framework/Migration/Pages/README.mddefines shared-kernel ownership, dependency direction, evidence-vs-policy rules, and how future page families compose it.src/lib/PnP.Framework/Migration/Pages/Publishing/README.mddocuments the Publishing family, all versioned artifacts and fields, lifecycle behavior, field dispositions, reference/Web Part/security policy, validation expectations, and current limitations.Validation
netstandard2.0,net8.0,net9.0, andnet10.0EnterpriseWikiMigrationTestspassed onnet10.0Pagesdependency audit passed: no reference toPublishingorEnterpriseWikigit diff --checkpassedNo live-tenant import was run as part of this PR preparation.