Closed (fixed)
Project:
Views Accordion
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2019 at 16:03 UTC
Updated:
11 Sep 2019 at 11:08 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
manuel garcia commentedHere is a start with a test view using grouping options. I believe this will fail because of missing schema definition for
use-grouping-header, which will be the first thing we need to fix here. This was originally brought up here #3025278: use-grouping-header missing in schema.Comment #4
manuel garcia commentedOK this is turning out to be a lot trickier than expected...
The thing is since we need to add this field to every
Grouping field, then this configuration is saved as part of the views schema for grouping, i.e.display.default.display_options.style.options.grouping.0.use-grouping-header.The schema for this type of configuration is defined by views itself as part of the views_style schema:
(see core/modules/views/config/schema/views.data_types.schema.yml)
So, we need to add another entry to the grouping sequence mapping... if that's even possible :)
Comment #6
manuel garcia commentedLet's see if this would work (thanks @vijaycs85 for the tip)
Comment #8
vijaycs85@Manuel Garcia, turns out it was a content type issue than the schema structure. It's green locally, but I think we should update the plugin to use boolean as it's a checkbox input.
Comment #9
manuel garcia commentedExcellent news @vijaycs85 thanks so much for looking into this!
About using boolean in the schema, I tried that but apparently form checkboxes are saved as int values, so unfortunately we cant...
#drupalwtf.Adding basic test coverage here for the grouping functionality now :yay:
Comment #11
manuel garcia commentedThis is good enough for now, we can always expand on it later.
Comment #13
gaborkurucz commentedHi!
I couldn't apply patch #9 to the latest stable version because this commit:
https://git.drupalcode.org/project/views_accordion/commit/cae7ecf080cbc0...
wasn't included in the patches. I created a new patch which also includes the above mentioned commit. I was led here because of this issue: https://www.drupal.org/project/views_accordion/issues/3025278 and we'd like to use the stable version with the patch applied instead of the dev version.
Thank you for the module!
Comment #14
manuel garcia commentedHi @gaborkurucz - I have just cut a new
8.x-1.3release which should make your life easier, as it wont require the patch.Comment #15
gaborkurucz commentedThanks! That is indeed very good news. :)