- Issue created by @alvarodemendoza
- 🇮🇳India vishal.kadam Mumbai
Thank you for applying!
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.
The important notes are the following.
- If you have not done it yet, you should run
phpcs --standard=Drupal,DrupalPractice
on the project, which alone fixes most of what reviewers would report. - For the time this application is open, only your commits are allowed.
- The purpose of this application is giving you a new drupal.org role that allows you to opt projects into security advisory coverage, either projects you already created, or projects you will create. The project status won't be changed by this application and no other user will be able to opt projects into security advisory policy.
- We only accept an application per user. If you change your mind about the project to use for this application, or it is necessary to use a different project for the application, please update the issue summary with the link to the correct project and the issue title with the project name and the branch to review.
To the reviewers
Please read How to review security advisory coverage applications → , Application workflow → , What to cover in an application review → , and Tools to use for reviews → .
The important notes are the following.
- It is preferable to wait for a Code Review Administrator before commenting on newly created applications. Code Review Administrators will do some preliminary checks that are necessary before any change on the project files is suggested.
- Reviewers should show the output of a CLI tool → only once per application.
- It may be best to have the applicant fix things before further review.
For new reviewers, I would also suggest to first read In which way the issue queue for coverage applications is different from other project queues → .
- If you have not done it yet, you should run
- Status changed to Active
6 months ago 4:23pm 8 July 2024 - 🇮🇳India vishal.kadam Mumbai
Remember to change status, when the project is ready to be reviewed. In this queue, projects are only reviewed when the status is Needs review.
- Status changed to Needs review
6 months ago 5:54pm 8 July 2024 - Status changed to Needs work
6 months ago 6:36am 9 July 2024 - 🇮🇳India vishal.kadam Mumbai
1.
1.0.x-dev
is a wrong name for a branch. Release branch names always end with the literal .x as described in Release branches → .2. Fix phpcs issues.
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml structure_map/ FILE: structure_map/src/StructureMapTable.php ------------------------------------------------------------------------------- FOUND 4 ERRORS AFFECTING 4 LINES ------------------------------------------------------------------------------- 167 | ERROR | The array declaration extends to column 83 (the limit is 80). The array content should be split up over multiple lines 185 | ERROR | The array declaration extends to column 85 (the limit is 80). The array content should be split up over multiple lines 239 | ERROR | The array declaration extends to column 83 (the limit is 80). The array content should be split up over multiple lines 256 | ERROR | The array declaration extends to column 85 (the limit is 80). The array content should be split up over multiple lines -------------------------------------------------------------------------------
- 🇪🇸Spain alvarodemendoza
@vishal.kadam do you mean that I have to remove the 1.0.x-dev branch from drupalcode?
Let me know how to proceed with the branch because I just followed the instruction on the version control page of the module, that were to first create the 1.0.x, push and then create the 1.0.x-dev and push.For the phpcs, my local is not getting that for the arrays so I just fixed based on the info you posted here.
Thank you,
- 🇮🇳India vishal.kadam Mumbai
Yes, you have to remove the '1.0.x-dev' branch.
- Status changed to Needs review
5 months ago 3:00pm 10 July 2024 - Status changed to RTBC
5 months ago 3:09pm 10 July 2024 - 🇮🇳India vishal.kadam Mumbai
Rest looks fine to me.
Let’s wait for a Code Review Administrator to take a look and if everything goes fine, you will get the role.
- Status changed to Needs review
5 months ago 3:19pm 10 July 2024 - 🇮🇹Italy apaderno Brescia, 🇮🇹
Please, do not change the status to Reviewed & tested by the community if no manual review has been done.
While project moderators review applications, their main task is giving to the applicants the drupal.org role necessary to opt projects into security advisory coverage. This application is not waiting for a project moderator, but another person who makes a deeper review that does not involve any automatic tool.
- 🇮🇹Italy apaderno Brescia, 🇮🇹
As a side note, it will not be possible to opt this project into security advisory coverage, before July 18, 2024. The form element to do that is programmatically disabled for ten days after the project has been created.
- 🇮🇳India vishal.kadam Mumbai
I am changing priority as per Issue priorities → .
- Status changed to Needs work
4 months ago 8:11am 6 September 2024 - 🇮🇹Italy apaderno Brescia, 🇮🇹
- The following points are just a start and don't necessarily encompass all the changes that may be necessary
- A specific point may just be an example and may apply in other places
- A review is about code that does not follow the coding standards, contains possible security issues, or does not correctly use the Drupal API; the single points are not ordered, not even by importance
src/Controller/StructureMapController.php
I would rather not use
ControllerBase
as parent class, since it is not using any method from that class. Controllers do not need to have a parent class; as long as they implementContainerInjectionInterface
, they are fine.src/Form/StructureMapFilterForm.php
/** * Constructs the EntityDiagramController. * * @param \Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager * The EntityFieldManagerInterface service. * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager * The EntityFieldManagerInterface service. * @param \Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info * The EntityTypeBundleInfoInterface service. * @param \Drupal\Core\Routing\RouteMatchInterface $route_match * The route matcher service. */ public function __construct(EntityFieldManagerInterface $entity_field_manager, EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, RouteMatchInterface $route_match) { $this->entityFieldManager = $entity_field_manager; $this->entityTypeManager = $entity_type_manager; $this->entityTypeBundleInfo = $entity_type_bundle_info; $this->routeMatch = $route_match; }
The class is not
EntityDiagramController
.src/EntityTypeInfo.php
// Add the information to the summary. $field_type_summary .= '<br/>Number of entities using this reference field: ' . $entity_count;
Strings shown in the user interface must be translatable.
$build['table_' . $display_mode] = [ '#type' => 'table', '#prefix' => '<h4>' . $this->t('Display Mode: @label', [ '@label' => htmlspecialchars($info['label']), ]) . '</h4>', '#header' => $header, '#rows' => $rows, '#attributes' => [ 'class' => [ 'form-display-table', 'structure-map-table', ], ], ];
There is no need to pass a @-placeholder to
htmlspecialchars()
; that is already done by Drupal core. - 🇪🇸Spain alvarodemendoza
@avpaderno I fixed the things you flagged except for the ControllerBase because it is using the string translation trait in one side and I may implement other methods from that class as the project progresses.
- 🇮🇳India rushiraval
I am changing priority as per Issue priorities → .
- Status changed to Needs review
about 1 month ago 9:37am 11 November 2024 - 🇪🇸Spain alvarodemendoza
I am changing priority to Critical as per Issue priorities → .
- 🇮🇳India aneeshthankachan
I have reviewed this module and features after installing it. This works as expected in terms of the features, and is quite useful to document and understand different entities used within a Drupal application.