Closed (fixed)
Project:
Contact Block
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2019 at 18:40 UTC
Updated:
18 Mar 2020 at 15:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
vuilI apply two small changes:
Comment #3
vuilI assigned the issue for reviewing...
Comment #4
vuilUpdate the summary with latest drupal-check issues.
Comment #5
vuilRemove the last commit hash from issue's summary.
Comment #6
vuilI change the status to Needs work on new
drupal-check -adissues (updated summary).Comment #7
vuilUpdate the #2 patch.
$ drupal-check -ad web/modules/contact_blockComment #8
vuilHide the previous #2 patch.
Comment #9
vuilUpdate the patch to latest 8.x-1.x-dev branch.
Comment #10
vuilRe-roll the patch #7.
Waiting for review from @Sutharsan.
Comment #11
sutharsan commentedThanks for your contribution.
Typo 'current'
'route' not 'router'
One backslash too many.
The variable name is confusing, and is not consistent with description. Naming things is hard, but I choose to base it on the class name of the underlying service:
$this->checkContactPageAccess, $check_contact_page_access, Check access to contact page, etc.
Comment #12
-enzo- commentedHi @Sutharsan
I follow your recommendation and apply those changes in patch #10.
Please review and let me know if works.
BTW drupal-check said all is OK
Comment #13
sutharsan commentedVariable needs rename.
Use above property definition description.
Comment #14
-enzo- commentedHi @Sutharsan
Thank you for the review, attached you can find the changes, please let me know if I miss something
Comment #15
sutharsan commentedSome more observations:
Do not append variable name to the type declaration.
See above. Also, use fully qualified class name.
Comment #16
sutharsan commentedI tested the module with this patch, and found a but introduced by it.
ContactBlock::defaultConfigurationis called whenparent::__construct()is called and therefore before$this->configFactoryis instantiated. Which causes an error inContactBlock::defaultConfiguration. This patch delaysparent::__construct()until all services are loaded.I did not include the #15 comments.
Comment #17
vuilI add my employer.
Comment #18
vinay15Verifying if #16 works and including feedback from #15.
Comment #19
vinay15Verified that #16 works fine and adding a patch that includes feedback from #15.
Comment #20
ranjith_kumar_k_u commentedlatest patch applied successfully ,Performed drupal-check and foud no issues
Comment #21
abhijith s commentedI've applied the patch contact_block_d9_deprecated_code_report-3042649-19.patch for 8.x-1.x-dev. It was checked using drupal check and worked successfully
Comment #22
c-logemann"ContributionWeekend2020“ is the "official" tag suggested on global event page.
Comment #23
vuilComment #24
vuilComment #26
vuilThank you for the contribution!
The reviewed patch is committed! I closed the issue as Fixed!
Comment #27
c-logemann@maintainer: Please remove my issue credit. I just fixed an issue tag which is a very simple minor contribution.
Comment #28
vuilOK, Done!