Problem/Motivation
Three issues:
1. #3386783: Missing config schema for views plugins added the schema definitions for views.area.facets_summary_area and views.filter.facets_summary_filter in facets_exposed_filters module while the plugins are defined in facets_summary and can be used without facets_exposed_filters. So these need to be moved in facets_summary.
2. Also views.filter.facets_filter should be in facets_exposed_filters where the plugin is defined but is currently in facets.
3. Also facets.views.schema.yml should be fixed #3535191: SchemaIncompleteException when saving Views with Facets filters - Missing processor schema definitions
4. After #3481448: Config schema fix several processor schemas are not defined/missing:
- hide_active_items_processor
- hide_1_result_facet #3544120: Missing config schema for hide_1_result_facet processor
- list_item
- show_only_deepest_level_items_processor
- translate_entity_aggregated_fields
- uid_to_username_callback
Steps to reproduce
1.
- Enable facets_summary but not facets_exposed_filters
- Setup a view with both facets_summary_area & facets_summary_filter
- Save with schema_checker enabled in services.yml or run config:inspector to see the error reported.
2. N/A
3. These can be reproduced by using those processors in a facet and save with with schema_checker or running config:inspector.
Proposed resolution
1. & 2. Move things accordingly.
3. Add missing processor definitions.
Remaining tasks
?
User interface changes
N/A
API changes
N/A
Data model changes
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 3544226-7.diff | 1.84 KB | herved |
| #3 | 3544226-3.diff | 656 bytes | herved |
Issue fork facets-3544226
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
herved commentedComment #4
herved commentedComment #5
herved commentedThere is another issue, several processor schemas are not defined/missing after #3481448: Config schema fix:
- hide_active_items_processor
- hide_1_result_facet
- list_item
- show_only_deepest_level_items_processor
- translate_entity_aggregated_fields
- uid_to_username_callback
Should we extend the scope here?
Comment #6
herved commentedComment #7
herved commentedComment #8
damienmckennaThe demo module requires views_ajax_history but it's not listed in composer.json so the tests fail.
Comment #9
damienmckennaIt then failed because views_filters_summary was required.
There are still some actual test failures:
Drupal\Tests\facets\Unit\FacetSource\FacetSourcePluginManagerTest:
Drupal\Tests\facets\Kernel\FacetManager\DefaultFacetManagerTest:
Comment #10
herved commentedI didn't dig much further tbh because if I'm not mistaken the report is the same as 3.0.x https://git.drupalcode.org/project/facets/-/pipelines/582244
So this is probably out of scope here and deserves its own issue?
Thanks for looking into it.
Comment #11
damienmckennaThe issues in DefaultFacetManagerTest appear to be more missing schema, this time in the facets_processors_collection test module, so is relevant for this issue; I don't know about the other one, I haven't dug into it yet.
Comment #12
mxr576Comment #13
mxr576Comment #17
strykaizerComment #19
strykaizer