Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting parameters alphabetically in Set-SPOSite.md #785

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

prgundel
Copy link
Contributor

@prgundel prgundel commented Jan 7, 2025

Sorted the parameters alphabetically
Fixed <Guid[]> to [Guid[]]

Sorted the parameters alphabetically 
Fixed <Guid[]> to [Guid[]]
Copy link
Contributor

Learn Build status updates of commit ebbce08:

✅ Validation status: passed

File Status Preview URL Details
sharepoint/sharepoint-ps/sharepoint-online/Set-SPOSite.md ✅Succeeded View (sharepoint-ps)

For more details, please refer to the build report.

For any questions, please:

@@ -22,64 +22,64 @@ Sets or updates one or more properties' values for a site collection.

```powershell
Set-SPOSite [-Identity] <SpoSitePipeBind> [-AllowSelfServiceUpgrade <Boolean>] [-Confirm]
Copy link

@Mengke-Gh Mengke-Gh Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for sorting all these existing params.
This [-AllowSelfServiceUpgrade] param is misplaced.

@@ -22,64 +22,64 @@ Sets or updates one or more properties' values for a site collection.

```powershell
Set-SPOSite [-Identity] <SpoSitePipeBind> [-AllowSelfServiceUpgrade <Boolean>] [-Confirm]
Copy link

@Mengke-Gh Mengke-Gh Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could the current format of having each param in each line being kept?
Set-SPOSite
[-Identity] <SpoSitePipeBind> [-Confirm]
[-AddRestrictedAccessControlGroups ]
...

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also update the Set-SPOTenant document?

  1. The extra space should be removed before the ending brackets.
  2. The params are not sort in alphabetical order.

[-SensitivityLabel ]
[-DisableWorkflow2010 ]
[-Sites ]
[-AnyoneLinkTrackUsers ]
[-OneDriveBlockGuestsAsSiteAdmin ]
[-AllowSharingOutsideRestrictedAccessControlGroups ]
[-Workflows2013Enabled ]
[-IsCollabMeetingNotesFluidEnabled ]
[-IsLoopEnabled ]
[-DisablePersonalListCreation ]
[-DisableVivaConnectionsAnalytics ]
[-AppBypassInformationBarriers ]
[-DisableModernListTemplateIds <Guid[]> ]
[-EnableModernListTemplateIds <Guid[]> ]
[-HideSyncButtonOnTeamSite ]
[-StreamLaunchConfig ]
[-EnableRestrictedAccessControl ]
[-BlockDownloadFileTypeIds <SPBlockDownloadFileTypeId[]> ]
[-ExcludedBlockDownloadGroupIds <Guid[]> ]
[-RecycleBinRetentionPeriod ]
[-EnableMediaReactions ]
[-AllowSensitivityLabelOnRecords ]
[-ContentSecurityPolicyEnforcement ]

[-Title <String>] [-WhatIf] [-AllowDownloadingNonWebViewableFiles <Boolean>]
[-BlockDownloadPolicy <Boolean>]
[-ClearRestrictedAccessControl <Boolean>]
[-ClearRestrictedAccessControl <SwitchParameter>]
Copy link

@Mengke-Gh Mengke-Gh Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you double check whether ClearRestrictedAccessControl alllows both <Boolean> and <SwitchParameter>?
They seems redundant to me.

[-Title <String>] [-WhatIf] [-AllowDownloadingNonWebViewableFiles <Boolean>]
[-BlockDownloadPolicy <Boolean>]
[-ClearRestrictedAccessControl <Boolean>]
[-ClearRestrictedAccessControl <SwitchParameter>]
[-CommentsOnSitePagesDisabled <Boolean>] [-SocialBarOnSitePagesDisabled <Boolean>]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why [-SocialBarOnSitePagesDisabled ] is here?

[-CommentsOnSitePagesDisabled <Boolean>] [-SocialBarOnSitePagesDisabled <Boolean>]
[-ConditionalAccessPolicy <SPOConditionalAccessPolicyType>]
[-DefaultLinkPermission]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing value type here and below?

[-DefaultLinkToExistingAccess]
[-DefaultShareLinkRole <SharingRole>]
[-DefaultShareLinkScope <SharingScope>]
[-DefaultSharingLinkType]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing value type?

[-DefaultShareLinkRole <SharingRole>]
[-DefaultShareLinkScope <SharingScope>]
[-DefaultSharingLinkType]
[-DenyAddAndCustomizePages <Boolean>] [-LocaleId <UInt32>] [-LockState <String>] [-MediaTranscription <MediaTranscriptionPolicyType>] [-NoWait] [-Owner <String>]
Copy link

@Mengke-Gh Mengke-Gh Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Multiple params are mixed in this line and not in the alphabetic order.

[-DefaultShareLinkRole <SharingRole>]
[-DefaultShareLinkScope <SharingScope>]
[-DefaultSharingLinkType]
[-DenyAddAndCustomizePages <Boolean>] [-LocaleId <UInt32>] [-LockState <String>] [-MediaTranscription <MediaTranscriptionPolicyType>] [-NoWait] [-Owner <String>]
Copy link

@Mengke-Gh Mengke-Gh Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[-Confirm],[-NoWait] [-WhatIf] are part of CommonParameters. There is no need to list them specifically as you have [<CommonParameters>] listed at the end.

[-SensitivityLabel <String>]
[-SharingAllowedDomainList <String>]
[-SharingBlockedDomainList <String>]
[-SharingCapability <SharingCapabilities>] [-StorageQuota <Int64>] [-StorageQuotaWarningLevel <Int64>]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mixed params in a single line.

[-SharingDomainRestrictionMode <SharingDomainRestrictionModes>]
[-ShowPeoplePickerSuggestionsForGuestUsers <Boolean>]
[-StorageQuotaReset]
[-Title <String>] [-WhatIf] [-AllowDownloadingNonWebViewableFiles <Boolean>]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mis-placed [-AllowDownloadingNonWebViewableFiles ...] here and mixed Mutiple params.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants