Skip to content

Conversation

@Duy-Nguyen1104
Copy link

Description

Added a fallback mechanism for course maps, allowing users without personal course maps to see a template/default course map. When a user requests their course map but doesn't have one configured, the system will automatically return the template course map (defined with userId=null)
Fixes # (issue)

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Tests have been added that cover the following scenarios:

  1. Template fallback: When a user without a course map requests their course map, they receive the template course map
  2. Personal map priority: When a user with their own course map makes a request, their personal map is returned (not the template)
  3. Course map unit structure: Template course maps contain the correct number of units in each year and teaching period
  4. Course map unit details: Units in template course maps have the correct data (unitId, yearSlot, teachingPeriodSlot, and unitSlot)

image

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have created or extended unit tests to address my new additions
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@Duy-Nguyen1104 Duy-Nguyen1104 mentioned this pull request Jun 12, 2025
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants