-
Notifications
You must be signed in to change notification settings - Fork 60
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
tasks from different organization visible in Rocky on task list for boefje #4095
Comments
Seems likely that the following needs to be amended filtering on organisation id: nl-kat-coordination/rocky/rocky/views/scheduler.py Lines 60 to 66 in deaddf7
|
Checking the request, the organization code is correctly visible in the filer clause send to the scheduler.
specifically the lines that update the Dict made on line
Because the Dict with the organisation filter is updated on line
Only the last applied filter remains. This explains why the general task list works corectly, but the ooi and boefje tasks lists drop the organization filter. The filters should probable be accumulated in a list instead of a Dict with just two possible keywords (and / or ) |
This will happen when a combination of the (deprecated) queryparams input_ooi and/ plugin_id is used in combination with payload filters. This worked before because the queryparameter scheduler_id was formatted with an organisation id. I recommend updating the rocky code to move the input_ooi and plugin_id queryparameter filtering into the payload filters and removing the deprecated code in the scheduler. |
We could also just remove the deprecated special casing and upgrade Rocky to not use those two vars anymore. |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Not seeing jobs from other orga's.
Screenshots
OpenKAT version
Main, after scheduler merge.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: