Skip to content

Bound aggregate cohort membership reads at the database (#220) - #330

Merged
jmmana merged 1 commit into
mainfrom
fix/220-limit-cohort-membership-read
Dec 4, 2026
Merged

jmmana merged 1 commit into
mainfrom
fix/220-limit-cohort-membership-read

Conversation

@jmmana

@jmmana jmmana commented Dec 4, 2026

Copy link
Copy Markdown
Owner

Refs #220. Builds on #326 and #328.

Apply the configured cohort limit plus one directly to the membership SELECT. The extra row lets the comparator refuse an oversized cohort. Close the membership cursor before continuing or refusing. A SQLite test checks the SQL limit at the database boundary and verifies there is no subsequent aggregate execution for an oversized cohort.

Ruff lint and format, mypy, and 136 focused tests passed locally. Caller-selected cohort filters and proxy integration remain open.

Copilot AI balanced review requested due to automatic review settings December 4, 2026 00:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@jmmana
jmmana merged commit 9401abf into main Dec 4, 2026
30 checks passed
@jmmana
jmmana deleted the fix/220-limit-cohort-membership-read branch December 4, 2026 00:33
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