Skip to content

Commit

Permalink
Fix RiskActionPlanner script when upgrading + various templates chang…
Browse files Browse the repository at this point in the history
…es [skip-ci]
  • Loading branch information
Remi749 committed Jan 23, 2024
1 parent b4d9093 commit 2164d04
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$TargetVersion = "1.9.0"

if ($global:__InstalledVersion -lt $TargetVersion) {
[System.Guid]$ClientSideComponentId = "2511e707-1b8a-4dc3-88d1-b7002eb3ce54"
[System.Guid]$ClientSideComponentId = "1dd9fdb3-df0f-4248-a869-ca6f512e3d0f"
if ($null -ne $global:__CurrentChannelConfig) {
$ClientSideComponentId = $global:__CurrentChannelConfig.spfx.solutions.ProjectExtensions.components.RiskActionPlanner
}
Expand Down
2 changes: 1 addition & 1 deletion SharePointFramework/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
| ProjectSetup | ProjectExtensions | Oppsett av prosjekt dialog | ce34553d-ab47-4107-8dd1-e980d953996d |
| ProjectUpgrade | ProjectExtensions | Oppgradering av prosjekt dialog | 453a6c1e-e1d0-4b12-a3fc-690a36da1f0c |
| TemplateSelectorCommand | ProjectExtensions | Dokumentmalvelger dialog (Malbibliotek) | c9080212-e63e-47cc-8278-00ad38c3f5a5 |
| RiskActionPlanner | ProjectExtensions | Planner tiltak | 2511e707-1b8a-4dc3-88d1-b7002eb3ce54 |
| RiskActionPlanner | ProjectExtensions | Planner tiltak | 1dd9fdb3-df0f-4248-a869-ca6f512e3d0f |
| OpportunityMatrixWebPart | ProjectWebParts | Mulighetsmatrise | aff0baa2-9ab4-4c13-a062-d5fa5028121c |
| ProjectInformationWebPart | ProjectWebParts | Prosjektinformasjon | b8bec0be-2354-443d-a3ca-24b36e8ea7dc |
| ProjectPhasesWebPart | ProjectWebParts | Fasevelger | 4449d3dc-fa58-4982-b87c-5a893114e7b7 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
</pnp:Files>
<pnp:Lists>
<pnp:ListInstance Title="Fasesjekkliste" Description="" DocumentTemplate="" TemplateType="100" Url="Lists/Fasesjekkliste" EnableVersioning="true" DraftVersionVisibility="0" ContentTypesEnabled="true" RemoveExistingContentTypes="true" EnableFolderCreation="false" EnableAttachments="false">
<pnp:DataRows UpdateBehavior="Skip" KeyColumn="Title">
<pnp:DataRows KeyColumn="Title" UpdateBehavior="Skip">
<pnp:DataRow>
<pnp:DataValue FieldName="Title">Er det en tydelig definert problemstilling som synliggjør behovet for nærmere utredning?</pnp:DataValue>
<pnp:DataValue FieldName="GtProjectPhase">Ingen fase|6edb42ac-9aaf-4f07-9cf5-5dfdf9ab0c32</pnp:DataValue>
Expand Down Expand Up @@ -315,7 +315,7 @@
</pnp:DataRows>
</pnp:ListInstance>
<pnp:ListInstance Title="Planneroppgaver" TemplateType="100" Url="Lists/Planneroppgaver" ContentTypesEnabled="true" RemoveExistingContentTypes="true" EnableFolderCreation="false" EnableAttachments="false" EnableVersioning="true">
<pnp:DataRows UpdateBehavior="Overwrite" KeyColumn="Title">
<pnp:DataRows KeyColumn="Title" UpdateBehavior="Overwrite">
<pnp:DataRow>
<pnp:DataValue FieldName="Title">Beslutte utredning av idéen og utforme et førsteutkast til prosjektmandat</pnp:DataValue>
<pnp:DataValue FieldName="GtCategory">Ingen fase</pnp:DataValue>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
</pnp:Folders>
</pnp:ListInstance>
<pnp:ListInstance Title="Fasesjekkliste Anlegg" TemplateType="100" Url="Lists/Fasesjekkliste_Anlegg" Hidden="false" EnableVersioning="true" MinorVersionLimit="0" MaxVersionLimit="50000" DraftVersionVisibility="0" EnableFolderCreation="false" EnableAttachments="false">
<pnp:DataRows UpdateBehavior="Skip" KeyColumn="Title">
<pnp:DataRows KeyColumn="Title" UpdateBehavior="Skip">
<pnp:DataRow>
<pnp:DataValue FieldName='Title'>Er oppdragsbestilling signert og mottatt?</pnp:DataValue>
<pnp:DataValue FieldName='GtProjectPhase'>Initiering|dca0a226-0907-4c54-8624-6b51fcac7a92</pnp:DataValue>
Expand Down Expand Up @@ -295,7 +295,7 @@
</pnp:DataRows>
</pnp:ListInstance>
<pnp:ListInstance Title="Planneroppgaver Anlegg" TemplateType="100" Url="Lists/Planneroppgaver_Anlegg" EnableFolderCreation="false" EnableAttachments="false" EnableVersioning="true">
<pnp:DataRows UpdateBehavior="Skip" KeyColumn="Title">
<pnp:DataRows KeyColumn="Title" UpdateBehavior="Skip">
<pnp:DataRow >
<pnp:DataValue FieldName='Title'>Støtte oppdragsgiver (KTA) i å definere krav og rammer etter behov</pnp:DataValue>
<pnp:DataValue FieldName='GtCategory'>Initiering</pnp:DataValue>
Expand Down Expand Up @@ -524,7 +524,7 @@
</pnp:Folders>
</pnp:ListInstance>
<pnp:ListInstance Title="Fasesjekkliste Bygg" TemplateType="100" Url="Lists/Fasesjekkliste_Bygg" Hidden="false" EnableVersioning="true" MinorVersionLimit="0" MaxVersionLimit="50000" DraftVersionVisibility="0" EnableFolderCreation="false" EnableAttachments="false">
<pnp:DataRows UpdateBehavior="Skip" KeyColumn="Title">
<pnp:DataRows KeyColumn="Title" UpdateBehavior="Skip">
<pnp:DataRow>
<pnp:DataValue FieldName="Title">Er brukerrepresentanter konsultert/involvert?</pnp:DataValue>
<pnp:DataValue FieldName="GtProjectPhase">Avklare behov|35997358-534f-475b-be9f-2544a3b80c8d</pnp:DataValue>
Expand Down Expand Up @@ -843,7 +843,7 @@
</pnp:DataRows>
</pnp:ListInstance>
<pnp:ListInstance Title="Planneroppgaver Bygg" TemplateType="100" Url="Lists/Planneroppgaver_Bygg" ContentTypesEnabled="true" RemoveExistingContentTypes="true" EnableFolderCreation="false" EnableAttachments="false" EnableVersioning="true">
<pnp:DataRows UpdateBehavior="Skip" KeyColumn="Title">
<pnp:DataRows KeyColumn="Title" UpdateBehavior="Skip">
<pnp:DataRow>
<pnp:DataValue FieldName='Title'>Analysere alternative løsninger</pnp:DataValue>
<pnp:DataValue FieldName='GtCategory'>Avklare behov - Mulighetsstudie (F0)</pnp:DataValue>
Expand Down
2 changes: 1 addition & 1 deletion Templates/Portfolio/Objects/Lists/Datakilder.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<pnp:FieldRef ID="e4223ef9-c549-4038-8652-9ffd71118cb2" Name="GtProjectContentGroupBy" DisplayName="{resource:SiteFields_GtProjectContentGroupBy_DisplayName}" />
<pnp:FieldRef ID="40b5cbd9-4d0a-42eb-a790-65d83b9c7035" Name="GtODataQuery" DisplayName="{resource:SiteFields_GtODataQuery_DisplayName}" />
</pnp:FieldRefs>
<pnp:DataRows KeyColumn="Title" UpdateBehavior="Overwrite">
<pnp:DataRows KeyColumn="Title" UpdateBehavior="Skip">
<pnp:DataRow>
<pnp:DataValue FieldName="GtDataSourceId">fc9ff008-36cf-4531-9bce-ba545526834f</pnp:DataValue>
<pnp:DataValue FieldName="Title">Alle prosjektleveranser</pnp:DataValue>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<Default>Innstilling uten navn</Default>
</Field>
</pnp:Fields>
<pnp:DataRows UpdateBehavior="Skip" KeyColumn="GtSettingsId">
<pnp:DataRows KeyColumn="GtSettingsId" UpdateBehavior="Skip">
<pnp:DataRow>
<pnp:DataValue FieldName="GtSettingsId">{e77e3aa3-a6b9-4a7e-8b94-6cb889124b82}</pnp:DataValue>
<pnp:DataValue FieldName="Title">Bruk Planner for å håndtere tiltak i Usikkerhetslisten</pnp:DataValue>
Expand Down
2 changes: 1 addition & 1 deletion Templates/Portfolio/Objects/Lists/Hjelpeinnhold.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<CustomFormatter />
</View>
</pnp:Views>
<pnp:DataRows UpdateBehavior="Overwrite" KeyColumn="Title">
<pnp:DataRows KeyColumn="Title" UpdateBehavior="Overwrite">
<pnp:DataRow>
<pnp:DataValue FieldName="GtSortOrder">10</pnp:DataValue>
<pnp:DataValue FieldName="Title">Porteføljenivå Brukermanual</pnp:DataValue>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<pnp:Fields>
<Field DisplayName="{resource:Lists_Idea_Configuration_Field_GtDescription_DisplayName}" Description="{resource:Lists_Idea_Configuration_Field_GtDescription_Description}" ID="{c3beecea-c0e5-4d18-9b45-3c7d7949bee4}" Name="GtDescription" StaticName="GtDescription" Type="Note" UnlimitedLengthInDocumentLibrary="TRUE" />
</pnp:Fields>
<pnp:DataRows KeyColumn="Title" UpdateBehavior="Skip">
<pnp:DataRows KeyColumn="Title" UpdateBehavior="Skip" >
<pnp:DataRow>
<pnp:DataValue FieldName="Title">Standard</pnp:DataValue>
<pnp:DataValue FieldName="GtIdeaProcessingList">Idébehandling</pnp:DataValue>
Expand Down
2 changes: 1 addition & 1 deletion Templates/Portfolio/Objects/Lists/Listeinnhold.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<JSLink>clienttemplates.js</JSLink>
</View>
</pnp:Views>
<pnp:DataRows UpdateBehavior="Overwrite" KeyColumn="Title">
<pnp:DataRows KeyColumn="Title" UpdateBehavior="Skip">
<pnp:DataRow>
<pnp:DataValue FieldName="Title">Fasesjekkpunkter</pnp:DataValue>
<pnp:DataValue FieldName="GtDescription">Fasesjekkpunkter basert på Prosjektveiviserens beslutningspunkter</pnp:DataValue>
Expand Down
2 changes: 1 addition & 1 deletion Templates/Portfolio/Objects/Lists/Maloppsett.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<pnp:FieldRef ID="c3beecea-c0e5-4d18-9b45-3c7d7949bee4" Name="GtDescription" DisplayName="{resource:Lists_GtDescription_DisplayName}" />
<pnp:FieldRef ID="77baede1-38df-454c-a53a-dd7904ba0046" Name="GtIsProgram" DisplayName="{resource:Lists_GtIsProgram_DisplayName}" />
</pnp:FieldRefs>
<pnp:DataRows UpdateBehavior="Overwrite" KeyColumn="Title">
<pnp:DataRows KeyColumn="Title" UpdateBehavior="Overwrite">
<pnp:DataRow>
<pnp:DataValue FieldName="Title">Standardmal</pnp:DataValue>
<pnp:DataValue FieldName="Order">100</pnp:DataValue>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<ViewData />
</View>
</pnp:Views>
<pnp:DataRows KeyColumn="Title" UpdateBehavior="Overwrite">
<pnp:DataRows KeyColumn="Title" UpdateBehavior="Skip">
<pnp:DataRow>
<pnp:DataValue FieldName="Title">Prosjektleder</pnp:DataValue>
<pnp:DataValue FieldName="GtProjectFieldName">GtProjectManager</pnp:DataValue>
Expand Down
2 changes: 1 addition & 1 deletion Templates/Portfolio/Objects/Lists/Statusseksjoner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<JSLink>clienttemplates.js</JSLink>
</View>
</pnp:Views>
<pnp:DataRows KeyColumn="Title" UpdateBehavior="Overwrite">
<pnp:DataRows KeyColumn="Title" UpdateBehavior="Skip">
<pnp:DataRow>
<pnp:DataValue FieldName="GtSortOrder">10</pnp:DataValue>
<pnp:DataValue FieldName="Title">Overordnet status</pnp:DataValue>
Expand Down

0 comments on commit 2164d04

Please sign in to comment.