Skip to content

Test Materialized Views - #87

Draft
schbetsy wants to merge 15 commits into
mainfrom
materialized-rest
Draft

Test Materialized Views#87
schbetsy wants to merge 15 commits into
mainfrom
materialized-rest

Conversation

@schbetsy

Copy link
Copy Markdown
Collaborator

WIP

schbetsy and others added 12 commits July 31, 2026 11:16
And populate it after evalutors run
This modifies the existing filter `EvaluatorResultFilterSet` to use the materialized view model, and adjusts field names to the model while retaining the API-facing fieldnames.

It does the same for a new serializer to serialize the materialized view, mapping materialized view fieldnames to the expected API fieldnames (which use Django __ notation for relations).
There are a few simplifications the materialized view brings to the EvaluatorResultsView. First, we can get rid of the result summary query method, we can simplfy the queryset, and we can use the serializer on the class directly.

I've also broken the sampling out of the list() method into its own method, because I think we can eliminate the S3 sampling entirely at some point with the materialized view.
With the materialized view, blank values are no longer empty strings, but are nulls. This adds an `isnull` filter to our AnyCharFilter so that we can filter for nulls.
This also refactors AnyCharFilter a bit to pull out the null-inclusive filtering to reuse in JSONArrayContainsFilter.
willbarton and others added 3 commits July 31, 2026 12:21
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.

2 participants