AshOban and Policies
I noticed that on initial project which has policies:
if I call an action that has
change run_oban_trigger(:my_trigger)
with authorize?: false
as an option; nothing happens regarding the oban job. Also nothing is reported.
How should I go about this? 🤔12 Replies
I can remove the policies and authorizes for this case, I'm doing a simple tutorial. But I'm wondering what would be the way if I had policies. Also, it's tricky to figure this out, what could be done in regards to that?
🤔
that shouldn't have anything to do with it
You're saying the action succeeds but the oban job isn't triggered?
yes
but if I remove the auth stuff it works as expected
🤔
yea this is weird
should I try to make a reproduction repo?
Ah
Solution
you need that
ah yes, I expected some thing like that
thanks a bunch
hmm, does it make sense to add that policy through igniter when ash_oban is selected? 🤔
talking about initial project through ash hq
Possibly, but its a bit tough because we wouldn't know which resources you want it on
true that
but how come there's no log or error that oban job didn't pass the policy, would that be possible? 🤔