- Issue created by @Oulalahakabu
- 🇮🇳India shashank5563 New Delhi
Thank you for applying! Reviewers will review the project files, describing what needs to be changed.
Please read Review process for security advisory coverage: What to expect → for more details and Security advisory coverage application checklist → to understand what reviewers look for. Tips for ensuring a smooth review gives some hints for a smoother review.
To reviewers: Please read How to review security advisory coverage applications → , What to cover in an application review → , and Drupal.org security advisory coverage application workflow → .
While this application is open, only the user who opened the application can make commits to the project used for the application.
Reviewers only describe what needs to be changed; they don't provide patches to fix what reported in a review.
- Status changed to Needs work
over 1 year ago 4:51am 4 July 2023 - 🇮🇳India vinaymahale
Please fix below PHPCS issues.
FILE: /openlayers6/config/schema/openlayer6.schema.yml --------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE --------------------------------------------------------------------------------------------- 75 | ERROR | [x] Expected 1 newline at end of file; 2 found --------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------------- FILE: /openlayers6/DOCUMENTATION.md -------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------- 155 | WARNING | Line exceeds 80 characters; contains 142 characters -------------------------------------------------------------------------- FILE: /openlayers6/src/Plugin/Block/OpenlayersBlock.php ---------------------------------------------------------------------------------------------------- FOUND 2 ERRORS AND 11 WARNINGS AFFECTING 13 LINES ---------------------------------------------------------------------------------------------------- 74 | WARNING | [ ] #description values usually have to run through t() for translation 81 | WARNING | [ ] #description values usually have to run through t() for translation 87 | WARNING | [ ] #description values usually have to run through t() for translation 94 | WARNING | [ ] #description values usually have to run through t() for translation 101 | WARNING | [ ] #description values usually have to run through t() for translation 108 | WARNING | [ ] #description values usually have to run through t() for translation 151 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 153 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 275 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 300 | WARNING | [ ] File::load calls should be avoided in classes, use dependency injection | | instead 302 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 373 | ERROR | [x] Use null coalesce operator instead of ternary operator. 412 | ERROR | [x] Use null coalesce operator instead of ternary operator. ---------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------- FILE: /openlayers6/src/Plugin/Field/FieldFormatter/OpenlayerFormatter.php ---------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES ---------------------------------------------------------------------------------------------------- 41 | WARNING | Unused variable $settings. 159 | WARNING | Unused variable $delta. ---------------------------------------------------------------------------------------------------- FILE: /openlayers6/tests/src/Functional/Openlayers6TestTrait.php ---------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------------------------------------- 97 | WARNING | Unused variable $geoService. ---------------------------------------------------------------------------------------------------- FILE: /openlayers6/openlayers6.routing.yml --------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE --------------------------------------------------------------------------------- 7 | ERROR | [x] Expected 1 newline at end of file; 2 found --------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------
- 🇫🇷France Oulalahakabu
Fixed CS : https://www.drupal.org/pift-ci-job/2708996 →
- Status changed to Needs review
over 1 year ago 6:50am 5 July 2023 - Status changed to Needs work
over 1 year ago 12:01pm 5 July 2023 - 🇧🇩Bangladesh DSushmita Sylhet
/openlayers6/src/Plugin/Block/OpenlayersBlock.php ------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES ------------------------------------------------------------------------------------------------- 328 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 353 | WARNING | File::load calls should be avoided in classes, use dependency injection instead 355 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead -------------------------------------------------------------------------------------------------
- 🇫🇷France Oulalahakabu
Drupal call were made to avoid mandatory dependency, but i did it keeping it optional.
I also used storage for files instead of File::load
- Status changed to Needs review
over 1 year ago 11:04am 10 July 2023 - 🇳🇱Netherlands kevin.brocatus
It looks like the administer openlayers6 configuration doesn't get used anywhere. Either remove it, or use it accordingly.
The constructor of the OpenlayersBlock has a wrong doc message.
Constructs a Drupalist object.
should be changed toConstructs a OpenlayersBlock object.
The constructor of the OpenlayerController has a wrong doc message.
The controller constructor.
should be changed toConstructs a OpenlayerController object.
The build function of the OpenlayerController does not have the parameter or the return type defined in the doc message.
/** * Builds the response. */ public function build(Node $node, $display = 'teaser') {
should be changed to something like
/** * Builds the response. * * @param \Drupal\node\NodeInterface $node * The node. * @param string * (Optional) The display mode. Default is set to 'teaser'. * * @return \Symfony\Component\HttpFoundation\JsonResponse * The json response. */ public function build(Node $node, $display = 'teaser') {
- Status changed to Needs work
over 1 year ago 8:01am 17 July 2023 - 🇮🇹Italy apaderno Brescia, 🇮🇹
I am changing priority as per Issue priorities → .
- Status changed to Needs review
about 1 year ago 8:14am 7 September 2023 - Assigned to apaderno
- Status changed to RTBC
about 1 year ago 12:55pm 27 September 2023 - 🇮🇹Italy apaderno Brescia, 🇮🇹
src/Controller/OpenlayerController.php
/** * The entity type manager. * * @var \Drupal\Core\Entity\EntityTypeManagerInterface */ protected $entityTypeManager; /** * The renderer service. * * @var \Drupal\Core\Render\Renderer */ protected $renderer; /** * Current user. * * @var \Drupal\Core\Session\AccountProxyInterface */ protected $currentUser;
The first and the third property are already defined from the parent class. There is no need to define them.
- 🇮🇹Italy apaderno Brescia, 🇮🇹
Thank you for your contribution! I am going to update your account.
These are some recommended readings to help with excellent maintainership:
- Dries → ' post on Responsible maintainers
- Best practices for creating and maintaining projects →
- Maintaining a drupal.org project with Git →
- Commit messages - providing history and credit →
- Release naming conventions → .
- Helping maintainers in the issue queues →
You can find more contributors chatting on the Slack → #contribute channel. So, come hang out and stay involved → .
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review → . I encourage you to learn more about that process and join the group of reviewers.I thank all the reviewers.
- Status changed to Fixed
about 1 year ago 12:58pm 27 September 2023 Automatically closed - issue fixed for 2 weeks with no activity.