Skip to content

2193 bug assignment dropdown on agent detail page loads too much#715

Open
correct-horse-battery-bench wants to merge 7 commits into
masterfrom
2193-bug-assignment-dropdown-on-agent-detail-page-loads-too-much
Open

2193 bug assignment dropdown on agent detail page loads too much#715
correct-horse-battery-bench wants to merge 7 commits into
masterfrom
2193-bug-assignment-dropdown-on-agent-detail-page-loads-too-much

Conversation

@correct-horse-battery-bench

@correct-horse-battery-bench correct-horse-battery-bench commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Requires server branch: aggregation-improvements https://github.com/hashtopolis/server/tree/aggregation-improvements

On systems with large number of chunks we have the problem that certain pages do not load due to server returning data that is not needed or that in certain pages (edit agent) the client fetches all chunks and tries to calculate things client side that should probably be moved to the server.

Therefore the server changes the contract and aggregated fields have to be added explicitely otherwise they are not returned.

This means that on usages where we access these aggregated fields we have to explicitely pass them as request param for example "aggregate[task]=dispatched.

In order to catch errors where we forget to request these aggregates but they are still used improve typing that similar to include fields if the aggregate field is passed then it is in the type returned by the deserializer. If the aggregate is not included then the return type does NOT include the field.

Therefore wherever we use these aggregated fields after this change there would be a type error and the params can be amended.

  • Remove client side crackingTime calcualtion by fetching all chunks -> server branch adds aggregated field crackingTime to agent which is requested

  • explicitely pass everywhere aggregated fields wherever we require them

  • improve typing of request builder and serializer, makes it a bit more complicated but enforces passing the correct values -> probably worth a discussion how we want to do this in the future

Server Issue: hashtopolis/server#2193

…arrowed builder type

The generic RequestParamBuilder (this branch) narrows builder locals to
RequestParamBuilder<'pretaskFiles', never>, but master's applyMaskImportFilter
was typed to the wide IParamBuilder, so reassigning through it produced TS2739
in the merge build. Make the helper generic (<B extends IParamBuilder>(params: B): B),
matching applyFilterWithPaginationReset.
@correct-horse-battery-bench correct-horse-battery-bench marked this pull request as ready for review June 16, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant