- Issue created by @joachim
- First commit to issue fork.
- Open on Drupal.org →Environment: PHP 8.1 & MySQL 5.7last update
over 1 year ago Not currently mergeable. - @sourabhjain opened merge request.
- last update
over 1 year ago 29,387 pass, 2 fail - last update
over 1 year ago 29,388 pass - last update
over 1 year ago 29,388 pass - Status changed to Needs review
over 1 year ago 3:06pm 18 May 2023 - Status changed to Needs work
over 1 year ago 3:17pm 19 May 2023 - 🇺🇸United States smustgrave
Think the proposed solution should be documented
But not sure this makes it clearer @joachim what do you think?
- 🇬🇧United Kingdom joachim
The first line is now too long. Fine details should go in the @return.
It's tricky though, because 'Gets an array of PSR-4 namespaces' is patently wrong -- when we say 'an array of FOO' we mean FOO are values, not keys. If we say 'Gets an array of directories' then it clashes with the method name getPluginNamespaces()!
So I would do this for the first line
> * Gets PSR-4 namespaces and directories to search for plugin classes.
We have to lose the 'array' to make the line fit.
And then proper details in the @return.
- Status changed to Needs review
about 1 year ago 1:01pm 12 September 2023 21:29 14:19 Running- 🇮🇳India roshni27
Create patch with suggestion in #6. Please review the patch.
- Status changed to Needs work
about 1 year ago 2:34pm 12 September 2023 - last update
about 1 year ago 30,150 pass - Status changed to Needs review
about 1 year ago 5:57am 13 September 2023 - Status changed to Needs work
about 1 year ago 6:25pm 13 September 2023 - 🇺🇸United States smustgrave
+use Doctrine\Common\Annotations\AnnotationRegistry; use Drupal\Component\Annotation\AnnotationInterface; -use Drupal\Component\FileCache\FileCacheFactory; -use Drupal\Component\Plugin\Discovery\DiscoveryInterface; use Drupal\Component\Annotation\Doctrine\SimpleAnnotationReader; use Drupal\Component\Annotation\Doctrine\StaticReflectionParser; use Drupal\Component\Annotation\Reflection\MockFileFinder; -use Doctrine\Common\Annotations\AnnotationRegistry; +use Drupal\Component\FileCache\FileCacheFactory; +use Drupal\Component\Plugin\Discovery\DiscoveryInterface; use Drupal\Component\Plugin\Discovery\DiscoveryTrait; use Drupal\Component\Utility\Crypt;
Seems out of scope of the issue.
- Status changed to Needs review
about 1 year ago 3:48am 14 September 2023 - last update
about 1 year ago Custom Commands Failed - Status changed to Needs work
about 1 year ago 6:34pm 14 September 2023 - last update
about 1 year ago 30,154 pass - Status changed to Needs review
about 1 year ago 5:31am 21 September 2023 - Status changed to RTBC
about 1 year ago 2:42pm 25 September 2023 - last update
about 1 year ago Custom Commands Failed - Status changed to Needs work
about 1 year ago 6:13am 26 September 2023 - 🇳🇿New Zealand quietone
Thanks for improving the docs!
I'm triaging RTBC issues → . I read the IS and the comments. I didn't find any unanswered questions.
I then read the patch.
-
+++ b/core/lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php @@ -180,9 +180,11 @@ protected function prepareAnnotationDefinition(AnnotationInterface $annotation, - * Gets an array of PSR-4 namespaces to search for plugin classes. + * Gets PSR-4 namespaces and directories to search for plugin classes.
Adding the details of the associative array in the summary is not a pattern I've seen. And there are so many methods returning arrays where this would be impractical. This can simply be "Gets PSR-4 namespaces to search for plugin classes". Then the details can be in the @return description.
-
+++ b/core/lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php @@ -180,9 +180,11 @@ protected function prepareAnnotationDefinition(AnnotationInterface $annotation, + * An array where keys are namespaces and + * values are directories for searching plugin classes.
This should be wrapped to 80 columns.
More common, is this format. "An associative array of directories keyed by namespace."
Setting to NW for the above.
-
- Status changed to Needs review
about 1 year ago 12:09pm 26 September 2023 - last update
about 1 year ago 30,363 pass - 🇮🇳India roshni27
Thanks @quietone, as you mentioned in your comment, I have made changes, please review it.
- Status changed to RTBC
about 1 year ago 7:31pm 29 September 2023 - last update
about 1 year ago 30,360 pass - last update
about 1 year ago 30,360 pass - last update
about 1 year ago 30,371 pass - last update
about 1 year ago 30,377 pass - last update
about 1 year ago 30,382 pass - last update
about 1 year ago 30,384 pass - last update
about 1 year ago 30,393 pass - Status changed to Needs work
about 1 year ago 5:20am 13 October 2023 - 🇳🇿New Zealand quietone
@roshni27, thanks. the change for 19.1 reads better. However, for 19.2 the change did not consider the entire comment I made. It is fine if you disagree with the suggestion but it is good practice to explain you viewpoint. Even so, the text still needs to be wrapped correctly.
Setting back to NW.
- 🇩🇪Germany michaellenahan
We, the mentoring team, are triaging issues for first time contributors at DrupalCon Lille and I think this is a good issue for the contribution day.
We are reserving this issue so please don't work on this issue if you are not at DrupalCon Lille. You can continue the work when the event is over. - 🇧🇪Belgium xdequinze Brussels
I am working on this issue at DrupalCon Lille.
- 🇧🇪Belgium xdequinze Brussels
Trying to launch a drupalpod on the issue, I get this error in screenshot.
- 🇧🇪Belgium xdequinze Brussels
Is this patch fixing the issue ?
I am still trying to find my way, I hope it helps. 40:07 39:04 Running- last update
about 1 year ago 30,438 pass - last update
about 1 year ago 30,438 pass