Version Information
master
Hashcat
No response
Description
When filling the dropdown for 'Assignment' on the agent detail page, it loads ALL tasks (including archived, and possibly ones which the agent cannot even be assigned to, e.g. due to non-matching access group). This causes a very slow query on larger setups (and loading like 10MB of json), just to display the task names possible to assign to.
The query from the frontend should be adjusted so that it filters non-archived, and ideally also only tasks where the access group of the agent would match (if the query for this gets too complicated, I think we could omit that). Also in the query it should make sure to not load too much data of the entries if not needed.
Version Information
master
Hashcat
No response
Description
When filling the dropdown for 'Assignment' on the agent detail page, it loads ALL tasks (including archived, and possibly ones which the agent cannot even be assigned to, e.g. due to non-matching access group). This causes a very slow query on larger setups (and loading like 10MB of json), just to display the task names possible to assign to.
The query from the frontend should be adjusted so that it filters non-archived, and ideally also only tasks where the access group of the agent would match (if the query for this gets too complicated, I think we could omit that). Also in the query it should make sure to not load too much data of the entries if not needed.