Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
9 May 2020 at 15:37 UTC
Updated:
17 Jun 2020 at 08:54 UTC
Jump to comment: Most recent
Comments
Comment #2
marco.aresu commentedComment #3
marco.aresu commentedComment #4
marco.aresu commentedComment #5
ashutosh.mishra commentedComment #6
ashutosh.mishra commentedThank you for contribution!!!
I am updating the git instructions and also reviewed the compatible with D9.You can add core_version_requirement: ^8 || ^9 in module. info file.
Comment #7
ashutosh.mishra commentedComment #8
ashutosh.mishra commentedComment #9
avpadernoComment #10
ankush_03Code Looks Good !
ankushgautam@GGN-199732-C02ZT1F1MD6V contrib % drupal-check go_back_history
2/2 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
[OK] No errors
Comment #11
marco.aresu commentedThanks ashutosh.mishra
I add a patch to include core_version_requirement: ^8 || ^9 in .info file.
I add a patch in dev version.
ashutosh.mishra, sorry but I think that your report is wrong. The file
linked_data_field/tests/src/FunctionalJavascript/LCSubjectAutocompleteWidgetTest.phpdoesn't exist in this project. I think the file is in another module.
Comment #12
ashutosh.mishra commentedHi marco.aresu
Sorry, the report was added by mistake . Now Code looks good for me
Comment #13
avpadernoComment #14
shaktikThank you for your contribution!
Review of the 8.x-1.x branch (commit d59bd12):looks good to me.
Comment #15
avpadernoComment #16
seonic commentedThis code adds multiple same click events to the each button.
Drupal behaviors calls multiple times and in most cases you should use jQuery.once to prevent multiple code execution on the same element.
You can see examples on the js api overview page:
https://www.drupal.org/docs/8/api/javascript-api/javascript-api-overview
This code adds module library on each page without any checks, even if block does not exists, better to attach it to the block plugin
render array.
If library uses jquery, documentation says that better to add it as dependency.
https://www.drupal.org/node/2216195
Comment #17
avpadernoComment #18
marco.aresu commentedThanks Seonic.
I fixed the following issues:
Comment #19
marco.aresu commentedComment #20
elavarasan r commented@marco.aresu,
Please avoid to use DOM element inside the class file.
$content = "<a class='go-back-history-btn'>" . $this->t('Go back') . "</a>";Instead, create a twig file and place the DOM code inside the file.
For template suggestion, add the below code in .module file.
Add the below code in the class file.
The twig file "'block--go--back--history.html.twig" will look like below,
Comment #21
marco.aresu commented@Elavarasan R
I'm trying your suggestion.
I don't understand how attach libraries.
The libraries are in build block function. If I use hook_theme(), the libraries don't rendered.
Why?
Comment #22
elavarasan r commented@marco,
Have you tried the below option to attach library and theme file?
Comment #23
elavarasan r commentedComment #24
marco.aresu commentedThanks @Elavarasan R,
I added your suggestion in dev version.
Comment #25
marco.aresu commentedComment #26
avpadernoComment #27
avpadernoThank you for your contribution! I am going to update the project to opt it into security coverage.
These are some recommended readings to help with excellent maintainership:
You can find more contributors chatting on the IRC #drupal-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 dedicated reviewers as well.