Problem/Motivation
The configuration for 'Facets to include' is represented as a list of strings using the key/value pairs of checkboxes, eg:
facets_to_include:
'facet_block:information_for': 'facet_block:information_for'
'facet_block:category': 'facet_block:category'
'facet_block:type': '0'
'facet_block:news_type': 0
Proposed resolution
Simplify 'facets_to_include' list for readability by removing empty values and only keep the values, eg:
facets_to_include:
- 'facet_block:information_for'
- 'facet_block:category'
Remaining tasks
- Write a patch
- Review
- Commit
User interface changes
None.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3255453-4.patch | 4.5 KB | idebr |
| #4 | interdiff-2-4.txt | 1.04 KB | idebr |
Comments
Comment #2
idebr commentedAttached patch simplifies 'facets_to_include' list for readability by removing empty values and keeping only the values.
Comment #3
gnikolovskiDo we need an update hook to convert the config to the new format for existing users?
Comment #4
idebr commentedYes, an update hook for existing block settings is a good idea!
Attached patch adds a post_update hook to simplify the facets_to_include list for existing blocks.
Comment #5
gnikolovskiComment #7
gnikolovski