Read courses per-row Average Grade from HPPS - #8208
Draft
donnapep wants to merge 2 commits into
Draft
Conversation
8 tasks
Contributor
Course-scoped counterpart to get_grade_totals_by_user, needed so the reports overview courses table can prime its per-row average grade in one query per page instead of one query per course row. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Replaces the per-row sensei_check_for_activity() + get_course_users_grades_sum() calls with a single get_grade_totals_by_course() call primed once per page, matching the pattern already used for the students table. Deprecates the now-unused sensei_analysis_course_percentage filter. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
donnapep
force-pushed
the
hpps-reports-courses-aggregates
branch
from
August 25, 2026 15:26
07ac04a to
933b63d
Compare
donnapep
force-pushed
the
hpps-reports-courses-avg-grade
branch
from
August 25, 2026 15:26
0558d49 to
39962d5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SEN-83: HPPS: Reports Overview aggregates → table-aware
Part of the Reports → Overview HPPS effort. Stacked on
hpps-reports-courses-aggregates.Proposed Changes
Testing Instructions
Setup (HPPS enabled):
Verify at Reports → Overview → Courses:
Deprecated Code
This per-row filter no longer runs. No replacement:
sensei_analysis_course_percentage