-
Notifications
You must be signed in to change notification settings - Fork 58
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
Fix jsonb 'contained by' query #3643
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work. Tiny remark, looks good otherwise
Thanks for reviewing 💪 |
Checklist for QA:
What works:Seems to work. Scheduled a bunch of tasks and then filtered on each of the task filters to see if it would work. Also checked the logs for the scheduler, rocky, octopoes_api, octopoes_api_worker and bytes to check for any error messages that might be side effects. No obvious bugs found. What doesn't work:n/a Bug or feature?:n/a |
Quality Gate passedIssues Measures |
* main: (25 commits) Add sterr to output list (#3649) feat: ✨ add Shodan InternetDB boefje (#2615) Add search endpoint for schedules for scheduler (#3695) Fix/report naming (#3666) Add delete schedule functionality for schedules in the scheduler (#3678) Fix javascript and component template in prod environments (#3672) Fix first order dangling affirmation delete (#3682) Do not run dh_strip_nondeterminism in Debian packaging (#3674) Github action should trigger if workflow definition changes (#3680) Updated packages (#3694) Silence KATFindingType not found error in JobHandler (#3686) Add docs for xtdb analyze bits. (#3688) Fix empty vulnerability reports (#3662) Fix jsonb 'contained by' query (#3643) Add plugins to findings report (#3657) Translations update from Hosted Weblate (#3673) Update upload_raw.py (#3645) Add rocky worker service to debian packages (#3619) Fix/yielded objects (#3669) make some things look better (#3661) ...
Changes
Queries using lists as filter values when using it in combination with a 'contained_by' operator (
<@
) were incorrectly interpreted as text, and as such would create an incorrect SQL query.Issue link
Closes #3627
References #3299 (comment)
QA notes
Api functionality from scheduler to filter on the
/tasks
and/queues
endpoint using jsonb operator are mainly addressed here. Since we don't yet use this, this pr should not intervene with current functionality. So mainly filtering of tasks in rocky should be main area where something might happen. Checking that out would probably be a good thing.I'm trying to find some good qa examples, to test the functionality in this pr. But having issues with using curl and how characters are getting escaped and interpreted by fastapi. So stay tuned for that.
Code Checklist
.env
changes files if required and changed the.env-dist
accordingly.Checklist for code reviewers:
Copy-paste the checklist from the docs/source/templates folder into your comment.
Checklist for QA:
Copy-paste the checklist from the docs/source/templates folder into your comment.