Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Jul 2024 at 12:26 UTC
Updated:
8 Feb 2025 at 13:44 UTC
Jump to comment: Most recent
Comments
Comment #2
rushikesh raval commentedThank 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.
phpcs --standard=Drupal,DrupalPracticeon the project, which alone fixes most of what reviewers would report.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.
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.
Comment #3
rushikesh raval commentedRemember to change status, when the project is ready to be reviewed. In this queue, projects are only reviewed when the status is Needs review.
Comment #4
vishal.kadamComment #5
ajay-mallah commentedComment #6
vishal.kadam1. FILE: 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.
The description for that hook should also say for which tag that hook is implemented.
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
FILE: modules/domain_webform_mapper/src/DomainWebformMapper.php
FILE: modules/domain_webform_mapper/src/Form/WebformDomainUpdateForm.php
FILE: modules/domain_webform_mapper/src/Form/WebformSubmissionDomainUpdateForm.php
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.
Comment #7
ajay-mallah commentedHii @vishalkadam
I have made the suggested changes can you please review them, if I need to make more changes
Comment #8
ajay-mallah commentedComment #9
vishal.kadamRest seems fine to me.
Let’s wait for other reviewers to take a look and if everything goes fine, you will get the role.
Comment #10
avpadernoAs a side note, it will not be possible to opt this project into security advisory coverage until July 16, 2024.
Comment #11
vishal prasad commented@apaderno can you please Review it again as its already 19th July.
Comment #12
vishal.kadamI am changing priority as per Issue priorities.
Comment #13
avpadernosrc/Plugin/views/filter/FilterWebformByDomain.php
\Drupal\views\Plugin\views\filter\StringFilteris not part of the public API and it cannot be used as parent class.\Drupal\views\Plugin\views\filter\FilterPluginBasecan instead be used, since that is a base class.Comment #14
vishal prasad commented@avpaderno I have added the suggested changes as per #13, please review.
Comment #15
avpadernoThis is an ajay-mallah's application; it is ajay-mallah who needs to make commits to fix what reported.
Comment #16
vishal prasad commented@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.
Comment #17
avpadernoIt's ajay-mallah who needs to reply here and make the necessary changes, not every project maintainer.
This is not an application to review 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.
Comment #18
ajay-mallah commented@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.
Comment #19
avpadernoChanging the parent class is not sufficient. The methods implemented by (and the code used in)
StringFilterare different from the methods implemented by (and the code used in)FilterPluginBase.Furthermore,
FilterPluginBaseis an abstract class. It means there are methods it does not implement which should be instead implemented by the child classes.Comment #20
avpadernoComment #21
ajay-mallah commented@avpaderno,
Based on your suggestions, I reviewed the module code, refactored it, and removed unnecessary sections to enhance the module's clarity and performance.
Comment #22
rushikesh raval commented1.
1.0.x-alphais a wrong name for a branch. Release branch names always end with the literal .x as described in Release branches.Comment #23
ajay-mallah commentedUpdated the branch, Please review.
Comment #24
vishal prasad commentedas Its already been more than 2 months for this issue to be in the state of review, so changing the priority
Comment #25
klausimanual review:
domain_webform_mapper.routing.yml: use permissions instead of roles to control access, which is more flexible.
Looks good to me otherwise.
Thanks for your contribution, Ajay!
I updated your account so you can opt into security advisory coverage now.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on Slack or IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, 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.
Thanks to the dedicated reviewer(s) as well.