Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
13 Dec 2023 at 10:15 UTC
Updated:
3 Mar 2024 at 16:09 UTC
Jump to comment: Most recent
Comments
Comment #2
vishal.kadamThank 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
vishal.kadamComment #4
nikral commentedRunning
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml icm.info.yml
Comment #5
g.mustapha commentedthe fix has ben push to git in the same branch and release has been created for that too
Comment #6
avpadernoComment #7
simonbaeseSome notes:
drupal:jquery_ui, but this module is not part of core since version 8.8. Also, is this dependency really necessary? If so, then it should also be declared inicm.libraries.yml.IcmFieldFormatterannounces the implementation of the interfaceContainerFactoryPluginInterfacewhich is not necessary because theFormatterBasealready implements it.IcmFieldFormattershould be sorted which is a coding standard in Drupal 10.aliasManagerproperty inIcmFieldFormattershould be cleaned up. Also, this injection is probably not necessary. Just useUrl::fromRoute('entity.node.canonical', ['node' => $file['nid'][0]['value']). Should be careful here when the option "content" is selected because the entity may not be a node. Then thenidarray key may not exist.IcmFieldFormatter::settingsForm()the description for effects can be adjusted to "Should the image slider be vertical or horizontal?".IcmFieldFormatter::viewElements()the$filevariable can be initiated later, because there are earlier returns following before it is used.IcmFieldFormatter::viewElements()you should check if$itemsimplementEntityReferenceFieldItemListInterfacebefore callinggetEntitiesToView().getEntitiesToView()returns items ofEntityInterface. Might be good to check or typehint that these implement theFileInterfacebefore callinggetFileUri()andcreateFileUrl()."..."and'...'. Probably best to go with'...'.Comment #8
avpadernoActually, the jQuery UI module has never been part of Drupal core.
Since its 8.x-1.6 release sets
core_version_requirementto^9.2 || ^10, this module should use a similar value.Comment #9
simonbaeseThanks for clarifying. If the dependency is necessary then it should be declared as
jquery_ui:jquery_ui.Comment #10
g.mustapha commented@simonbaese @apaderno thx for the review & the suggestions i will adapt this asap :)
Comment #11
g.mustapha commentedHello, @simonbaese I've changed the code to reflect the recommendations, but I believe the third point is unnecessary given the functionality of the module. I'll keep this in mind for my next released .
Comment #12
vishal.kadamFILE: icm.info.yml
core_version_requirement: ^8 || ^9 || ^10The Drupal Core versions before 8.7.7 do not recognize the core_version_requirement: key.
Comment #13
g.mustapha commented@vishal.kadam , yeh true fallowing this poste : https://www.drupal.org/node/3070687 i have change the values and test the module
thx for ur feedback
Comment #14
simonbaeseSome more notes:
$node = $items->getEntity()gets the entity this field belongs to. Later, after checking if this indeed is ofNodeInterface, you can use$node->id()when resolving the Url.$images, but apparently these are files - at least you are using theFileInterface.$file->id()in case these are ofFileInterface.viewElements().Comment #15
simonbaeseComment #16
g.mustapha commentedthx again @simonbaese for ur notes ,the fix has ben pushed :)
Comment #17
g.mustapha commentedhi guys!!
any good news about this :)
Comment #18
g.mustapha commentedis there any feedback on this @apaderno
Comment #19
avpadernoThank you for your contribution!
I updated your account so you can now opt into security advisory coverage for any project you created and every project you will create.
These are some recommended readings to help you with maintainership:
You can find more contributors chatting on Slack or IRC in #drupal-contribute. So, come hang out and stay involved!
Thank you 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 also the dedicated reviewers as well.
Comment #20
avpaderno