Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Followup to #2456709: File views handlers need to be replaced with entity-aware formatters, we forgot to remove some stuff from the config schema of file.module.
Let's do it here.
Remove
- -views.field.file_extension:
- -views.field.file:
- -views.field.file_filemime:
- -views.field.file_uri:
- -views.filter.file_status:
Steps to reproduce
Proposed resolution
Remove three of the schema, research in #16 and #18 showed that two are used, views.field.file and views.filter.file_status:
- -views.field.file_extension:
- -views.field.file_filemime:
- -views.field.file_uri:
Remaining tasks
Review
Commit
Comment | File | Size | Author |
---|---|---|---|
#12 | 2479607-12.patch | 1.23 KB | quietone |
#1 | 2479607.patch | 1.22 KB | amateescu |
Issue fork drupal-2479607
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 #1
amateescu CreditAttribution: amateescu commentedComment #11
quietone CreditAttribution: quietone as a volunteer commentedMy oh my, this patch still applies.
Comment #12
quietone CreditAttribution: quietone as a volunteer commentedSame patch as in #1.
Comment #13
quietone CreditAttribution: quietone as a volunteer commentedThere are 284 test failures. The ones I checked are errors in scheme so some, if not all, of the scheme entries being removed here are not obsolete.
Not sure what the next step here is. Leaving at NR.
Comment #14
sudiptadas19 CreditAttribution: sudiptadas19 at QED42 for Drupal India Association commentedPatch applied cleanly. Tested in Drupal 9.2.0-dev.
Comment #15
quietone CreditAttribution: quietone as a volunteer commented@sudiptadas19, How did you test this patch?
In #13 I said that the testbot reports 284 test failures. They can be viewed at https://dispatcher.drupalci.org/job/drupal_patches/78043/.
Setting back to NR to decided on what the next step is here.
Comment #16
LendudeThis one needs to stay in, that field plugin still exists and has a link_to_file option
Comment #17
Kristen PolI've been checking each schema change and so far agree with @Lendude that is the one that I also see needs to stay.
Comment #18
Kristen PolI just noticed one thing I'm not sure about:
core/modules/file/config/optional/views.view.files.yml
@Lendude is this okay?
Comment #19
Lendude@Kristen Pol nice one! Yeah that needs to stay too. See
\Drupal\file\Plugin\views\filter\Status
Comment #21
sudiptadas19 CreditAttribution: sudiptadas19 at QED42 for Drupal India Association commentedAdded suggested changes, available in MR410. Please Review.
Comment #22
quietone CreditAttribution: quietone as a volunteer commentedI wasn't sure what the changes were so I made a comparison.
The original patch removed
MR410 removes
The two removed were identified by lendude and Kristen Pol as being required.
So, that looks good.
I have updated the IS.
Anything more to do here to prove that these can be deleted?
Comment #23
Lendude@quiteone, looks good to me. Rechecked these 3 again, and can find no use for them.
Comment #25
catchCommitted 13f1deb and pushed to 9.2.x. Thanks!