Repository navigation
Improve student activity registration system - #248
Open
agiledevopsguru wants to merge 7 commits into
Open
agiledevopsguru wants to merge 7 commits into
agiledevopsguru wants to merge 7 commits into
Conversation
Comment on lines
+110
to
+112
| @app.delete("/activities/{activity_name}/signup") | ||
| def unregister_from_activity(activity_name: str, email: str): | ||
| """Remove a student from an activity.""" |
Ensure participant_tokens are reset after tests. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Changes
This pull request adds several new features and improvements to the student activities signup system, focusing on expanding activity options, enhancing participant management, and improving the user interface. It also introduces automated tests to ensure correct functionality.
Backend enhancements:
Basketball Team,Swimming Club,Art Studio,Drama Club,Debate Team,Science Club) to theactivitiesdata structure insrc/app.py, each with their own schedule, max participants, and participant list.DELETE /activities/{activity_name}/signup) to allow students to unregister from activities.Frontend improvements:
unregisterParticipantfunction to handle participant removal via the new backend endpoint and ensured the activities list refreshes after signup/unregister actions.Styling updates:
Testing:
tests/test_app.pyto verify fetching activities, preventing duplicate signups, registering/unregistering participants, and handling unknown activities.Closes:
Task list