Skip to content

Commit

Permalink
fix: Enable NodeTypeTemplateUpgradePlugin for 6.6.0 version in order …
Browse files Browse the repository at this point in the history
…to upgrade exo:news jcr nodetype view template - EXO-69032 (#193)


The bad display problem of news article jcr node from file explorer is fixed by modifying the exo:news jcr nodetype view template, for existing data instances, we need to enable the NodeTypeTemplateUpgradePlugin for next
version in order to apply the exo:news jcr nodetype view template modification.
  • Loading branch information
azayati committed Jan 22, 2024
1 parent 8ccd60e commit 5ffeae7
Showing 1 changed file with 28 additions and 29 deletions.
57 changes: 28 additions & 29 deletions data-upgrade-ecms/src/main/resources/conf/portal/configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,82 +82,81 @@
</value-param>
</init-params>
</component-plugin>



<component-plugin>
<name>NodeTypeTemplateUpgradePlugin</name>
<name>upgradeTemplateParamsPlugin</name>
<set-method>addUpgradePlugin</set-method>
<type>org.exoplatform.ecms.upgrade.templates.NodeTypeTemplateUpgradePlugin</type>
<description>Upgrade templates for node types</description>
<type>org.exoplatform.ecms.upgrade.activities.TemplateParamsUpgradePlugin</type>
<description>Update activities template params key</description>
<init-params>
<value-param>
<name>product.group.id</name>
<description>The groupId of the product</description>
<value>org.exoplatform.ecms</value>
<value>org.exoplatform.platform</value>
</value-param>
<value-param>
<name>old.template.params.key</name>
<description>The plugin will replace this key by the new one</description>
<value>WORKSPACE </value>
</value-param>
<value-param>
<name>new.template.params.key</name>
<description>The plugin will replace the old key by this one</description>
<value>WORKSPACE</value>
</value-param>
<value-param>
<name>plugin.execution.order</name>
<description>The plugin execution order</description>
<value>2</value>
<value>8</value>
</value-param>
<value-param>
<name>plugin.upgrade.execute.once</name>
<description>Execute this upgrade plugin only once</description>
<value>false</value>
<value>true</value>
</value-param>
<value-param>
<name>plugin.upgrade.async.execution</name>
<description>Execute this upgrade asynchronously</description>
<description>The plugin will be executed in an asynchronous mode</description>
<value>true</value>
</value-param>
<value-param>
<name>plugin.upgrade.target.version</name>
<description>Target version of the plugin</description>
<value>6.3.0</value>
<value>6.5.0</value>
</value-param>
</init-params>
</component-plugin>

<component-plugin>
<name>upgradeTemplateParamsPlugin</name>
<name>NodeTypeTemplateUpgradePlugin</name>
<set-method>addUpgradePlugin</set-method>
<type>org.exoplatform.ecms.upgrade.activities.TemplateParamsUpgradePlugin</type>
<description>Update activities template params key</description>
<type>org.exoplatform.ecms.upgrade.templates.NodeTypeTemplateUpgradePlugin</type>
<description>Upgrade templates for node types</description>
<init-params>
<value-param>
<name>product.group.id</name>
<description>The groupId of the product</description>
<value>org.exoplatform.platform</value>
</value-param>
<value-param>
<name>old.template.params.key</name>
<description>The plugin will replace this key by the new one</description>
<value>WORKSPACE </value>
</value-param>
<value-param>
<name>new.template.params.key</name>
<description>The plugin will replace the old key by this one</description>
<value>WORKSPACE</value>
<value>org.exoplatform.ecms</value>
</value-param>
<value-param>
<name>plugin.execution.order</name>
<description>The plugin execution order</description>
<value>8</value>
<value>2</value>
</value-param>
<value-param>
<name>plugin.upgrade.execute.once</name>
<description>Execute this upgrade plugin only once</description>
<value>true</value>
<value>false</value>
</value-param>
<value-param>
<name>plugin.upgrade.async.execution</name>
<description>The plugin will be executed in an asynchronous mode</description>
<description>Execute this upgrade asynchronously</description>
<value>true</value>
</value-param>
<value-param>
<name>plugin.upgrade.target.version</name>
<description>Target version of the plugin</description>
<value>6.5.0</value>
<value>6.6.0</value>
</value-param>
</init-params>
</component-plugin>
Expand Down

0 comments on commit 5ffeae7

Please sign in to comment.