Closed (fixed)
Project:
Lupus Decoupled Drupal
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Oct 2023 at 13:42 UTC
Updated:
5 Dec 2023 at 12:49 UTC
Jump to comment: Most recent
Comments
Comment #4
elberHi please revise, Am I correct?
Comment #5
useernamee commentedHello @elber,
thank you for your timely fix. It is on point. However, there are some cosmetic changes needed.
I've checked for other occurrences of anti-patterns and did not find any.
Comment #6
elberPlease revise
Comment #7
useernamee commentedLooks good, thank you @elber.
Comment #9
fagoThank you for the contribution!
Yes, we should load the config as late as possible, but it seems the PR converts one call wrong.
Then, we should avoid loading the config multiple time in a single page load, thus I think we need to introduce some sort of getter to load the config and statically cache it in a local variable.
Comment #10
useernamee commentedI've added a property and g(/s)etter method on BaseUrlProvided and make FrontendRedirectSubscriber use that instead.
Comment #11
useernamee commentedre-rolled the PR to the latest 1.x version
Comment #12
roderikNW for above comments (implement or tell me they're not useful)
Comment #13
useernamee commentedImplemented code review recommendation. (I've missed that setting service exists already).
Comment #14
roderikComment #15
nikolay shapovalov commentedThanks for your contribution, I made review for this MR, can you please check my feedback?
As I understand phpunit fails is not related to this changes, and there is already a task to fix it #3402425: Fix PHPCS and maybe other errors.
Comment #16
roderik@zniki.ru you are correct, this issue is not related to phpunit failures. Only #3402425: Fix PHPCS and maybe other errors is related.
(I started that issue while seeing some failures, and someone said "yes you should fix them", but I didn't know the history. So I opened #3402425: Fix PHPCS and maybe other errors without looking further... but as things grew, that issue has now turned into a duplicate of #3395669: Make the gitlab-ci pipeline pass.)
Comment #17
useernamee commentedFix comments and order of params.
I don't think we should use property promotion since we don't have a dependency on php8 in the project's composer.json.
Comment #18
useernamee commentedComment #19
roderikNeeds work for last comment, but I'm fine with you merging this immediately after the change (provided the change is only removing that public getter method).
(Tested current code, to be sure of previous statement.)
Comment #20
useernamee commentedComment #21
roderikComment #22
useernamee commentedComment #24
useernamee commentedmerged & fixed
huh it was ride, thank you for staying along