Closed (fixed)
Project:
Easy Breadcrumb
Version:
2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Apr 2024 at 15:35 UTC
Updated:
26 Jun 2024 at 19:02 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #2
abhishek_gupta1 commentedComment #3
abhishek_gupta1 commented@veronicaSeveryn fixed the issue and created Patch.
Comment #4
greg boggsHi Abhikeh Gupta,
Lets keep using findMatchingRedirect rather than switching to a different method while fixing this issue since findMatchingRedirect was working previously and was tested.
To improve workflow, we will need Merge Requests and not patches.
Comment #5
greg boggsComment #6
niklanHaving the same issue.
UPD. Whoops, sorry folks, I was lost a bit, this is an easy_breadcrumb issue :) Btw, this issue is only reproduced with a dev branch 2.0.6 works fine.
Comment #7
paul_serval commentedPatch attached. Using injection for redirect.repository and findMatchingRedirect function
Comment #8
greg boggslooks good, can we get a MR for Git lab CI testing?
Comment #11
spuky commentedWas thinking ok lets do the work of converting the patch to am MR ( can't be that hard )
Learned a lot about Tests and CI ;-)
Got all tests to pass that where passing before the MR
I am still not sure If it is the right solution to the problem since it adds a dependency on the redirect module
Comment #13
spuky commentedOk I give up on trying to fix or get pass the 2 Remaining PHP unit tests...
I am not even sure if it is worth spending the time on fixing the testing of 3 Year old update code...
Problem seems to be that the Update function is checking the config against the already installed Schema
one would need to create SQL files for those tests...
So the status of the merge request is:
my suggestion would be to remove the 2 failing tests (test8006DefaultConfigurationUpdate, test8006AfterFormSaveConfigurationUpdate)
to make contributions not that frustrating.. ( although I learned a lot )
Comment #14
spuky commentedComment #15
norman.lolComment #16
norman.lolComment #17
norman.lolUnfortunately the MR now contains lots of unrelated fixes. I agree with most of these improvements but they must be fixed separately. Here we want to fix the issue mentioned in the title.
The most important thing to understand is that we must not inject a service that might not exist. Since the
redirectmodule is not a dependency of theeasy_breadcrumbmodule theredirect.repositoryservice was called only inside a request:if ($this->moduleHandler->moduleExists('redirect') { ....I will now open another MR to solely revert the unfortunate changes from #3421456: Fix tests. This will fix this issue. We might then open follow-up issues to fix the other stuff.
Comment #19
norman.lolLet's get MR !112 in before we create follow-up issues. For me it fixes the issue.
Comment #20
spuky commented+ 1 for this simple merge (was carried away.. by trying to get fixes for test)
Comment #22
greg boggsComment #23
greg boggsOk. I think I did that right.
For the tests, lets try again to fix what we can, for annoyingly difficult tests on old update hooks and such, lets just remove the problem tests. The important bit with the tests is that the tests pass, not that we have great coverage.