Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
responsive_image.module
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Mar 2014 at 17:57 UTC
Updated:
29 Jul 2014 at 23:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
yesct commentedsimilar to the language module having the permission: administer languages (not administer language, or administer language module), this should be: administer responsive images.
should look for all of them.
almost everywhere where the name of the module is followed by the word module, this should most likely be the proper name with capitalization, like:
Responsive Image module.
I think in most comments this was just a general description of the kind of mapping: responsive image mapping. And the machine name (with underscore) not used.
Comment #2
yesct commentedug. just html fix in the summary.
Comment #3
jhodgdonI would say not to bother with issues like this in Test files. The tests already have a huge mess of non-grammatical messages, bad capitalization, etc. The important thing for tests is that they are clear enough to understand, and that they ensure we don't have regressions (i.e., that they continue to pass), and I'm inclined to just leave the tests as "good enough" and not worry about them, as the issues pointed out here are no worse than anything else in other Core tests. Really, the tests are kind of a mess... let's not bother with them, unless they're wrong or really unclear -- there are a lot more important things that we could be spending our time on.
Outside of files in namespace ...\Tests, though, I agree with YesCT's assessment:
- If text is referring to the name of the module, it should always be "the Responsive Image module", with that exact phrase and capitalization.
- The permission machine name should indeed probably be "administer responsive images" not "administer responsive image".
- We should not be using "responsive_image" ever in comments and other text. Either it should be "the Responsive Image module", or a specific function name like responsive_image_foo() ending in parens, or it should be "responsive image" or "responsive images" in plain text.
Comment #4
visabhishek commentedI am uploading a patch based on #1. Please review.
Comment #6
visabhishek commentedThe failed test case in comment #4 is not related to this issue.
Any suggestions ?
Comment #7
visabhishek commented4: drupal.project-name-clean-up-after-picture-module-renamed-responsive-image.2222431-04.patch queued for re-testing.
Comment #8
jhodgdonThis looks mostly good, thanks!
One spot is a bit of a problem:
core/modules/responsive_image/lib/Drupal/responsive_image/Tests/ResponsiveImageAdminUITest.php
Responsive Image should not be capitalized here. *Only* capitalize it if it is used like this "the Responsive Image module". All other uses are not proper nouns and should not be capitalized.
And... Is this really the only problem? So all we are doing in this patch is actually renaming the machine name of the administer permission? Because the issue implies that there is a lot more cleanup needed...
Comment #9
lokapujyaComment #10
lokapujyaThe 3rd point in comment #1 was fixed for the specific line of code identified, but many other comments that need the same cleanup.
Comment #11
lokapujyaComment #12
technikh commentedComment #13
technikh commentedfixed the Capitalization issue mentioned in comment #8
attached patch.
Comment #14
jhodgdonLooks fine to me now. Leaving at Needs Review for the maintainers of the module to review, since it impacts the permission name.
Comment #15
yesct commented13: drupal_project_name_clean_up_after_picture_module_renamed_responsive_image-2222431-08.patch queued for re-testing.
Comment #16
yesct commentedThis looks fine to me. pinged a couple people. I'm ok with waiting for +1 from someone else, but marking it rtbc to get it on their radar also.
Comment #17
attiks commentedLooks good
Comment #19
jhodgdon13: drupal_project_name_clean_up_after_picture_module_renamed_responsive_image-2222431-08.patch queued for re-testing.
Comment #20
jhodgdonUnrelated test failure, back to previous status.
By the way we're in "criticals and majors only" commit period pre-alpha until Wednesday.
Comment #21
webchickCommitted and pushed to 8.x. Thanks!