VandyHacks / vaken

Next-gen hackathon registration system
MIT License
49 stars 12 forks source link

In the "mega-list", I can set a deadline for submissions #270

Open leonm1 opened 5 years ago

benredmond commented 5 years ago

I will implement the ability to set a deadline for the hackathon submissions in a new organizer settings dashboard. Currently, this dashboard will only include the ability to set a deadline, but will have the ability to support more settings in the future. I will implement this deadline by creating API endpoints for setting and retrieving the current deadline. I will then make a check against this setting whenever a hacker wishes to submit their application.

leonm1 commented 5 years ago

One thing just for clarity, by "API endpoints" you should make it a graphql query and mutation, and not REST api like "/api/deadline". That might have been what you meant anyway but I just wanted to make sure. Seeing as we don't have any config in the database yet, you'll likely need to create a new settings collection, as well. It is totally fine that this collection would only have one document (the settings object) in it. Finally, (and you can decide whether this gets put in a separate issue [you should file it and link it, in that case] or if you decide to add it in this PR), but you should consider telling the user that applications have closed on the front end. It might be relevant to disallow them from selecting the application item in the sidebar, as well as adding an additional greeting to the HackerDash.