Skip to content

Homeroom: Remove students_count, update link to require active students#2592

Merged
kevinrobinson merged 4 commits into
masterfrom
patch/remove-students-count-from-homeroom
Sep 5, 2019
Merged

Homeroom: Remove students_count, update link to require active students#2592
kevinrobinson merged 4 commits into
masterfrom
patch/remove-students-count-from-homeroom

Conversation

@kevinrobinson

@kevinrobinson kevinrobinson commented Sep 5, 2019

Copy link
Copy Markdown
Contributor

Following-on from #2584.

The semantics of students_count are unlikely to be what a developer wants; usually these should be active students, so let's remove this. Separately fixes a bug in an edge case in production data.

Also optimizes Educator.active to one SQL query rather than two joined in memory.

@kevinrobinson

Copy link
Copy Markdown
Contributor Author

selfie

@kevinrobinson kevinrobinson merged commit 9f9cec7 into master Sep 5, 2019
@kevinrobinson kevinrobinson deleted the patch/remove-students-count-from-homeroom branch September 5, 2019 19: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