-
-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Afform Entity Reference Submit #20305
Conversation
(Standard links)
|
0ee3c91
to
77f4313
Compare
This is shaping up nicely. Aside from a few nitpicks from the stylechecker, I just have a couple suggestions:
|
@colemanw I have done 1. but haven't looked into 2 & 3 as yet but doing 1 prompted some fixes so might be good to review it |
…itiy rather than just once. Also extract weight function out and make improvements following Coleman's review and add tests
7f094b5
to
9d4f6fb
Compare
@colemanw I believe Item 2 is done but not sure if item 3 is needed at this point |
Thanks @seamuslee001 this looks good. I did some cleanup on related areas of code and realized that there's still more as I started to uncover some shortcomings in the preprocess/submit apis but if tests are passing now then this is in a good place to be merged. |
44e86ce
to
5dedaa3
Compare
…coverage - Simplifies getEntityWeights function using topological sorting library - Consolodates postprocess event listners to just processGenericEntity - Adds missing getters/setters to api classes - Improves the AfformSubmitEvent interface to make it easeier to use - Adds to tests
5dedaa3
to
5c89828
Compare
@seamuslee001 here's a funny story: I added a new unit test with a more complex scenario for |
Overview
Improve Afform Submit handling to handle for entity reference fields that reference other form elements
Before
Cannot use a value of Individual1 for a field such as source_contact_id for an Activity
After
Can use a value of Individual1 for field source_contact_id when creating an activity using Afform
Technical Details
This PR changes the Afform Submit Event dispatching so that it dispatches once per record / entity rather than once per afform submit
ping @colemanw @totten