Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Constants into Enums #17

Merged
merged 49 commits into from
Jun 13, 2024
Merged

Conversation

georgetayqy
Copy link
Contributor

@georgetayqy georgetayqy commented Jun 11, 2024

The currently defined constants are a collection of lists and dictionaries, each representing a discrete value representing some option within the Sample Application.

We should consider converting them to enums instead, which can more accurately capture the idea of an immutable constant in the application.

This PR should be merged only after PR #8.

… implement-assessment-pages

# Conflicts:
#	revamped_application/Home.py
#	revamped_application/core/courses/add_course_run.py
#	revamped_application/core/courses/delete_course_run.py
#	revamped_application/core/courses/edit_course_run.py
#	revamped_application/core/courses/view_course_run.py
#	revamped_application/core/courses/view_course_sessions.py
#	revamped_application/core/models/course_runs.py
#	revamped_application/core/system/cleaner.py
#	revamped_application/pages/1_🔐Demo Code-Authentication.py
#	revamped_application/pages/2_📚Courses.py
#	revamped_application/requirements.txt
#	revamped_application/utils/streamlit_utils.py
… implement-assessment-pages

# Conflicts:
#	revamped_application/core/abc/abstract.py
#	revamped_application/core/attendance/course_session_attendance.py
#	revamped_application/core/attendance/upload_course_session_attendance.py
#	revamped_application/core/constants.py
#	revamped_application/core/courses/add_course_run.py
#	revamped_application/core/courses/delete_course_run.py
#	revamped_application/core/courses/edit_course_run.py
#	revamped_application/core/courses/view_course_run.py
#	revamped_application/core/courses/view_course_sessions.py
#	revamped_application/core/models/attendance.py
#	revamped_application/core/models/course_runs.py
#	revamped_application/pages/4_✅Attendance.py
#	revamped_application/utils/http_utils.py
#	revamped_application/utils/json_utils.py
#	revamped_application/utils/streamlit_utils.py
… enum-refactor

# Conflicts:
#	revamped_application/core/constants.py
#	revamped_application/core/courses/view_course_sessions.py
#	revamped_application/core/models/assessments.py
#	revamped_application/core/models/course_runs.py
#	revamped_application/pages/2_📚Courses.py
#	revamped_application/pages/4_✅Attendance.py
#	revamped_application/pages/5_📝Assessments.py
#	revamped_application/test/README.md
#	revamped_application/test/core/models/test_assessments.py
#	revamped_application/test/core/models/test_attendance.py
#	revamped_application/test/core/models/test_course_runs.py
#	revamped_application/test/utils/test_verify.py
#	revamped_application/test_runner.py
#	revamped_application/utils/verify.py
@vivswy vivswy merged commit cb68eb3 into ssg-wsg:master Jun 13, 2024
@georgetayqy georgetayqy deleted the enum-refactor branch July 25, 2024 07:26
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