Skip to content

Commit

Permalink
Fix bundles
Browse files Browse the repository at this point in the history
Remove obsolete patterns bundle and fix a previous upgrade for `eea.facetednavigation`
  • Loading branch information
laulaz committed May 24, 2024
1 parent 77986ab commit 46fe0db
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ Changelog
1.2.14 (unreleased)
-------------------

- Fix bundles: Remove obsolete patterns bundle and fix a previous upgrade for
eea.facetednavigation
[laulaz]

- Fix translate call (was causing incorrect string in .po file)
[laulaz]

Expand Down
2 changes: 1 addition & 1 deletion src/imio/smartweb/common/profiles/default/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<version>1029</version>
<version>1030</version>
<dependencies>
<dependency>profile-plone.restapi:default</dependency>
<dependency>profile-eea.facetednavigation:default</dependency>
Expand Down
18 changes: 18 additions & 0 deletions src/imio/smartweb/common/upgrades/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@
provides="Products.GenericSetup.interfaces.EXTENSION"
/>

<genericsetup:registerProfile
name="upgrade_1029_to_1030"
title="Upgrade common from 1029 to 1030"
directory="profiles/1029_to_1030"
description="Remove obsolete patterns bundle / fix previous 1027_to_1028 upgrade"
provides="Products.GenericSetup.interfaces.EXTENSION"
/>

<genericsetup:upgradeStep
title="Configure first official release"
description="Run needed registry step"
Expand Down Expand Up @@ -420,4 +428,14 @@
/>
</genericsetup:upgradeSteps>

<genericsetup:upgradeSteps
source="1029"
destination="1030"
profile="imio.smartweb.common:default">
<genericsetup:upgradeDepends
title="Remove obsolete patterns bundle / fix previous 1027_to_1028 upgrade"
import_profile="imio.smartweb.common.upgrades:upgrade_1029_to_1030"
/>
</genericsetup:upgradeSteps>

</configure>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<registry>

<records prefix="plone.bundles/patterns"
interface="Products.CMFPlone.interfaces.IBundleRegistry"
remove="true" />

<records prefix="plone.bundles/faceted.jquery"
interface="Products.CMFPlone.interfaces.IBundleRegistry">
<value key="jscompilation">++plone++facetednavigation/faceted-jquery.min.js</value>
</records>

</registry>

0 comments on commit 46fe0db

Please sign in to comment.