- 🇮🇳India rushiraval
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
- 🇮🇳India rushiraval
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.
- Issue was unassigned.
- Status changed to Needs review
5 months ago 6:49am 11 July 2024 - Status changed to Needs work
5 months ago 7:07am 11 July 2024 - 🇮🇳India vishal.kadam Mumbai
1. FILE: domain_access_webform.module
/** * @file * Primary module hooks for domain_access_webform module. */
Drupal does not have primary and secondary hooks. Instead of that, it is preferable to use the usual description: Hook implementations for the [module name] module. where [module name] is the name of the module given in its .info.yml file.
/** * Implements hook_query_TAG_alter(). */ function domain_access_webform_query_domain_webform_filter_alter(AlterableInterface $query) {
The description for that hook should also say for which tag that hook is implemented.
/** * Implements hook_entity_presave(). * * Maps domain id on new werform create/duplicate. */ function domain_access_webform_webform_presave(WebformInterface $entity) {
Please update the hook description to reflect the correct usage. The hook_ENTITY_TYPE_presave() hook is being used. Additionally, specify the entity for which this hook is implemented.
2. FILE: src/DomainWebformService.php
/** * Sets class variables. * * @param \Drupal\Core\Entity\EntityTypeManager $entityTypeManager * Manages entity type plugin definitions. * @param \Drupal\Core\Logger\LoggerChannelFactory $logger * Describes a logger instance. * @param \Drupal\Core\Session\AccountInterface $currentUser * Defines an account interface which represents the current user. */ public function __construct(
FILE: modules/domain_webform_mapper/src/DomainWebformMapper.php
/** * Sets class variables. * * @param \Drupal\Core\Entity\EntityTypeManager $entityTypeManager * Manages entity type plugin definitions. * @param \Drupal\Core\Logger\LoggerChannelFactory $logger * Describes a logger instance. */ public function __construct(
FILE: modules/domain_webform_mapper/src/Form/WebformDomainUpdateForm.php
/** * Constructs the service objects. * * Class constructor. */ public function __construct(EntityTypeManagerInterface $entityTypeManager, FileSystem $fileSystem) {
FILE: modules/domain_webform_mapper/src/Form/WebformSubmissionDomainUpdateForm.php
/** * Constructs the service objects. * * Class constructor. */ public function __construct(EntityTypeManagerInterface $entityTypeManager, FileSystem $fileSystem) {
The documentation comment for constructors is not mandatory anymore, If it is given, the description must be Constructs a new [class name] object. where [class name] includes the class namespace.
Hii @vishalkadam
I have made the suggested changes can you please review them, if I need to make more changes- Status changed to Needs review
5 months ago 10:03am 11 July 2024 - 🇮🇳India vishal.kadam Mumbai
Rest seems fine to me.
Let’s wait for other reviewers to take a look and if everything goes fine, you will get the role.
- 🇮🇹Italy apaderno Brescia, 🇮🇹
As a side note, it will not be possible to opt this project into security advisory coverage until July 16, 2024.
- 🇮🇳India vishal prasad
@apaderno can you please Review it again as its already 19th July.
- 🇮🇳India vishal.kadam Mumbai
I am changing priority as per Issue priorities → .
- Status changed to Needs work
3 months ago 7:45am 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/Plugin/views/filter/FilterWebformByDomain.php
\Drupal\views\Plugin\views\filter\StringFilter
is not part of the public API and it cannot be used as parent class.\Drupal\views\Plugin\views\filter\FilterPluginBase
can instead be used, since that is a base class. - Status changed to Needs review
3 months ago 1:31pm 6 September 2024 - 🇮🇳India vishal prasad
@avpaderno I have added the suggested changes as per #13, please review.
- Assigned to apaderno
- 🇮🇹Italy apaderno Brescia, 🇮🇹
This is an ajay-mallah's application; it is ajay-mallah who needs to make commits to fix what reported.
- 🇮🇳India vishal prasad
@avpaderno Its @ajay-mallah who has made fixes of #13 and committed the changes.
and being the co maintainer of the module, I have equal contribution in this module development so I am commenting here.
- Status changed to Needs work
3 months ago 5:57am 9 September 2024 - 🇮🇹Italy apaderno Brescia, 🇮🇹
It's ajay-mallah who needs to reply here and make the necessary changes, not every project maintainer.
This is not an application to understand what the project maintainers as group understand about writing secure code which correctly uses the Drupal API and follows the Drupal coding standards. This is ajay-mallah's application. - Status changed to Needs review
3 months ago 6:26am 9 September 2024 @avpaderno, I have made the changes as per the suggestions in #13. I was occupied with a project, so I assigned the co-maintainer @vishal-prasad to verify the changes and commit them to the discussion thread. In the future, I will handle the suggested changes myself.
- Status changed to Needs work
3 months ago 10:40am 11 September 2024 - 🇮🇹Italy apaderno Brescia, 🇮🇹
Changing the parent class is not sufficient. The methods implemented by (and the code used in)
StringFilter
are different from the methods implemented by (and the code used in)FilterPluginBase
.Furthermore,
FilterPluginBase
is an abstract class. It means there are methods it does not implement which should be instead implemented by the child classes. @avpaderno,
Based on your suggestions, I reviewed the module code, refactored it, and removed unnecessary sections to enhance the module's clarity and performance.- Issue was unassigned.
- 🇮🇳India rushiraval
1.
1.0.x-alpha
is a wrong name for a branch. Release branch names always end with the literal .x as described in Release branches → .