Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dashboard/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Constants for the grades app
"""

DEDP_PROGRAM_TITLE = "Data, Economics, and Development Policy"
DEDP_PROGRAM_TITLE = "Data, Economics, and Design of Policy"

Choose a reason for hiding this comment

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

medium

Using the program title as a string to identify a specific program is fragile. If the title changes in the database again, this logic will break. It would be more robust to identify this program using a more stable identifier, like a database ID, a slug, or a dedicated boolean field on the Program model. Since this is a wider change, it could be addressed in a separate ticket, but it's worth noting for future maintainability. I've added a comment to highlight this.

Suggested change
DEDP_PROGRAM_TITLE = "Data, Economics, and Design of Policy"
# This is used to identify the DEDP program by its title. This is fragile and may break if the program title is changed in the database.
DEDP_PROGRAM_TITLE = "Data, Economics, and Design of Policy"

Loading