Improve progress data determination: use type_id lookup and broaden line chart source#66
Draft
Improve progress data determination: use type_id lookup and broaden line chart source#66
Conversation
…for line chart Co-authored-by: agrogers <13920678+agrogers@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Improve progress data determination for dashboard charts
Improve progress data determination: use type_id lookup and broaden line chart source
Mar 20, 2026
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.
Progress resource discovery relied on a fragile name substring match (
' Progress'). Additionally, the subject progress line chart was limited to submissions from Progress resources only, missing the full picture of student activity.Changes
Resource lookup: Both
get_progress_data_for_dashboardandget_student_comparison_datanow find Progress resources via('type_id.name', '=', 'Progress')instead of('name', 'ilike', ' Progress')Line chart data source (
get_progress_data_for_dashboard):line_datais now built from all active submitted/completed submissions for the student — not just those linked to Progress-type resources. This gives a complete history across every subject.Bar chart + pace info unchanged in scope:
bar_dataandpace_datacontinue to be derived exclusively from Progress-type resource submissions, and notes parsing (start/end/redline dates, exclude lists) is untouched.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.