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

Applying to event functionality #276

Merged
merged 2 commits into from
Dec 27, 2021
Merged

Applying to event functionality #276

merged 2 commits into from
Dec 27, 2021

Conversation

KeremZaman
Copy link
Collaborator

I implemented event application functionality. Current API endpoint is given under Issue #275 , please review it as well as the code.

Kerem Zaman added 2 commits December 26, 2021 12:54
- Add API endpoint for applying to an event as spectator or player
- Add age and capacity checks for applicants
- Add API endpoint for accepting or rejecting applicants for an event by owner of the event
- Add capacity check while accepting applicants
- Change Eventpost model to have 2 different fields for spectator applicants and player applicants
- Add tests for applying as player or spectator, applying in full capacity situations, applying when not qualified for the event, accepting player or spectator, rejecting player or spectator, accepting in full capacity scenarios and fetching applicant list
Copy link
Collaborator

@CenekSanzak CenekSanzak left a comment

Choose a reason for hiding this comment

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

I reviewed the API documentation you provided. I think it is functional for our purpose but you should add the returned object to the API documentation when you are creating a wiki page for it. I reviewed your code but I didn't run it, I think that it is implemented well.

@ibrahimbayat ibrahimbayat self-requested a review December 26, 2021 15:47
Copy link
Collaborator

@ibrahimbayat ibrahimbayat left a comment

Choose a reason for hiding this comment

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

I think it is a well written code, and includes player and spectator applications. Also, users are removed from the applicants then added to the participants and necessary checks are done before adding users to participant list. But maybe returning responses can be written in to the documentation and it can be written according to activity stream.

@KeremZaman KeremZaman removed the request for review from ege-kaya December 27, 2021 18:23
@KeremZaman KeremZaman merged commit cf33e66 into development Dec 27, 2021
@ege-kaya ege-kaya linked an issue Dec 29, 2021 that may be closed by this pull request
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.

[Backend] Implementing event application functionality
3 participants