Problem/Motivation
Currently, file.info.yml says this:
description: 'Defines a file field type.'
In D8, it does an awful lot more than that. ;) It's also providing:
- The File entity.
- The
managed_fileform element. - File usage tracking.
- The REST file upload resource.
- ...
I doubt most site builders care about most of this, but I'm sure some of them would care about some of it. ;)
Proposed resolution
Update the file.info.yml description.
Remaining tasks
- Figure out what subset of what file.module does that most site builders looking at the .info.yml file or /admin/modules would care about.
- #include bikeshed.h
- Write the patch
- RTBC
- Commit
User interface changes
More accurate description of the file module on the /admin/modules page.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #20 | 3033185-20.patch | 425 bytes | ayushmishra206 |
| #16 | 3033185-16.patch | 433 bytes | ayushmishra206 |
| #11 | 3033185-7.patch | 425 bytes | mitthukumawat |
Comments
Comment #2
megha_kundar commentedModified description field of the info file
Comment #3
dww@Megha_kundar: Thanks for the patch. However, I don't think we need to submit patches, yet. Each one churns the test bots for an hour. What we first need is to agree on the wording. We're still at step 1 in the remaining tasks, you jumped immediately to step 3. ;)
Regardless, I don't think "Defines file features." is an improvement. That's even more vague and still doesn't actually say what the module does.
How about this?
"Defines a file field type and provides features for storing and managing files on the site."
? Still don't think that's right, but it seems closer.
I also notice that it lives in the "Field types" group of modules. Insofar as it's providing a file field, that makes sense. But maybe it should be moved to the 'Core' section if we're expanding this to include more info than just the file field?
Anyway, let's please keep discussing via comments, not patches.
Thanks,
-Derek
Comment #4
dhirendra.mishra commentedHow about "'Manages the creation of entity and form element, file usage tracking and REST file upload resource."
@dww, pls suggest if it make sense.
Comment #6
dinesh_kesarkar commentedAs per my understanding, whatever we implement in .module file that should be the description of a module. We must add same description what added at the beginning of file.module file.
Attaching patch.
Thanks, Dinesh
Comment #7
dinesh_kesarkar commentedComment #11
mitthukumawat commentedAdding patch for 9.2.x-dev. The updated description is Defines a "managed_file" Form API field and a "file" field for Field module.
Comment #12
pragati_kanade commentedThis looks good to me.
Comment #14
alexpottNeeds a reroll.
Comment #15
andypostI think the "field" here should be replaced with "element" as form API is not about fields
Comment #16
ayushmishra206 commentedMade the change suggested in #15 and rerolled the patch for 9.2.x, Please review.
Comment #17
quietone commentedShould the work here move to #3060616: Update the module descriptions on the Extend page to fit the Help texts?
Comment #18
andypostComment #19
andypostelement here is weird and field already mentioned
Comment #20
ayushmishra206 commentedUpdated the patch.
Comment #21
quietone commentedI looked at the #3060616: Update the module descriptions on the Extend page to fit the Help texts and found that Neslee Canil Pinto has moved the work here into that issue. Therefor closing this as a duplicate.