Skip to content

895 filter course - #1271

Draft
Adrian-E-V wants to merge 10 commits into
devfrom
895-filter-course
Draft

895 filter course#1271
Adrian-E-V wants to merge 10 commits into
devfrom
895-filter-course

Conversation

@Adrian-E-V

@Adrian-E-V Adrian-E-V commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

GitHub Issues addressed

What I did

  • Created new data table in models,py: CourseSemesterInstructorGrade. This table is very similar to CourseInstructorGrade, but breaks down course/instructors by semester
  • Updated load_grades.py with logic that should uupdate CourseSemesterInstructorGrade

PR is in progress.

@Adrian-E-V Adrian-E-V self-assigned this Aug 21, 2026
@coderabbitai

coderabbitai Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 34e1fe33-17a8-4c2b-a0dc-019db1ce800e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Adrian-E-V Adrian-E-V linked an issue Aug 21, 2026 that may be closed by this pull request
@Adrian-E-V
Adrian-E-V requested a review from jackrhoa August 21, 2026 02:45
if file[0] not in (".", "~") and ".csv" in file:
self.load_semester_file(file)
else:
# TODO: Implement semester-specific loading logic for CourseInstructorSemesterGrade

@jackrhoa jackrhoa Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We only load all semesters at once so this isn't necessary (and the logic would be the same)

@jackrhoa

jackrhoa commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

We currently don't have the data for certain January / Summer sessions, so the loading would fail as currently written. Working on scraping that now.

@jackrhoa

Copy link
Copy Markdown
Collaborator

We currently don't have the data for certain January / Summer sessions, so the loading would fail as currently written. Working on scraping that now.

#1277 resolved this.

term_year, term_season = row["Term Desc"].split()
semester_id = self.semesters.get((int(term_year), term_season.upper()))
if semester_id is None:
raise ValueError(

@jackrhoa jackrhoa Aug 30, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The script should not completely stop mid-load if a grade data csv does not have corresponding course data from that semester

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.

Filter Course / Instructor Info by Semester

2 participants