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

Changes to Get-PnPSiteCollectionAppCatalogs #2044

Merged
merged 3 commits into from
Jun 29, 2022
Merged

Conversation

KoenZomers
Copy link
Collaborator

@KoenZomers KoenZomers commented Jun 28, 2022

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

Fixes #2041

What is in this Pull Request ?

  • Renamed Get-PnPSiteCollectionAppCatalogs to Get-PnPSitecollectionAppCatalog to follow our naming convention
  • Changed so that Get-PnPSitecollectionAppCatalog now returns our own model
  • Every returned site will be validated if it still exists and about the actual current URL
  • Added -ExcludeDeletedSites optional parameter to Get-PnPSiteCollectionAppCatalogs which allows for site collections with App Catalogs that are in the recycle bin to be exluded from the results
  • Added -CurrentSite optional parameter to Get-PnPSiteCollectionAppCatalogs which allows for checking if the currently connected to site has a site collection App Catalogs provisioned on it

@KoenZomers KoenZomers changed the title Fixes issue #2041 Changes to Get-PnPSiteCollectionAppCatalogs Jun 28, 2022
@KoenZomers KoenZomers marked this pull request as ready for review June 28, 2022 09:13
@gautamdsheth
Copy link
Collaborator

Hey @KoenZomers , lets not introduce breaking changes here.

Lets just return whatever CSOM is returning instead of our own object.

Consider this scenario:

$appCatalogSites = Get-PnPSiteCollectionAppCatalog
$appCatalogSites[0]

Now, if $appCatalogSites[0] has some property, like $appCatalogSites[0].Title that is being used by users, it will be broken.

Same goes for the page, lets keep the URL as it was before.
People do keep that as bookmarks and suddenly they will find that its not working.
The alias is good , once we remove that Alias, we will change the page URL as well

@gautamdsheth gautamdsheth merged commit 9e6f991 into pnp:dev Jun 29, 2022
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.

[BUG] Get-PnPSiteCollectionAppCatalogs showing old site urls after the site is renamed and url changed
2 participants