Skip to content

Commit

Permalink
feat: Delete Popular Spaces Portlet Instance Definition - MEED-7427 - M…
Browse files Browse the repository at this point in the history
  • Loading branch information
boubaker committed Sep 5, 2024
1 parent ea9b7e2 commit 4893cd5
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 65 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ layout.portletInstance.challengesOverview.name=Challenges Overview
layout.portletInstance.challengesOverview.description=Gadget listing the actions to do
layout.portletInstance.programsOverview.name=Programs Overview
layout.portletInstance.programsOverview.description=Gadget listing latest programs to visit
layout.portletInstance.PopularSpaces.name=Popular Spaces
layout.portletInstance.PopularSpaces.description=Gadget listing popular spaces upon activities of their members
layout.portletInstance.UsersLeaderboard.name=Users Leaderboard
layout.portletInstance.UsersLeaderboard.description=Gadget listing users upon their contributions
layout.portletInstance.ProfileStats.name=Profile Statistics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,50 +162,6 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
</object-param>
</init-params>
</component-plugin>
<component-plugin>
<name>addPlugin</name>
<set-method>addPlugin</set-method>
<type>org.exoplatform.commons.addons.AddOnPluginImpl</type>
<description></description>
<init-params>
<value-param>
<name>priority</name>
<value>-1</value>
</value-param>
<value-param>
<name>containerName</name>
<value>rightbottom-spaces-container</value>
</value-param>
<object-param>
<name>PopularSpaces</name>
<description></description>
<object type="org.exoplatform.commons.addons.PortletModel">
<field name="contentId">
<string>gamification-portlets/PopularSpaces</string>
</field>
<field name="permissions">
<collection type="java.util.ArrayList">
<value>
<string>*:/platform/users</string>
</value>
</collection>
</field>
<field name="title">
<string>Popular spaces</string>
</field>
<field name="showInfoBar">
<boolean>false</boolean>
</field>
<field name="showApplicationState">
<boolean>false</boolean>
</field>
<field name="showApplicationMode">
<boolean>false</boolean>
</field>
</object>
</object-param>
</init-params>
</component-plugin>
<component-plugin>
<name>addPlugin</name>
<set-method>addPlugin</set-method>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,12 @@
<field name="newContentId">
<string>kudos/KudosOverview</string>
</field>
<field name="upgradePages">
<boolean>true</boolean>
</field>
<field name="upgradePortletInstance">
<boolean>false</boolean>
</field>
</object>
</object-param>
<object-param>
Expand All @@ -206,6 +212,84 @@
</object-param>
</init-params>
</component-plugin>
<component-plugin profiles="layout">
<name>MyReputationInstanceRemovalPortletsUpgrade</name>
<set-method>addUpgradePlugin</set-method>
<type>io.meeds.layout.plugin.upgrade.LayoutApplicationReferenceUpgradePlugin</type>
<init-params>
<value-param>
<name>product.group.id</name>
<description>The groupId of the product</description>
<value>org.exoplatform.social</value>
</value-param>
<value-param>
<name>plugin.execution.order</name>
<description>The plugin execution order</description>
<value>5</value>
</value-param>
<value-param>
<name>plugin.upgrade.execute.once</name>
<description>Execute only once, not each version change</description>
<value>true</value>
</value-param>
<object-param>
<name>myReputation</name>
<object type="io.meeds.layout.model.ApplicationReferenceUpgrade">
<field name="modificationType">
<string>remove</string>
</field>
<field name="oldContentId">
<string>gamification-portlets/myReputation</string>
</field>
<field name="upgradePages">
<boolean>false</boolean>
</field>
<field name="upgradePortletInstance">
<boolean>true</boolean>
</field>
</object>
</object-param>
</init-params>
</component-plugin>
<component-plugin profiles="layout">
<name>PopularSpacesInstanceRemovalPortletsUpgrade</name>
<set-method>addUpgradePlugin</set-method>
<type>io.meeds.layout.plugin.upgrade.LayoutApplicationReferenceUpgradePlugin</type>
<init-params>
<value-param>
<name>product.group.id</name>
<description>The groupId of the product</description>
<value>org.exoplatform.social</value>
</value-param>
<value-param>
<name>plugin.execution.order</name>
<description>The plugin execution order</description>
<value>5</value>
</value-param>
<value-param>
<name>plugin.upgrade.execute.once</name>
<description>Execute only once, not each version change</description>
<value>true</value>
</value-param>
<object-param>
<name>PopularSpaces</name>
<object type="io.meeds.layout.model.ApplicationReferenceUpgrade">
<field name="modificationType">
<string>remove</string>
</field>
<field name="oldContentId">
<string>gamification-portlets/PopularSpaces</string>
</field>
<field name="upgradePages">
<boolean>false</boolean>
</field>
<field name="upgradePortletInstance">
<boolean>true</boolean>
</field>
</object>
</object-param>
</init-params>
</component-plugin>
</external-component-plugins>

</configuration>
Binary file not shown.
19 changes: 0 additions & 19 deletions services/src/main/resources/portlet-instances.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,25 +113,6 @@
],
"system":true
},
{
"nameId":"PopularSpaces",
"categoryNameId":"contributions",
"portletName":"PopularSpaces",
"names":{
"en":"layout.portletInstance.PopularSpaces.name"
},
"descriptions":{
"en":"layout.portletInstance.PopularSpaces.description"
},
"illustrationPath":"war:/../skin/DefaultSkin/portletIcons/PopularSpaces.png",
"preferences":[

],
"permissions":[
"*:/platform/users"
],
"system":true
},
{
"nameId":"UsersLeaderboard",
"categoryNameId":"contributions",
Expand Down

0 comments on commit 4893cd5

Please sign in to comment.