Skip to content

Improve sampling evaluator results - #90

Merged
schbetsy merged 8 commits into
mainfrom
sampling-3
Aug 10, 2026
Merged

Improve sampling evaluator results#90
schbetsy merged 8 commits into
mainfrom
sampling-3

Conversation

@schbetsy

@schbetsy schbetsy commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Internal ticket #1081

Previously, we would save a sample of each evaluator's results to an S3 bucket so that we can provide the sample quickly, even if the evaluator filter page is slow. Now that we're using a materialized view for evaluator results, we no longer need this performance "hack" in order to load that page quickly.

Testing

Screenshots

Notes

  • I tried to make the commit history sensible, so this PR may be easier to review as individual commits.

Todos

  • There may be a more efficient way to use django filters to return the sample set in the EvaluatorResultsView.

Checklist

  • PR has an informative and human-readable title
  • Changes are limited to a single goal (no scope creep)
  • Code can be automatically merged (no conflicts)
  • Passes all existing automated tests
  • Any change in functionality is tested
  • New functions are documented (with a description, list of inputs, and expected output)
  • Placeholder code is flagged / future todos are captured in comments
  • Project documentation has been updated
  • Reviewers requested with the Reviewers tool ➡️

@schbetsy
schbetsy requested a review from willbarton August 7, 2026 16:29

@willbarton willbarton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! I love the simplification too.

EDIT: Sorry about the conflict in views.py

And add default values to result summary fields 'hits' and
'accounts_affected'
Generate the sample as EvaluatorResult IDs instead of AccountActivity
IDs, then indicate the sample on the EvaluatorResult instead of on the
EvaluatorResultSummary record.

Then, simplify how we serve the sample records in the view.
@schbetsy
schbetsy merged commit ebbb6bf into main Aug 10, 2026
6 of 7 checks passed
@schbetsy
schbetsy deleted the sampling-3 branch August 10, 2026 13:45
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