-
Notifications
You must be signed in to change notification settings - Fork 1.8k
refactor dojo async task base task #13986
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
base: dev
Are you sure you want to change the base?
refactor dojo async task base task #13986
Conversation
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
|
Conflicts have been resolved. A maintainer will review the pull request shortly. |
Co-authored-by: Cody Maffucci <46459665+Maffooch@users.noreply.github.com>
31a5314 to
917aa72
Compare
Resolved conflicts: - dojo/utils.py: Added grade_product function from upstream, kept removal of @dojo_async_task decorator - unittests/test_importers_performance.py: Updated expected query count to 319 (from upstream)
|
Conflicts have been resolved. A maintainer will review the pull request shortly. |
|
I have had to include the commits from #14090 in this PR to make sure the downstream Pro codebase still works. |
|
i've also had to include the commits from #14109 to make the downstream Pro codebase work. |
…atform, lifecycle, and origin
|
And then I had to include the commits from #14080 to fix other errors in Pro. |
… and maintainability
…al and key assets, and update OrganizationViewSet to use OrganizationFilterSet for filtering.
…cing coverage for asset-related functionalities.
…rmissions, enhancing clarity and maintainability.
…proved readability
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
|
Conflicts have been resolved. A maintainer will review the pull request shortly. |
The custom decorators that we have on Celery tasks interfere with some (advanced) celery functionality like signatures. This PR refactors this to have a clean base task that passes on context, but does not interfere with celery mechanisms.
The logic to decide whether or not the task is to be called asyncrhonously is now in a dispatch method.
Pro needs similar changes via https://github.com/DefectDojo-Inc/dojo-pro/pull/973, these must be merged "at the same time".