-
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
Remove tasks and items on mutation delete #1090
Conversation
Checklist for QA:
What works:
Bug or feature?:
|
@@ -144,3 +96,69 @@ def create_task(self, task: models.Task) -> Optional[models.Task]: | |||
def update_task(self, task: models.Task) -> None: | |||
with self.datastore.session.begin() as session: | |||
(session.query(models.TaskORM).filter(models.TaskORM.id == task.id).update(task.dict())) | |||
|
|||
@retry() | |||
def api_list_tasks( |
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.
I guess this is called only by the API, or?
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.
Yes exactly
self.assertEqual(boefje.id, task_pq.boefje.id) | ||
|
||
task_db = self.mock_ctx.task_store.get_task_by_id(task_pq.id) | ||
self.assertEqual(task_db.status, models.TaskStatus.CANCELLED) |
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.
👍
@Darwinkel If that's desired behavior I'd suggest this turns into a new ticket because our workers do not support such functionality (yet). This also ties a bit into the timeout discussion we had recently. |
* main: Add bit to set default values for FindingType risk levels in Octopoes (#1075) Fix thread termination in Mula (#1003) test(boefjes): snyk (#1116) Add endpoints in Octopoes for bulk operations in the object list page (#1067) Remove tasks and items on mutation delete (#1090) Persist impact, recommendation and source fields in FindingType objects in XTDB (#1126) Handle an empty plugin.consumes field for the plugin detail page (#1104) Add script to automatically backport PR to release branch (#1097) Fix typos in 'no organizations found' message (#1123) Finding Types Boefjes (#1056) add findingtype files (#1117) Remove containers after `docker-compose run` (#1112) Bump cryptography from 39.0.1 to 41.0.0 in /boefjes/boefjes/plugins/kat_ssl_certificates (#1099) Bump cryptography from 40.0.2 to 41.0.1 (#1108) Bump cryptography from 40.0.2 to 41.0.0 in /bytes (#1100) Fix failing test-debian-install in CI (#1111) Remove unused boefje fields when creating a BoefjeTask object to send to the scheduler (#1103) add 'ideas' as a category in project guidelines (#1105)
Changes
Issue link
#1042