-
-
Notifications
You must be signed in to change notification settings - Fork 718
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
Set causer globally (inside Jobs) #582
Comments
Hey, atm there's no easy out of the box way. This also duplicates #560 in some parts. So for example adding a static For sure we will count your vote on this feature request and think about a better solution to solve it. Because in all three issues there are also other things request which heavily relate to each other it could need some time to find a good way which could solve them. |
This is actually completely possible as I'm doing it right now. If the Job is running in a queue, then just run the job and pass through the user/id that should be then have an Auth::login call, just be sure to run the associated |
how does one change the causer inside |
seems like |
There is a way to not log the activity if the causer is |
@CharlieRa you could use an observer which returns
|
Works perfectly, thanks! |
I will close this issue even if v4 isn't released yet. But the task itself is done and I want to check which tasks are really open. Please keep an eye on #787 |
Is there any way to set the causer, globally, to be something else than the logged user? I know is possible to manually log an activity and specify the causer, but I have a Data Importer model that should be related to the events while running inside a Job.
This is what happens when the user creates a Data Importer:
The StartDataImporter will perform all tasks and generate all related models. The causer on those created/updated events should be the DataImporter.
My question is, is there any way to accomplish that? So all models created/updated by the DataImporter will have it as the causer.
The text was updated successfully, but these errors were encountered: