Skip to content

Commit

Permalink
feat: Add Space Widgets Portlet Instance Images - MEED-7557 - Meeds-i…
Browse files Browse the repository at this point in the history
  • Loading branch information
boubaker committed Oct 2, 2024
1 parent 50bf0f7 commit fba5281
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public class PortletInstanceImportService {
@Value("${meeds.portlets.import.override:false}")
private boolean forceReimport;

@Value("${meeds.portlets.import.version:2}")
@Value("${meeds.portlets.import.version:4}")
private long portletInstanceImportVersion;

@PostConstruct
Expand All @@ -124,11 +124,10 @@ public void init() {

@ContainerTransactional
public void importPortletInstances() {
LOG.info("Importing Portlet instances");
if (!forceReimport
&& getSettingValue(PORTLET_INSTANCE_VERSION) != portletInstanceImportVersion) {
if (!forceReimport && getSettingValue(PORTLET_INSTANCE_VERSION) != portletInstanceImportVersion) {
forceReimport = true;
}
LOG.info("Importing Portlet instances with version {}, force reimport = {}", portletInstanceImportVersion, forceReimport);

ConversationState.setCurrent(layoutAclService.getSuperUserConversationState());
try {
Expand Down
3 changes: 3 additions & 0 deletions layout-service/src/main/resources/portlet-instances.json
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@
"descriptions":{
"en":"layout.portletInstance.SpaceWidgetDescription.description"
},
"illustrationPath":"war:/../images/portlets/spaceWidgetDescription.webp",
"permissions":["Everyone"],
"system":true
},
Expand All @@ -233,6 +234,7 @@
"descriptions":{
"en":"layout.portletInstance.SpaceWidgetManagers.description"
},
"illustrationPath":"war:/../images/portlets/spaceWidgetManagers.webp",
"permissions":["Everyone"],
"system":true
},
Expand All @@ -246,6 +248,7 @@
"descriptions":{
"en":"layout.portletInstance.SpaceWidgetMembers.description"
},
"illustrationPath":"war:/../images/portlets/spaceWidgetMembers.webp",
"permissions":["Everyone"],
"system":true
},
Expand Down
1 change: 0 additions & 1 deletion layout-webapp/src/main/resources/layout.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

spring.liquibase.change-log=classpath:changelog/layout-rdbms.db.changelog-master.xml
meeds.portlets.import.version=3
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit fba5281

Please sign in to comment.