-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Currently, Historian has people who take pictures at events zip them up and submit them through a Google Form. Then Historian has to manually add memberships for the people who submitted photos. Finally, Historian updates a spreadsheet of all the events that happened during the year including who took pictures at those events (if any).
This could be streamlined:
- Person takes photos
- Person goes to the SSE website and looks up the event that they went to
- Person clicks 'Submit Photos' button on that event
- Person must log in if they are not already
- Person is given a form that captures their name (from their login), the event (from what they clicked on), and a dropzone file upload form
- Once the form is submitted, the files are uploaded to Google Drive using its API
- A pending membership is automatically created for that person for that event for the Historian committee
On the API, the following functionality would be needed:
- Make another table & model for "Photographer". Events have many Photographers.
- Make an authenticated events endpoint (eg.
POST/events/:id/photos) which takesimages. This endpoint looks up the User submitting, makes a new Photographer row, associating this person w/ the event.imagesaccepts a single JPG, JPEG, PNG, GIF, or ZIP and sends it off to a Google Drive folder (specified as an environment variable). Then a new pending membership is added for this person.
Stretch Goal:
- Incorporate Slack: Post a notification to
#sse-historianswhen images have been uploaded w/ a link to view them (the folder permissions would likely have to be set to "Allow anyone from RIT to view")
@DanSwtmn Anything else?