Uh oh!
There was an error while loading. Please reload this page.
[17.0][IMP]queue_job: only subscribe job creator if indicated via boolean method - #865
Conversation
OCA-git-bot
commented
Jan 2, 2026
Hi @guewen, |
53b1975 to
f35df77CompareGuillemCForgeFlow
commented
Jan 2, 2026
hi @guewen, any chance you see this a good improvement to the module? |
sbidoul
commented
Jan 2, 2026
@GuillemCForgeFlow why is it not sufficient for you to override |
GuillemCForgeFlow
commented
Jan 5, 2026
@sbidoul, the problem is that the user assigned to the job will always be added anyway: https://github.com/OCA/queue/blob/17.0/queue_job/models/queue_job.py#L359. There may be cases for which we don't want that to happen. |
sbidoul
commented
Jan 5, 2026
Ah yes. How about this? def_subscribe_job_creator(self) ->bool"""Whether the user that created the job should be subscribed to the job, in addition to users determined by `_subscribe_users_domain`""" |
…ethod We add the `_subscribe_job_creator` method in `queue.job` which will return True for the cases where we want to subscribe the job creator, False otherwise.
f35df77 to
5487166CompareGuillemCForgeFlow
commented
Jan 7, 2026
@sbidoul changes applied, thank you for the feedback 🙂 👍🏿 |
GuillemCForgeFlow
commented
Jan 13, 2026
hi @guewen, I'd appreciate it if you have the time to review this small improvement 🙂 |
GuillemCForgeFlow
commented
Jan 13, 2026
@sbidoul perhaps we can get this merged? I'll take care of the fws 👌🏿 |
sbidoul
commented
Jan 13, 2026
/ocabot merge patch Thanks! |
OCA-git-bot
commented
Jan 13, 2026
This PR looks fantastic, let's merge it! |
Uh oh!
There was an error while loading. Please reload this page.
OCA-git-bot
commented
Jan 13, 2026
Congratulations, your PR was merged at 1acf4c1. Thanks a lot for contributing to OCA. ❤️ |
We add the
_subscribe_job_creatormethod inqueue.jobwhich will return True for the cases where we want to subscribe the job creator, False otherwise.cc @ForgeFlow