Skip to content

Add semester field to courses#350

Merged
cycomachead merged 4 commits intoberkeley-cdss:mainfrom
cs169:add-semester-to-courses
Mar 30, 2026
Merged

Add semester field to courses#350
cycomachead merged 4 commits intoberkeley-cdss:mainfrom
cs169:add-semester-to-courses

Conversation

@alxstx
Copy link
Copy Markdown
Contributor

@alxstx alxstx commented Mar 19, 2026

Changes

  • Added database migration to add semester string column to the courses table
  • Course model populates semester from Canvas term data (e.g. "Spring 2026") when importing courses
  • Added by_semester scope to Course model for filtering courses by semester
  • Added backfill rake task (rake courses:backfill_semester) to populate semester for existing courses by fetching term data from Canvas API

Testing

  • Run bundle exec rspec to verify all tests pass
  • After deploying, run the migration and backfill task:
    heroku run rails db:migrate -a sp26-02-flextensions
    heroku run rake courses:backfill_semester -a sp26-02-flextensions
    

Documentation

No documentation needed

Checklist

  • Name of branch corresponds to story
  • 80%+ test coverage with all tests passing

@superconductor-for-github
Copy link
Copy Markdown

superconductor-for-github bot commented Mar 19, 2026

@alxstxSuperconductor finishedView implementation


Standing by for instructions.

@cycomachead cycomachead self-requested a review March 30, 2026 18:01
@cycomachead cycomachead merged commit 39a484f into berkeley-cdss:main Mar 30, 2026
6 checks passed
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.

2 participants