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 |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
Created the PR that adds the regression tests #1266. |
Beta Was this translation helpful? Give feedback.
-
I have an issue where notifications aren’t being sent when running bulk updates. I’ve determined that it’s specifically in the
:stream
strategy with a data layer that supports transactions.The specific problem is In
lib/ash/actions/update/bulk.ex:1407
where atmp_ref
is 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
ref
here?If so we could move the declaration of
tmp_ref
to outside thetry
block so that theafter
block can then grab the notifications in thetmp_ref
key and send them.If not, we could use the parent ref by changing the references to
tmp_ref
toref
.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_ref
but 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.
Beta Was this translation helpful? Give feedback.
All reactions