Skip to content

[BUG]: Assignment dropdown on agent detail page loads too much #2193

@s3inlc

Description

@s3inlc

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.

Metadata

Metadata

Labels

bugSomething isn't workinguiHashtopolis UI related

Type

No type
No fields configured for issues without a type.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions