Closed (duplicate)
Project:
Drupal core
Version:
11.x-dev
Component:
filter.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Apr 2015 at 06:14 UTC
Updated:
23 Oct 2024 at 04:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
cburschkaI can confirm that it was pretty confusing when my filter plugin worked normally until I tried to store a nested mapping. This patch changes the settings to a simple mapping.
While looking at this schema, I don't think I fully understand why the core filter plugin settings use the type "filter", which seems to define an entire filter rather than just its settings.
Comment #2
berdirYes, type:filter is weird, that looks wrong.
Can you change that to type: mapping. Making that type: filter is actually recursive o.0
Comment #3
cburschkaYep
Comment #4
alexpottNeed to fix filter_settings.filter_test_restrict_tags_and_attributes in core/modules/filter/tests/filter_test/config/schema/filter_test.schema.yml as well otherwise this fix is looking good.
Comment #5
jgeryk commentedComment #6
jgeryk commentedupdated filter_test_schema
Comment #7
alexpottThis looks like unrelated change - how come its been changed?
Comment #8
alexpottSorry I should have been clearer in #4 that all that needs to change is the
type: filter- the rest offilter_settings.filter_test_restrict_tags_and_attributesis correct.Comment #10
subhojit777Comment #13
quietone commentedRetesting on 8.2.x
Comment #14
quietone commentedTests pass on 8.2.x. The points raised in #2 and # 4 are fixed in the latest patch. So all looks good. I'd RTBC except that I wonder if this needs any tests.
Does this need a test?
Comment #15
cburschkaNote: I'm not sure this can still go in the next 8.2.x release, since it introduces an API problem for modules that relied on the old schema before.
Comment #16
berdirThat is a good question, I'm not sure. I do think this is a bug and invalid/missing schema only causes a hard fail in tests (for now). So it might be OK.
That said, we definitely need a change record for this.
Comment #17
quietone commentedRemoving novice tag due to the need of a change record per Berdir's comment in #16 and addressing the API problem mentioned in #15.
Comment #29
quietone commentedThis was recently fixed in #3404431: Filter settings schema types are incorrect. That included a post update hook, an update test and a change record.
Closing as a duplicate an moving credit.