Repository navigation
Fix for 1274 - Fixing publish option for template provisioning extraction - #1275
Conversation
… extracted as Published or not.
|
@Adam-it Best regards |
|
@Magnus-K-work, thanks for pinging me up. BTW, thanks for your work and contributions to the PnP Framework. You Rock 🤩. And as I said already, I will do my very best so that the work done will not get lost, but 'moved' to PnP Core once the time is right 👍 |
|
@Adam-it I haven't gotten to reimplement my test project for PnP.Core.Provisioning, just had a quick look and realized that I have to implement the PnP.Core authentication parts as they differ from my current PnP.Framework stuff. I have put it on my list, I'd like to know how that works anyways. 😃 BR |
|
Tested the original PnP.Core.Provisioning 1.18.35-nightly on my test project (makes a template out of a site, removes all but one page from the template, applies the template to another site) and it works like the PnP.Framework provisioning did. (E.g. works but I can see the layout bug present in PnP.Core.Provisioning) I'll try to find time to create issues and PRs in PnP.Core.Provisioning for my three PnP.Framework PRs. 👍 BR |
Related issue:
#1274 - Provisioning - Template extraction always sets page as Published
What is changed:
ProvisioningTemplateCreationInformation.cs - line 34 Added a propery that will control if extracted pages will be drafts or published. Defaults to state Published, to preserve original behavior.
ClientSidePageContentsHelper.cs - line 108, use value from template provisioning information object instead of setting to true.
Tests:
Not run in full, as many provisioning tests require installation of O365 Starter Intranet which is outdated/archived
Third public PR ever, please help me improve. :)
BR
Magnus