- Issue created by @luke.leber
- Merge request !48Move complex logic from constructor; invoke lazily after container build completes β (Merged) created by luke.leber
- Status changed to Needs review
7 months ago 3:48pm 19 April 2024 - πΊπΈUnited States luke.leber Pennsylvania
Let's see what the test bot thinks.
- Status changed to Needs work
7 months ago 4:12pm 19 April 2024 - πΊπΈUnited States kevinquillen
Can confirm, a handful of us have been chasing this around for months. AC is a common module between us.
- πΊπΈUnited States benjifisher Boston area
I am adding more detail to the proposed resolution and replacing links to issues with tokens.
- πΊπΈUnited States benjifisher Boston area
The first test failure I looked at is in
ConfigureApplicationFormTest
. It looks as thoughConfigureApplicationForm::submitForm()
callsSubscription::getSubscription()
, which callsSubscription::hasCredentials()
, and that function uses$this->settings
directly instead ofgetSettings()
.I think all references to
$this->settings
should be replaced with$this->getSettings()
. (No, not the reference insidepopulateSettings()
.) That might fix a lot of the test failures. - First commit to issue fork.
- Status changed to Needs review
7 months ago 4:34pm 26 April 2024 - πΊπΈUnited States japerry KVUO
Took a crack at this. For the most part, I agree with the changes.
I think all references to $this->settings should be replaced with $this->getSettings(). (No, not the reference inside populateSettings().) That might fix a lot of the test failures.
+1 -- one of the issues with populateSettings is that its supposed to repopulate (execute the event again) settings whenever its called. Adding the check in this method means that the first time its invoked, you could end up with the wrong settings. This is the case with tests because they call populateSettings directly after some values are changed, and the settings object gets first set when installing the module, with unfortunately null values within the object, causing it to be a valid object just with null values within it.
I've made some tweaks, we'll see if the tests are passing now.
- πΊπΈUnited States luke.leber Pennsylvania
!48 looks good to me. I understand this is basically impossible to test, but there shouldn't be any harm in delaying the collection of settings.
We've sporadically experienced weird "should never happen" things on the platform, so after this lands, I'll keep this issue in mind and chime in if another inexplicable thing (i.e. cache corruption) happens afterwards. I think that's the only reasonable evaluation we can do against the theory written out in the I.S.
-
japerry β
committed 08f7517d on 4.x authored by
Luke.Leber β
Issue #3442134 by japerry, Luke.Leber, benjifisher, kevinquillen: Acquia...
-
japerry β
committed 08f7517d on 4.x authored by
Luke.Leber β
- Status changed to Fixed
7 months ago 6:13pm 29 April 2024 - πΊπΈUnited States japerry KVUO
Committed! Thanks everyone for your reports and testing of it.
Automatically closed - issue fixed for 2 weeks with no activity.