Repository navigation
Replies: 3 comments 7 replies
|
Hmm...I can't recall the justification for using a temporary ref there either 🤔 if removing it makes it work, that would be great. We're also going to want a test for doing a bulk update (using |
4 replies
|
I've tested this without the tmp_ref and it resolves the issue I am having, I have a made a PR, but a test would still be very welcome |
2 replies
|
Created the PR that adds the regression tests #1266. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have an issue where notifications aren’t being sent when running bulk updates. I’ve determined that it’s specifically in the
:streamstrategy with a data layer that supports transactions.The specific problem is In
lib/ash/actions/update/bulk.ex:1407where atmp_refis created. This puts the notifications into a different key in the process dictionary than what is looked for later.Is it important that there is a different
refhere?If so we could move the declaration of
tmp_refto outside thetryblock so that theafterblock can then grab the notifications in thetmp_refkey and send them.If not, we could use the parent ref by changing the references to
tmp_reftoref.I'm happy to do the work and submit the PR for this. I just feel I need some direction as I couldn't find a reason to have the
tmp_refbut didn't trust myself to know either.I haven't done an explicit test of bulk destroy, but it looks like it'll have the same issue.
All reactions