Closed (fixed)
Project:
The Better Mega Menu
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Nov 2020 at 19:20 UTC
Updated:
29 Jan 2021 at 18:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
timotej-pl commentedHi. Looking at the mentioned patch, there is almost everything already done there. Looking through modules code I found one instance where DI could be implemented and that's in Plugin/Derivative/TBMegaMenuBlock.php. I also fixed some Drupal standards in 'tb-megamenu-frontend.js'.
There's still some more calls of \Drupal, but I think that we cannot use DI on them.
I hope if It was okay to work from Patch #4.
I'm adding an interdiff of changes I made and full patch.
Comment #3
quondam commentedThanks for picking this up @timotej-pl - appreciate your work on the DI efforts. Any chance you could update your patch so that it only contains those changes - and doesn't include any of the coding standards updates? The project maintainers thought that it'd be good to split those two efforts up in order to make the updates easier to review - as well as track and potentially revert commits if we run into any issues. So the idea for this issue was to make it only include the DI changes.
Also, heads-up that 2965871 moved to RTBC yesterday and will most likely get merged tomorrow - so your best bet would be to pull in that commit, apply only the DI changes from your patch above on top of it and then replace the new service call from the latest patch on 2965871 before re-rolling a new patch for this issue.
If you're able to take care of the above I'd be happy to review your updated work and move this issue to RTBC first before updating the coding standards patch.
Comment #4
quondam commentedBeen working on re-rolling the patch so I'm picking this one back up.
Comment #5
quondam commentedRe-rolled patch containing only DI updates attached. All module functionality should be regression tested prior to signing off on the included updates as RTBC.
Comment #6
knaffles commentedComment #8
themodularlabPatch #5 is currently failing for me when run on the latest D8 (8.9.12) from both the beta and dev branches.
Comment #9
quondam commented@themodularlab looks like some code changed recently and/or some prior work that's been flagged as RTBC and shows up as merged isn't appearing in the 8.x-1.x-dev branch. I've re-rolled the patch from #5 and confirmed that it applies cleanly against that branch under 8.9.12.
Comment #10
themodularlab@quondam,
Looks like the patch is applying now! I will keep testing, make sure there's no regression bugs, etc.
Comment #11
themodularlabPatch tested against drupal 8.9.12 and 9.1.2. No issues detected or regression bugs found.
Comment #18
themodularlabThis issue has been merged into the 8.x Dev branch. It is scheduled to be included in the next 8.x-1.x release.
Comment #19
knaffles commentedI ran into an issue which appears to be related to these changes. The issue occurs on the latest 8.x-1.x-dev branch, but not in 8.x-1.x. Here are the steps to reproduce:
Here's the error in the logs:
Comment #20
knaffles commentedComment #21
knaffles commentedSetting this back to fixed and opened a new ticket for the issue mentioned above in comment #19:
https://www.drupal.org/project/tb_megamenu/issues/3194239
Comment #23
themodularlabComment #24
themodularlabComment #25
themodularlabComment #26
themodularlab