Needs work
Project:
Drupal core
Version:
main
Component:
file.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Jul 2017 at 11:47 UTC
Updated:
1 Feb 2019 at 01:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
wim leersImplements step 1 in the proposed resolution.
Comment #3
wim leersImplements step 2 in the proposed resolution.
Comment #4
wim leersFixing issue metadata.
Would like a review of this before doing the boatload of work that is required for step 3.
Comment #5
wim leersNote that the docblock for this function is very explicit about this:
This is why I think it's fine to hardcode it now.
Comment #6
dawehnerJust a theoretical question: Are we actually able to move config keys, given that random custom code might rely on its existence?
Comment #7
wim leersI'd say we're able to do that, because config is owned by a particular module, and config is part of the module's internal design. The module always must provide an upgrade path of course.
However, in this case… this config is owned by the
systemmodule. Which means it's a fairly special case, because every single Drupal module is safe to assume that the system module is installed, therefore can also use the system module's configuration.So… I don't know.
However: if we can't do this, then http://buytaert.net/making-drupal-upgrades-easy-forever is already proving to not be true.
Comment #10
dawehnerI guess for moving config around, we could for example provide some system in the config system, which throws a deprecation warning when accessing the old value, and then point to the new value.
Are you really surprised by that?
Comment #14
dwwFound this via a Google search after reading #2492171-183: Provide options to sanitize filenames (transliterate, lowercase, replace whitespace, etc) from @alexpott.
I'm really confused. ;) system.module provides the settings form for these settings. file.module provides no settings form (that I can find).
What does it mean to move config from system for file for these cases?
How does anyone set values for these things once they move to file.settings? The "party line" is that there's no longer a UI and you must set it manually in your site's config? @alexpott suggested a
form_alter()for this. Yuck. ;) Seems like trading one DrupalWTF for another.Why are *any* of the things from core/modules/system/src/Form/FileSystemForm.php the responsibility of system.module? Isn't all of that really file.module's responsibility?
If we're going to move this one setting, why not move everything? And then keep the settings form (but change who registers it).
I don't necessarily want to untangle this whole mess in #2492171 itself, and I'd love to punt "those settings are really file.module's responsibility" to a more appropriate follow-up. Is this the right issue? ;) Is there a better place? Should we re-scope this issue to 'Move FileSystemForm from system.module to file.module"? Should I open that as a separate thing and mark this postponed on it?
Help? ;)
Thanks!
-Derek
p.s. Updated the summary. A lot of 'None' answers were lies. ;) Set them to 'TBD' for now...