Skip to content

Commit

Permalink
feat: enable solr.fields behavior on some content types
Browse files Browse the repository at this point in the history
WEB-4072, WEB-4073
  • Loading branch information
remdub committed Feb 27, 2024
1 parent 24ab520 commit 426affe
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Changelog
1.2.9 (unreleased)
------------------

- WEB-4072, WEB-4073 : Enable solr.fields behavior on some content types
[remdub]

- WEB-4006 : Exclude some content types from search results
[remdub]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
<element value="imio.smartweb.topics"/>
<element value="imio.smartweb.iam"/>
<element value="plone.categorization"/>
<element value="solr.fields" />
</property>

<!-- View information -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<element value="plone.locking"/>
<element value="plone.leadimage"/>
<element value="eea.faceted.navigable"/>
<element value="solr.fields" />
</property>

<!-- View information -->
Expand Down
22 changes: 20 additions & 2 deletions src/imio/directory/core/upgrades/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@
provides="Products.GenericSetup.interfaces.EXTENSION"
/>

<genericsetup:registerProfile
name="upgrade_1014_to_1015"
title="Upgrade core from 1014 to 1015"
directory="profiles/1014_to_1015"
description="Add solr.fields behavior to some content types"
provides="Products.GenericSetup.interfaces.EXTENSION"
/>

<genericsetup:upgradeStep
title="Add selected_entities to existing contacts"
description="Every contact should have its current entity in selected_entities"
Expand Down Expand Up @@ -159,10 +167,20 @@
source="1013"
destination="1014"
profile="imio.directory.core:default">
<genericsetup:upgradeDepends
<genericsetup:upgradeDepends
title="Exclude some content_types from search results"
import_profile="imio.directory.core.upgrades:upgrade_1013_to_1014"
/>
</genericsetup:upgradeSteps>
</genericsetup:upgradeSteps>

<genericsetup:upgradeSteps
source="1014"
destination="1015"
profile="imio.directory.core:default">
<genericsetup:upgradeDepends
title="Add solr.fields behavior to some content types"
import_profile="imio.directory.core.upgrades:upgrade_1014_to_1015"
/>
</genericsetup:upgradeSteps>

</configure>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<object xmlns:i18n="http://xml.zope.org/namespaces/i18n"
name="imio.directory.Contact"
meta_type="Dexterity FTI"
i18n:domain="imio.smartweb">

<!-- Enabled behaviors -->
<property name="behaviors" purge="false">
<element value="solr.fields" />
</property>

</object>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<object xmlns:i18n="http://xml.zope.org/namespaces/i18n"
name="imio.directory.Entity"
meta_type="Dexterity FTI"
i18n:domain="imio.smartweb">

<!-- Enabled behaviors -->
<property name="behaviors" purge="false">
<element value="solr.fields" />
</property>

</object>

0 comments on commit 426affe

Please sign in to comment.