Skip to content

Store task query type separately - #2552

Open
divergentdave wants to merge 3 commits into
mainfrom
david/query-type-migration
Open

divergentdave wants to merge 3 commits into
mainfrom
david/query-type-migration

Conversation

@divergentdave

Copy link
Copy Markdown
Collaborator

Closes #874. This adds a query type column to the database, and adds query type fields to request and response objects used by divviup-api. I haven't made any changes to the webapp, client library, or CLI thus far. The NewTask field is optional to ensure backwards compatibility, and we backfill the query type based on the existing rule, looking at the presence of a maximum batch size. The database migration similarly backfills the new column with the same logic. I relaxed the types used by the aggregator API client so that newer divviup-api clients have the option to omit a maximum batch size.

I did manual testing of the migration on a variety of tasks, and confirmed the backfill query worked correctly. I also tested task creation via the web app after the changes, and that still worked as expected.

@divergentdave
divergentdave requested a review from a team as a code owner September 22, 2026 16:28
@divergentdave
divergentdave force-pushed the david/query-type-migration branch from c8da56f to eae299b Compare September 22, 2026 17:06
Comment thread test-support/src/lib.rs Fixed
Comment thread documentation/openapi.yml
@divergentdave
divergentdave force-pushed the david/query-type-migration branch from bb034b4 to 8f2a4dd Compare September 22, 2026 20:00

This branch has not been deployed

No deployments
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.

Allow for tasks with a query type of fixed size and no maximum batch size

3 participants