- Issue created by @freelock
- πΊπΈUnited States freelock Seattle
Looks like in https://git.drupalcode.org/project/eca_flag/-/commit/8ba776511c935bb0032... , the tokens used to be defined in a BeforeInitialExecutionEvent hook, which added them directly to the token service -- this code got removed/moved into a BuildEventData() method on the event plugin.
I'm not exactly sure how this is supposed to be different -- do we need to add a getData() method, and return a DTO for the request key?
- Status changed to Needs review
3 months ago 7:07pm 19 August 2024 - πΊπΈUnited States freelock Seattle
Not sure if this is the correct approach -- but it's working at least for getting "entity" passed. I'm not seeing "flag" or "flagging" showing up in the logs -- however, using [flag:name] did appear to resolve and work correctly.
I did try wrapping these in DataTransferObject::create(), but that did not work.
This does appear to fix my models?
- Merge request !2Issue #3469011: Regression: entity, flag, flagging tokens removed without notice β (Merged) created by freelock
- Status changed to Needs work
3 months ago 1:23pm 20 August 2024 - π©πͺGermany jurgenhaas Gottmadingen
The MR fails testing. I've left a couple of comments there, which should help to resolve those.
What seems to be missing is the
flaggings
(plural) token, please add that as well.In addition to that, do we also have to remove the not working tokens from the
buildEventData
method? - πΊπΈUnited States freelock Seattle
Ok addressed the issues with the test failures.
Regarding removing from the buildEventData, seems like we should do that -- I was wondering if the annotations in the PHP attributes should be copied up to the getData ones? Specifically it has classes, and properties on the flaggings annotation -- are these correct, things we should add?
- π©πͺGermany jurgenhaas Gottmadingen
Yes, we should move the more detailed attributes to the
getData
method, as they express more correctly which tokens are available for which events. That's important for the documentation in ECA Guide.Also, the tests are still failing!
- First commit to issue fork.
Has any progress made on this issue? This upgrade renders my entire site unusable - and I have too many complex models with flag elements to rebuild them all from scratch.
- π©πͺGermany jurgenhaas Gottmadingen
jurgenhaas β changed the visibility of the branch 2.1.x to hidden.
- π©πͺGermany jurgenhaas Gottmadingen
This code change is looking good to me now. Someone needs to test if the MR fixes the problem on their site and set this to RTBC, we can then move it forward.
Ah, that's good news. I don't think I have bandwidth to test this weekend but I'll get it into my schedule as soon as I can, unless someone else gets to it first.
- πΉπThailand AlfTheCat
I ran into this issue after a fresh upgrade to ECA 2.x and the patch fixed the issue for me.
Thanks very much, I have a bunch of flag related models that were all affected.
-
jurgenhaas β
committed fbff5669 on 2.1.x authored by
freelock β
Issue #3469011 by freelock, jurgenhaas: Regression: entity, flag,...
-
jurgenhaas β
committed fbff5669 on 2.1.x authored by
freelock β
-
jurgenhaas β
committed 1ad54d87 on 2.0.x
Issue #3469011 by freelock, jurgenhaas: Regression: entity, flag,...
-
jurgenhaas β
committed 1ad54d87 on 2.0.x
- π©πͺGermany jurgenhaas Gottmadingen
I take that previous comment as an RTBC and merged and back ported this fix.
- πΉπThailand AlfTheCat
Great, happy to be that trigger. Thanks again for the great work.
- Status changed to Fixed
12 days ago 3:44am 10 November 2024 Automatically closed - issue fixed for 2 weeks with no activity.