Skip to content
This repository was archived by the owner on Jan 19, 2021. It is now read-only.

Commit a9e2ce6

Browse files
Merge pull request #2246 from SharePoint/dev
September 2019 Release
2 parents 83ad7e8 + a6aadc4 commit a9e2ce6

29 files changed

+543
-52
lines changed
Binary file not shown.

Binaries/SharePointPnP.Modernization.Framework.xml

+36-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

Binaries/release/SharePointPnP.Modernization.Framework.xml

+36-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

+17
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
55

66
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
77

8+
## [3.13.1909.0]
9+
10+
### Added
11+
12+
### Changed
13+
14+
- Added -Label parameter to Add-PnPList and Set-PnPListItem to allow setting a retention label
15+
- ConvertTo-PnPClientSidePage: Added support for skipping the default URL rewriting while still applying any custom URL rewriting if specified (SkipDefaultUrlRewriting parameter)
16+
- ConvertTo-PnPClientSidePage: Added support reverting to the pre September 2019 behaviour for images insides tables/lists. As of September 2019 these images are not created anymore as additional separate image web part since the modern text editor is not dropping the embedded images anymore on edit (AddTableListImageAsImageWebPart parameter)
17+
- Get-PnPSearchCrawlLog: Added switch to show raw crawl log data, as data can change in the back-end. Fixed to show log message.
18+
- Set-PnPTenant: Added switch to set disabled 1st party web parts
19+
20+
### Contributors
21+
22+
- Dan Cecil [danielcecil]
23+
- Koen zomers [KoenZomers]
24+
825
## [3.12.1908.0]
926

1027
### Added

Commands/Admin/SetTenant.cs

+8
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,9 @@ The only two characters that can be managed at this time are the # and % charact
402402
[Parameter(Mandatory = false, HelpMessage = "Defines if the default themes are visible or hidden")]
403403
public bool? HideDefaultThemes;
404404

405+
[Parameter(Mandatory = false, HelpMessage = "Guids of out of the box modern web part id's to hide")]
406+
public Guid[] DisabledWebPartIds;
407+
405408
protected override void ExecuteCmdlet()
406409
{
407410
ClientContext.Load(Tenant);
@@ -958,6 +961,11 @@ protected override void ExecuteCmdlet()
958961
Tenant.HideDefaultThemes = HideDefaultThemes.Value;
959962
isDirty = true;
960963
}
964+
if (DisabledWebPartIds != null)
965+
{
966+
Tenant.DisabledWebPartIds = DisabledWebPartIds;
967+
isDirty = true;
968+
}
961969
if (isDirty)
962970
{
963971
ClientContext.ExecuteQueryRetry();

Commands/Base/ConnectOnline.cs

+13-2
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,17 @@ namespace SharePointPnP.PowerShell.Commands.Base
103103
Remarks = "Connects to the Microsoft Graph API using application permissions via an app's declared permission scopes. See https://github.com/SharePoint/PnP-PowerShell/tree/master/Samples/Graph.ConnectUsingAppPermissions for a sample on how to get started.",
104104
SortOrder = 14)]
105105
[CmdletExample(
106-
Code = "PS:> Connect-PnPOnline -Url https://contoso.sharepoint.com -ClientId '<id>' -Tenant 'contoso.onmicrosoft.com' -PEMCertificate <PEM string> -PEMPrivateKey <PEM string>",
106+
Code = "PS:> Connect-PnPOnline -Url https://contoso.sharepoint.com -ClientId '<id>' -Tenant 'contoso.onmicrosoft.com' -CertificatePath c:\\absolute-path\\to\\pnp.pfx -CertificatePassword <if needed>",
107107
Remarks = "Connects to SharePoint using app-only tokens via an app's declared permission scopes. See https://github.com/SharePoint/PnP-PowerShell/tree/master/Samples/SharePoint.ConnectUsingAppPermissions for a sample on how to get started.",
108108
SortOrder = 15)]
109+
[CmdletExample(
110+
Code = "PS:> Connect-PnPOnline -Url https://contoso.sharepoint.com -ClientId '<id>' -Tenant 'contoso.onmicrosoft.com' -Thumbprint 34CFAA860E5FB8C44335A38A097C1E41EEA206AA",
111+
Remarks = "Connects to SharePoint using app-only tokens via an app's declared permission scopes. See https://github.com/SharePoint/PnP-PowerShell/tree/master/Samples/SharePoint.ConnectUsingAppPermissions for a sample on how to get started.",
112+
SortOrder = 16)]
113+
[CmdletExample(
114+
Code = "PS:> Connect-PnPOnline -Url https://contoso.sharepoint.com -ClientId '<id>' -Tenant 'contoso.onmicrosoft.com' -PEMCertificate <PEM string> -PEMPrivateKey <PEM string> -CertificatePassword <if needed>",
115+
Remarks = "Connects to SharePoint using app-only tokens via an app's declared permission scopes. See https://github.com/SharePoint/PnP-PowerShell/tree/master/Samples/SharePoint.ConnectUsingAppPermissions for a sample on how to get started.",
116+
SortOrder = 17)]
109117
#endif
110118
#if ONPREMISES
111119
[CmdletExample(
@@ -463,7 +471,10 @@ public class ConnectOnline : PSCmdlet
463471
[Parameter(Mandatory = false, ParameterSetName = ParameterSet_APPONLYAAD, HelpMessage = "Ignores any SSL errors. To be used i.e. when connecting to a SharePoint farm using self signed certificates or using a certificate authority not trusted by this machine.")]
464472
[Parameter(Mandatory = false, ParameterSetName = ParameterSet_APPONLYAADPEM, HelpMessage = "Ignores any SSL errors. To be used i.e. when connecting to a SharePoint farm using self signed certificates or using a certificate authority not trusted by this machine.")]
465473
[Parameter(Mandatory = false, ParameterSetName = ParameterSet_APPONLYAADThumb, HelpMessage = "Ignores any SSL errors. To be used i.e. when connecting to a SharePoint farm using self signed certificates or using a certificate authority not trusted by this machine.")]
466-
[Parameter(Mandatory = false, ParameterSetName = ParameterSet_SPOMANAGEMENT, HelpMessage = "Ignores any SSL errors. To be used i.e. when connecting to a SharePoint farm using self signed certificates or using a certificate authority not trusted by this machine.")]
474+
[Parameter(Mandatory = false, ParameterSetName = ParameterSet_GRAPHWITHAAD, HelpMessage = "Ignores any SSL errors. To be used i.e. when connecting through a proxy to the Microsoft Graph API which has SSL interception enabled.")]
475+
[Parameter(Mandatory = false, ParameterSetName = ParameterSet_GRAPHWITHSCOPE, HelpMessage = "Ignores any SSL errors. To be used i.e. when connecting through a proxy to the Microsoft Graph API which has SSL interception enabled.")]
476+
[Parameter(Mandatory = false, ParameterSetName = ParameterSet_GRAPHDEVICELOGIN, HelpMessage = "Ignores any SSL errors. To be used i.e. when connecting through a proxy to the Microsoft Graph API which has SSL interception enabled.")]
477+
[Parameter(Mandatory = false, ParameterSetName = ParameterSet_SPOMANAGEMENT, HelpMessage = "Ignores any SSL errors. To be used i.e. when connecting to a SharePoint farm using self signed certificates or using a certificate authority not trusted by this machine.")]
467478
#endif
468479
#if ONPREMISES
469480
[Parameter(Mandatory = false, ParameterSetName = ParameterSet_HIGHTRUST_CERT, HelpMessage = "Ignores any SSL errors. To be used i.e. when connecting to a SharePoint farm using self signed certificates or using a certificate authority not trusted by this machine.")]

Commands/Base/PipeBinds/PagePipeBind.cs

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#if !SP2013 && !SP2016
1+
#if !SP2013 && !SP2016 && !SP2019
22
using Microsoft.SharePoint.Client;
33
using OfficeDevPnP.Core.Utilities;
4+
using SharePointPnP.Modernization.Framework.Transform;
45
using SharePointPnP.PowerShell.Commands.ClientSidePages;
56
using System;
67
using System.Linq;
@@ -56,7 +57,16 @@ internal ListItem GetPage(Web web, string listToLoad)
5657

5758
web.EnsureProperty(w => w.ServerRelativeUrl);
5859
var listServerRelativeUrl = UrlUtility.Combine(web.ServerRelativeUrl, listToLoad);
59-
var libraryContainingPage = web.GetList(listServerRelativeUrl);
60+
61+
List libraryContainingPage = null;
62+
if (BaseTransform.GetVersion(web.Context) == SPVersion.SP2010)
63+
{
64+
libraryContainingPage = web.GetListByName(listToLoad);
65+
}
66+
else
67+
{
68+
libraryContainingPage = web.GetList(listServerRelativeUrl);
69+
}
6070

6171
if (libraryContainingPage != null)
6272
{

Commands/Base/PipeBinds/UnifiedGroupPipeBind.cs

+16-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
using OfficeDevPnP.Core.Entities;
22
using OfficeDevPnP.Core.Framework.Graph;
33
using System;
4-
using System.Collections.Generic;
54
using System.Linq;
6-
using System.Text;
7-
using System.Threading.Tasks;
85

96
namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds
107
{
@@ -67,5 +64,21 @@ public UnifiedGroupEntity GetGroup(string accessToken, bool includeClassificatio
6764
}
6865
return group;
6966
}
67+
68+
public UnifiedGroupEntity GetDeletedGroup(string accessToken)
69+
{
70+
UnifiedGroupEntity group = null;
71+
72+
if (Group != null)
73+
{
74+
group = UnifiedGroupsUtility.GetDeletedUnifiedGroup(Group.GroupId, accessToken);
75+
}
76+
else if (!string.IsNullOrEmpty(GroupId))
77+
{
78+
group = UnifiedGroupsUtility.GetDeletedUnifiedGroup(GroupId, accessToken);
79+
}
80+
81+
return group;
82+
}
7083
}
7184
}

0 commit comments

Comments
 (0)