-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* In case of no default planner-elements, create a blank plan to avoid planner-webpart error on the front page (#703) * Timeline configuration, timeline rework + support for project deliveries (#698) * Timeline improvements * Update sp-js-provisioning for running hooks (#709) * Add improvements to document template selector (#712) * Fix for GtResourceLoad list column (#710) * Changed list fields to site fields in template * Handling upgrade of existing sites #610 * Added changelog * Order of events * Handling of incorrect field format * Transcripting upgrade * Minor formatting Co-authored-by: Ole Martin Pettersen <olemp@puzzlepart.com> * More info for #705 * Dynamic and improved aggregated lists for Portfolio (#717) * Fix syntax for letter 'å' in template (Gevinstoversikt) (#721) * Minor fixes and imrovements to #717 (#722) * Update PostInstallUpgrade script to remove unnecessary fields from * Update PreInstallUpgrade script to remove unnecessary fields from * Update Aggregated webparts with properties * Update PreInstallUpgrade script and remove overwrite true from pages * Fix problem where columns wasn't rendered properly * Update changelog * if dataSourceCategory is missing for projects return null (#723) * Add handling of navigation, keep customer customizations and reapply * Add some extra checks for dataSourceCategory (Projectlevel) * Install/upgrade script improvements (#729) * Improved field descriptions of datasources fields (#728) * Field types not in sync with 'Prosjektinnholdskolonner' data (#732) * Add GtColMinWidth to 'Prosjektinnholdskolonner' list + ct * Add 'updateProjectContentColumn' when editing type/minWidth from webpart * Use minWidth value from 'Prosjektinnholdskolonner' list for columns * Initialize dataType for aggregated webpart columns correctly * 736 sync error (#737) * Fix for #736 * linting * Update packages * Further fixes after serving #736 * Changelog * lint fix * Minor changes Co-authored-by: Remi Blom-Ohlsen <remi.blom-ohlsen@puzzlepart.com> * Update packages * Hopefully fixed #736 * Fix for #736 after more testing * Minor tweak after #736 * 1.6.0 Co-authored-by: Ole Martin Pettersen <olemp@puzzlepart.com> Co-authored-by: Tarjei E. Ormestøyl <ormestoyl@gmail.com>
- Loading branch information
1 parent
a82f6cc
commit 6dc2381
Showing
137 changed files
with
6,453 additions
and
2,810 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
|
||
$LastInstall = Get-PnPListItem -List "Installasjonslogg" -Query "<View><Query><OrderBy><FieldRef Name='Created' Ascending='False' /></OrderBy></Query></View>" | Select-Object -First 1 -Wait | ||
if ($null -ne $LastInstall) { | ||
$PreviousVersion = $LastInstall.FieldValues["InstallVersion"] | ||
|
||
if ($PreviousVersion -lt "1.4.0") { | ||
Write-Host "[INFO] Removing deprecated pages" | ||
|
||
$DeprecatedIds = @( | ||
"d8558017-1e3b-4d13-82fa-2520e845297b", | ||
"3ec6bcaf-28bc-4f2e-9e90-77e8cebf0b5f", | ||
"57530c94-4fb2-4ca2-9279-16c57881fa19" | ||
) | ||
|
||
$Pages = Get-PnPFolder -Url SitePages -Includes Files | Select-Object -ExpandProperty Files | ||
|
||
$Pages | ForEach-Object { | ||
$DeprecatedComponents = Get-PnPClientSideComponent -Page $_.Name | Where-Object { $DeprecatedIds.Contains($_.WebPartId) } | ||
if ($DeprecatedComponents.Count -gt 0) { | ||
Remove-PnPClientSidePage $_.Name -Force -ErrorAction SilentlyContinue | ||
} | ||
} | ||
} | ||
|
||
if ($PreviousVersion -lt "1.6.0") { | ||
Get-PnPProvisioningTemplate -Out "$BasePath\Navigation.xml" -Handlers Navigation -Erroraction SilentlyContinue | ||
((Get-Content -path "$BasePath\Navigation.xml" -Raw) -replace 'false', 'true') | Set-Content -Path "$BasePath\Navigation.xml" -Force -ErrorAction SilentlyContinue | ||
|
||
Write-Host "[INFO] Removing deprecated pages" | ||
Write-Host "[INFO] In version v1.6.0 we reworked the aggregated webparts and removed the benefits webpart as this is now handled in the aggregated webpart. Removing pages so that we overwrite the old pages correctly" | ||
|
||
$PnPClientSidePages = @( | ||
"Gevinstoversikt.aspx", | ||
"Erfaringslogg.aspx", | ||
"Leveranseoversikt.aspx", | ||
"Risikooversikt.aspx" | ||
) | ||
|
||
$Pages = Get-PnPFolder -Url SitePages -Includes Files | Select-Object -ExpandProperty Files | ||
$Pages | ForEach-Object { | ||
if ($PnPClientSidePages.Contains($_.Name)) { | ||
Remove-PnPClientSidePage -Identity $_.Name -Force -ErrorAction SilentlyContinue | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.