Skip to content

feat: import official course data and align frontend submodule#49

Open
SherryShijiarui wants to merge 9 commits into
devfrom
feat/course-data-api-fixes
Open

feat: import official course data and align frontend submodule#49
SherryShijiarui wants to merge 9 commits into
devfrom
feat/course-data-api-fixes

Conversation

@SherryShijiarui
Copy link
Copy Markdown
Contributor

@SherryShijiarui SherryShijiarui commented May 13, 2026

Summary

  • Adapt course list to DRF pagination response (results, count)
  • Fix course/review API paths from singular to plural endpoints
  • Refresh course detail after creating/deleting reviews
  • Reuse existing reviews API for review search
  • Add Celery dependency required by existing task modules
  • Fix ORC crawler to use canonical gc.sjtu.edu.cn course pages
  • Aggregate crawled course data before importing
  • Normalize unusual course codes before saving to DB
  • Make manual crawl_and_import_data() import synchronously for local/dev use
  • Update frontend submodule to API contract fixes
  • Present-course-offerings parser
  • Instructor import
  • CourseOffering import

Verification

  • bun run build
  • Checked no stale /api/course or /api/review paths remain
  • uv run python manage.py check
  • from scripts import crawl_and_import_data; crawl_and_import_data()
  • Confirmed ~367 unique course codes imported
  • Frontend build passed in CourseFront PR

@SherryShijiarui SherryShijiarui changed the title feat: align course pages with backend API contract feat: import official course data and align frontend submodule May 13, 2026
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