Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
3 Nov 2022 at 12:33 UTC
Updated:
21 Nov 2022 at 22:44 UTC
Jump to comment: Most recent
Comments
Comment #2
aamouri commentedComment #13
avpadernoI am crediting the reviewers of the past applications.
Comment #14
avpadernoThank 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 smother 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.
For the time this application is open, commits on the project used for the application are only allowed from the user who created the application.
Comment #15
aamouri commentedComment #16
avpadernoComment #17
avpadernoComment #18
vuilPlease resolve the following issues at first:
Review of the 1.0.x branch (commit 5566905):
hook_help(). See https://www.drupal.org/docs/develop/documenting-your-project/module-docu... .Then set the issue back to Needs review.
Comment #19
aamouri commentedHi @vuil,
Fixes done.
Thanks.
Comment #20
avpadernoThe correct way to add dynamic or static links to a translatable string is to add the
<a>markup directly in the translatable string, as explained also in Dynamic or static links and HTML in translatable strings, which is for Drupal 7 but still applies to Drupal 8 and Drupal 9.For obtaining an immutable configuration object, for example when the configuration is only read, the method to call is
Drupal::config().The
Drupalclass has an helper method for this case:Drupal::logger().That code won't translate the strings contained in the
PAGES_TITLESconstant nor the value contained in$this->config->get('global_name'). What is translated is the literal string passed as first argument to$this->t(), which can only be translated as'@name @suffix'or'@suffix @name'since it only contains two plaholders and for placeholders only their order can be changed.The parent class already has methods to get the current user and and the logger.
Parameters with default values cannot be added before parameters without default values. The default value isn't even necessary, since
create()passes that value.Strings visible in the user interface need to be translatable.
Services don't implement that method.
There is a typo in the placeholder name.
Comment #21
aamouri commentedHi @apaderno,
Thanks for your code review.
I made the changes.
Comment #22
avpadernoI will review the project between an hour, less or more.
Comment #23
avpadernoService classes don't use that method. Drupal creates the service calling the class constructor and passing the arguments defined in the media_keepeekdam.services.yml file for that class.
The correct placeholder for URLs starts with a colon.
Error messages shown in the user interface must be translatable.
$e->getMessage()doesn't return a message that is translated in the language selected for the currently logged-in user or selected for the site using the module.Comment #24
aamouri commentedHi @apaderno,
Thanks for your code review.
I made the changes.
Comment #25
avpadernoThank you for your contribution! I am going to update your account.
These are some recommended readings to help with excellent maintainership:
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.