Problem/Motivation
I'm writing some tests that enable the group and gnode modules. However, they fail with the following unless strict schema checking is disabled:
Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for views.view.group_nodes with the following errors: views.view.group_nodes:display.default.display_options.filters.status.value variable type is boolean but applied schema class is Drupal\Core\TypedData\Plugin\DataType\StringData
Proposed resolution
Fix the schema issues in the view config, and ideally write a test that enables gnode along with the views module so this issue doesn't regress in the future.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | group-2886266-9.patch | 2.11 KB | kristiaanvandeneynde |
Comments
Comment #2
jhedstromHere's a test that demonstrates the issue, and a fix.
Comment #4
dpagini commentedThis looks right to me. Ran into the same problem and this fixed the issue for me.
Comment #5
dpagini commentedI'd like to give this a little bump. Seems like this has been in RTBC status for 5 months now. Is there anything preventing this from being merged in?
Comment #6
abrammSeems like the config schema was fixed some time ago; however, there's still no test.
The patch at #2 is showing the test was failing a year ago but it now passes.
I've raised a new issue to adopt the test patch from #2 and add new view test cases.
Comment #7
kristiaanvandeneyndeRight, thanks for spotting the missing coverage! Will commit the test-only patch. Closing the other issue as a duplicate.
Comment #8
kristiaanvandeneyndeOkay so a couple notes:
Comment #9
kristiaanvandeneyndeComment #11
kristiaanvandeneyndeHmm, tests go green locally; retesting. Also opened #3013603: views.filter_value.boolean uses incorrect schema type 'string'
Comment #13
kristiaanvandeneyndeComment #14
kristiaanvandeneyndeComment #15
kristiaanvandeneynde