Skip to content

Commit e897db3

Browse files
authored
Merge branch 'dev' into deleteDate_insteadof_defaultOrderBy
2 parents 530a95c + 54418a9 commit e897db3

26 files changed

+3749
-3707
lines changed

dependencies.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"Updated": "20250925-025214",
3-
"PnPPowerShell": "57bd953593690d4aadd54a4b80881442a57fb395",
4-
"PnPFramework": "4ca7cf7843fea9c249d53163df4bfe50fad936ea",
5-
"PnPCore": "3133a469011c2767c07ddf2ef94de2da3278b4f5"
2+
"Updated": "20251001-025757",
3+
"PnPPowerShell": "ab41e96fe9a8156d0402632f42e3c262d51c17d2",
4+
"PnPFramework": "c9d62cabfbe9a9ef8507d3c1b4886bc5f16f15ba",
5+
"PnPCore": "d391e54d532276c60428d9636e6921878740f511"
66
}

documentation/Add-PnPPageSection.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ Add-PnPPageSection -Page $page -SectionTemplate OneColumnVerticalSection -Order
6464

6565
Adds a new one column with one vertical section to the page 'MyPage' and sets the zone emphasis to 2 for one column and vertical zone emphasis to 3 for the vertical column.
6666

67+
### EXAMPLE 6
68+
```powershell
69+
$page = Add-PnPPage -Name "MyPage"
70+
Add-PnPPageSection -Page $page -SectionTemplate FlexibleLayoutSection -Order 1 -ZoneReflowStrategy LeftToRight
71+
```
72+
73+
Adds a flexible layout section to the page 'MyPage' and sets the zone reflow strategy to LeftToRight. Note: `-ZoneReflowStrategy` only applies to flexible layout section templates (for example `FlexibleLayoutSection` and `FlexibleLayoutVerticalSection`).
74+
6775

6876
## PARAMETERS
6977

@@ -142,6 +150,21 @@ Accept wildcard characters: False
142150
Sets the background of the vertical section (default = 0).
143151
Works only for vertical column layouts, will be ignored for other layouts.
144152
153+
### -ZoneReflowStrategy
154+
Controls how zones are reflowed when rendering flexible layout sections. This parameter only applies to flexible layout section templates (for example `FlexibleLayoutSection` and `FlexibleLayoutVerticalSection`). If not provided, the default is `TopToDown`.
155+
156+
```yaml
157+
Type: ZoneReflowStrategy
158+
Parameter Sets: (All)
159+
Accepted values: TopToDown, LeftToRight
160+
161+
Required: False
162+
Position: Named
163+
Default value: TopToDown
164+
Accept pipeline input: False
165+
Accept wildcard characters: False
166+
```
167+
145168
```yaml
146169
Type: Int32
147170
Parameter Sets: (All)

documentation/Get-PnPSearchCrawlLog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Returns the last 100 crawl log entries up until 100 days ago.
7070

7171
### EXAMPLE 7
7272
```powershell
73-
Get-PnPSearchCrawlLog -RowFilter 3 -RawFormat
73+
Get-PnPSearchCrawlLog -RowLimit 3 -RawFormat
7474
```
7575

7676
Returns the last 3 crawl log entries showing the raw crawl log data.

resources/predictor/PnP.PowerShell.Suggestions.nightly.json

Lines changed: 3642 additions & 3642 deletions
Large diffs are not rendered by default.

src/Commands/Admin/AddTenantRestrictedSearchAllowedList.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected override void ExecuteCmdlet()
3636
}
3737
else
3838
{
39-
throw new ArgumentException("Parameter set cannot be resolved using the specified named parameters.");
39+
throw new InvalidOperationException("Parameter set cannot be resolved using the specified named parameters.");
4040
}
4141

4242
if (_sitelist == null)

src/Commands/Admin/GetContainerTypeConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ protected override void ExecuteCmdlet()
1616
{
1717
if (Identity == Guid.Empty)
1818
{
19-
throw new ArgumentException($"Identity {Identity} value is invalid");
19+
throw new PSArgumentException($"Identity cannot be an empty GUID. Please provide a valid non-empty GUID.");
2020
}
2121
ClientResult<SPContainerTypeConfigurationProperties> sPOContainerTypeConfigurationByContainerTypeId = Tenant.GetSPOContainerTypeConfigurationByContainerTypeId(Identity);
2222
AdminContext.ExecuteQueryRetry();

src/Commands/Admin/GetStorageEntity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ protected override void ExecuteCmdlet()
9090
{
9191
var storageEntitiesDict = JsonSerializer.Deserialize<Dictionary<string, Dictionary<string, string>>>(storageEntitiesIndex);
9292

93-
var storageEntities = new List<StorageEntity>();
93+
var storageEntities = new List<StorageEntity>(storageEntitiesDict.Count);
9494
foreach (var key in storageEntitiesDict.Keys)
9595
{
9696
var storageEntity = new StorageEntity

src/Commands/Admin/GetTenantDeletedSite.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ protected override void ExecuteCmdlet()
3737
bool flag = Identity != null && !string.IsNullOrEmpty(Identity.Url) && UrlUtilities.IsPersonalSiteUrl(Identity.Url);
3838
if (Identity == null || string.IsNullOrEmpty(Identity.Url) || flag)
3939
{
40-
List<DeletedSiteProperties> list = new List<DeletedSiteProperties>();
40+
List<DeletedSiteProperties> list = [];
4141
uint siteRowLimit = Limit;
4242
bool flag2 = siteRowLimit == 0;
4343
bool flag3 = false;
@@ -95,7 +95,7 @@ private bool RequestDeletedSitePropertiesFromSharePoint(Func<string, SPODeletedS
9595
SPODeletedSitePropertiesEnumerable spoDeletedSitePropertiesEnumerable = getDeletedSitePropertiesFunc(text);
9696
if (spoDeletedSitePropertiesEnumerable == null)
9797
{
98-
throw new ArgumentNullException("Something went wrong fetching deleted sites");
98+
throw new InvalidOperationException("Failed to retrieve deleted sites from SharePoint Online");
9999
}
100100
AdminContext.Load(spoDeletedSitePropertiesEnumerable);
101101
AdminContext.Load(spoDeletedSitePropertiesEnumerable, (SPODeletedSitePropertiesEnumerable sp) => sp.NextStartIndexFromSharePoint);
@@ -146,7 +146,7 @@ private bool RequestDeletedSiteProperties(Func<int, SPODeletedSitePropertiesEnum
146146
AdminContext.ExecuteQueryRetry();
147147
if (spoDeletedSitePropertiesEnumerable == null)
148148
{
149-
throw new ArgumentNullException("Something went wrong fetching deleted sites");
149+
throw new InvalidOperationException("Failed to retrieve deleted sites from SharePoint Online");
150150
}
151151
checked
152152
{

src/Commands/Admin/RemoveTenantSite.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected override void ExecuteCmdlet()
3939
dodelete = ShouldContinue("You are trying to delete the root site collection. Be aware that you need to contact Office 365 Support in order to create a new root site collection. Also notice that some CSOM and REST operations require the root site collection to be present. Removing this site can affect all your remote processing code, even when accessing non-root site collections.", Resources.Confirm);
4040
}
4141

42-
if (dodelete && (Force || ShouldContinue(string.Format(Resources.RemoveSiteCollection0, Url), Resources.Confirm)))
42+
if (dodelete && (Force || ShouldContinue($"Remove site collection '{Url}'?", Resources.Confirm)))
4343
{
4444

4545
Func<TenantOperationMessage, bool> timeoutFunction = TimeoutFunction;

src/Commands/Admin/RemoveTenantSyncClientRestriction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ protected override void ExecuteCmdlet()
1313
{
1414
Tenant.IsUnmanagedSyncClientForTenantRestricted = false;
1515
Tenant.BlockMacSync = false;
16-
Tenant.ExcludedFileExtensionsForSyncClient = new List<string>();
16+
Tenant.ExcludedFileExtensionsForSyncClient = [];
1717
Tenant.OptOutOfGrooveBlock = false;
1818
Tenant.OptOutOfGrooveSoftBlock = false;
1919
Tenant.DisableReportProblemDialog = false;

0 commit comments

Comments
 (0)