Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use scopes in lottery division #1352

Merged
merged 3 commits into from
Dec 20, 2024
Merged

Conversation

moveson
Copy link
Collaborator

@moveson moveson commented Dec 20, 2024

Currently, we have methods in the LotteryDivision model that duplicate, but do not use quite the same logic as, Lotteries::DivisionRanking#draw_status.

This PR refactors these methods to reference scopes on the LotteryEntrant model. It also introduces a new version of the Postgres view that takes withdrawn entrants into account.

@moveson moveson merged commit 16568c1 into master Dec 20, 2024
3 checks passed
@moveson moveson deleted the oveson/use-scopes-in-lottery-division branch December 20, 2024 05:31
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.

1 participant