[MGNLMIGRATION-218] Config Migration: areas in the site definition is missing the editable=false property Created: 24/Jan/13  Updated: 15/Feb/13  Resolved: 07/Feb/13

Status: Closed
Project: Migration 4.4 to 4.5 (closed)
Component/s: Migration Task
Affects Version/s: 1.2
Fix Version/s: 1.2.1

Type: Bug Priority: Major
Reporter: Natascha Desmarais Assignee: Milan Divilek
Resolution: Fixed Votes: 0
Labels: metaNavigation, migration, migrationto45
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLSTK-1089 Remove obsolete update task for addin... Closed
Template:
Acceptance criteria:
Empty

 Description   

The metaNavigation, footer and sectionHeader area definitions in the site definition needs to have an extra property set now: editable=false.

The result of the current migration leaves you with an overall editable metaNavigation, footer and sectionHeader.

Rated as Major since the outcome of a migrated stk site definition != vanilla installation.
However, this should really only be set as a default in the site definition, not to be repeated in a normal template migration.



 Comments   
Comment by Natascha Desmarais [ 24/Jan/13 ]

This is actually a little weird since this is part of the delta task for 2.0.1!

STKModuleVersionHandler.java
register(DeltaBuilder.update("2.0.1", "")
   .addTask(new NodeBuilderTask("Add editable property to stkSection page", "Adds and sets editable property to true for sectionHeader area on stkSection pages.", ErrorHandling.logging, RepositoryConstants.CONFIG, "/modules/standard-templating-kit/templates/pages/stkSection/areas",
       getNode("sectionHeader").then(
           addProperty("editable", Boolean.TRUE)
       )
   ))
   .addTask(new NodeBuilderTask("Add editable property to areas", "Adds and sets editable property to false on sectionHeader, footer and metaNavigation.", ErrorHandling.logging, RepositoryConstants.CONFIG, "/modules/standard-templating-kit/config/site/templates/prototype/areas",
       getNode("sectionHeader").then(
           addProperty("editable", Boolean.FALSE)
       ),
       getNode("footer").then(
           addProperty("editable", Boolean.FALSE)
       ),
       getNode("branding/areas/metaNavigation").then(
               addProperty("editable", Boolean.FALSE)
       )
   ))
);
Generated at Mon Feb 12 10:18:16 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.