Problem/Motivation
I *knew* that something like extension_discovery_scan_tests existed and *still* spent close to thirty minutes reverse engineering Drush and Drupal to find it. Yes, it's buried in an example file outside of sites/default which makes it completely invisible and unfindable. Not to mention the wording does not include "testing" or "hidden" so even if you git grep on either, you won't find it. This is untenable and utterly blocks core development. I was vehemently against hiding these modules from the API instead of hiding them from the UI and I was right, as usual.
Proposed resolution
I added to https://www.drupal.org/node/2000204/revisions and this patch adds it everywhere any sane person would look for guidance. A change record was filed at https://www.drupal.org/node/2642834 .
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#9 | 2642824_7.patch | 3.92 KB | chx |
#5 | 2642824_5.patch | 3.88 KB | chx |
Comments
Comment #2
chx CreditAttribution: chx commentedComment #3
chx CreditAttribution: chx commentedComment #4
dawehner+1 to improve the developer experience.
Another good place would be the actual documentation of the
ExtensionDiscovery
class itself.Feels a bit pointless. There is still the concept of hidden modules, so yeah, IMHO there is no point in changing this here.
Comment #5
chx CreditAttribution: chx commentedComment #6
jhodgdonGreat idea to add this documentation!
A couple of nitpicks before I think this is ready for commit:
Probably this should end in a ;
A more common place to add this would be in the settings.local file? Also maybe say "to your settings.php file"?
Comment #7
chx CreditAttribution: chx commentedAdded ; and your. Structuring your settings.php is not the duty of this patch , I will readily presume anyone doing this will have a working knowledge and understanding of "include".
Comment #8
jhodgdonmisses the added "your" here.
Otherwise, OK. Thanks!
Comment #9
chx CreditAttribution: chx commentedFixed. Happy new year!
Comment #10
chx CreditAttribution: chx commentedFiled a change notice at https://www.drupal.org/node/2642834 as well because it's a change which passed without notification. Faugh!
Comment #11
jhodgdonPatch looks good, thanks!
The change record also looks good to me, though it would help if it had an issue link in it... probably not to this issue... I guess we'd have to discover where this change was made. Good enough for now anyway.
Happy new year!
Comment #12
chx CreditAttribution: chx commentedI added issue links to the change record.
Comment #14
jhodgdonTest failure was unrelated to this patch. Change record looks great. Thanks!
Comment #15
alexpottCommitted a4f92bb and pushed to 8.0.x and 8.1.x. Thanks!
Modules are installed and uninstalled in D8 - there has been some work on updating all the docs in the code base but it is nowhere near complete -but there is no need to add more work. Fixed on commit.