Skip to content

Commit

Permalink
fix: when upgrading for 6.5 to 7.0, mycraft dashboard page is erased. -
Browse files Browse the repository at this point in the history
EXO-76109

Before this fix, the upgrade plugin for page myteam update the portal navigation. This have effect to reload dashboard page, and override modifications done in UI in 6.5.5
This commit configure the UP to not update the navigation
In addition, in some case, the UP ExoMyCraft can be launch in 7.0.x but it is not necessary, so this commit remove the cofniguration for this UP
  • Loading branch information
rdenarie committed Dec 23, 2024
1 parent c6728c0 commit d589200
Showing 1 changed file with 1 addition and 64 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,69 +21,6 @@

<external-component-plugins>
<target-component>org.exoplatform.commons.upgrade.UpgradeProductService</target-component>
<component-plugin>
<name>ExoMyCraftSiteUpgrade</name>
<set-method>addUpgradePlugin</set-method>
<type>io.meeds.social.upgrade.LayoutUpgradePlugin</type>
<description>Updates MyCraft site display-order, page layouts and navigation</description>
<init-params>
<value-param>
<name>product.group.id</name>
<value>org.exoplatform.social</value>
</value-param>
<value-param>
<name>plugin.execution.order</name>
<value>120</value>
</value-param>
<value-param>
<name>plugin.upgrade.execute.once</name>
<value>true</value>
</value-param>
<value-param>
<name>enabled</name>
<value>true</value>
</value-param>
<object-param>
<name>overview.upgrade</name>
<object type="io.meeds.social.upgrade.model.LayoutUpgrade">
<field name="updatePortalConfig">
<boolean>true</boolean>
</field>
<field name="updatePageLayout">
<boolean>true</boolean>
</field>
<field name="updateNavigation">
<boolean>true</boolean>
</field>
<field name="configPath">
<string>war:/conf/sites/</string>
</field>
<field name="portalType">
<string>portal</string>
</field>
<field name="portalName">
<string>mycraft</string>
</field>
<field name="pageNames">
<collection type="java.util.ArrayList" item-type="java.lang.String">
<value>
<string>dashboard</string>
</value>
<value>
<string>tasks</string>
</value>
<value>
<string>achievements</string>
</value>
<value>
<string>wallet</string>
</value>
</collection>
</field>
</object>
</object-param>
</init-params>
</component-plugin>
<component-plugin>
<name>DwSiteUpgrade</name>
<set-method>addUpgradePlugin</set-method>
Expand Down Expand Up @@ -344,7 +281,7 @@
<boolean>true</boolean>
</field>
<field name="updateNavigation">
<boolean>true</boolean>
<boolean>false</boolean>
</field>
<field name="configPath">
<string>war:/conf/sites/</string>
Expand Down

0 comments on commit d589200

Please sign in to comment.