summaryrefslogtreecommitdiff
path: root/postgresqleu/confreg/volsched.py
AgeCommit message (Collapse)Author
2024-11-05Fix crash on total time if all volunteers have zero timeMagnus Hagander
2024-11-05Fix volunteer sorting on time when time > 24 hoursMagnus Hagander
2024-11-05Don't query fields we don't care about for volunteer statsMagnus Hagander
2024-11-05Prevent signing up for volunteer slot when not a volunteerMagnus Hagander
This could happen when an admin goes through the backend interface to reach the volunteer schedule, which would create entries that otherwise are incomplete.
2021-11-24Fix typoMagnus Hagander
2021-11-24Fix return codes in volunteer schedule APIMagnus Hagander
All endpoints would return 500 errors regardless of what the actual error was. This triggers django to send an email to the administrator. Since these are actually normal things to happen, change it to send 4xx errors (depending on the actual error) instead which is both conceptually correct and gets rid of those emails. The client side JS consuming the API treats 5xx and 4xx the same way, so it makes no difference there.
2020-07-13Remove unused importsMagnus Hagander
2020-05-06Centralize conference notification sendingMagnus Hagander
Break it out into separate functions, one for rendering a template and one for sending from a string.
2020-04-12Set explicit filenames for ical/xcal/xml downloadsMagnus Hagander
So we don't end up with everything called "download.<something>". Probably mostly important during testing, but still nice.
2020-03-12Create wrapper function to get a conference from urlnameMagnus Hagander
get_conference_or_404(urlname) basically does a get_object_or_404() on the Conference object with the specified urlname, and for now that's all it does. But this will later be used to control the per-conference timezone settings.
2020-02-22Add explicit ordering of volunteers in dropdown listsMagnus Hagander
2020-02-22Add missing help linkMagnus Hagander
2020-02-22Redo the volunteer schedule management to be more dynamicMagnus Hagander
This moves most of the interaction over to javascript and API calls, which makes it a lot nicer to interact with when the volunteer schedules are large, since it doesn't require a complete reload of the page every time. In passing also change around how the header looks by removing unnecessary headers and replacing mutiple paragraphs of short text with buttons intead. Fixes #23
2020-02-22Move volunteer schedule back into admin frameworkMagnus Hagander
Instead of rendering the volunteer schedule as part of the conference templates, render them as part of the backend. The volunteer schedule does a number of things that makes it put a lot of requirements on the templates around it, and that's currently built around bootstrap. This makes really hard to use in some conferences, and since it's only for volunteers anyway, making it render in the plainer framework doesn't have a big downside. This also makes it integreate nicer with the backend templates for the administrators, which is an improvement.
2020-02-22Add notifications for session and volunteer confirmationsMagnus Hagander
When enabled (default off), an email will be sent to the notification address for the conference when a session is confirmed (regular or to the waitlist), or when volunteers confirm or sign up, respectively. Fixes #16 Fixes #24
2019-05-02Another attempt at fixing volunteer confirmationMagnus Hagander
If an add-vol- appeared *before* the confirm/remove (which seems to unpredictably sometimes happen), it would stop processing there and not try any further. Instead, if the add is -1 (which means nothing was selected), then ignore it and keep looking for something else.
2019-05-02Fix confirmation/removal of volunteer slotsMagnus Hagander
2019-04-06Change volunteer schedule to use http POST instead of GETMagnus Hagander
With a proper CSRF token, this protects against, well, CSRF attacks.
2019-01-04Fix sibling importsMagnus Hagander
Sibling imports should be prefixed with a period. Good idea in py2, will eventually become required in py3, so another small step.
2018-12-14Fix module imports locationMagnus Hagander
2018-12-14Fix blankline related warningsMagnus Hagander
2018-12-14Replace tabs with spacesMagnus Hagander
In an effort to close up with PEP8, we should use spaces for indent rather than tabs... Time to update your editor config!
2018-11-17Implement conference series permissionsMagnus Hagander
This adds the concept of an administrator at the conference series level. An administrator of a series will: 1. Automatically be administrator on all conferences in the series 2. Have access to time based reports for the series 3. Have access to cross-conference email for the series In passing, update the time based report template to use the newer styling, and make it possible to resize the graph with drag/drop. This also changes the list of available conferences in time reports to be grouped by conference series, and removes the client side filtering (since it's now much easier to just shift-click an entire series, which was really the usecase for the previous filter).
2018-03-23Use render instead of render_to_response in more appsMagnus Hagander
Now also confreg, confsponsor, confwiki, newsevents, the old invoice system and the root.
2018-03-23Update format of URL listingsMagnus Hagander
Needed for compatibility with newer django. Fully backwards compatible. In passing, tabify the list of urls, since we're rewriting every line anyway.
2018-03-01Include all volunteers in statistics, not just active onesMagnus Hagander
2017-10-07Split up admin and volunteer view in volunteer scheduleMagnus Hagander
The previous workflow didn't work very well if the same user was both admin and volunteer.
2017-10-04Implement volunteer schedule managementMagnus Hagander
This adds the concepts of VolunteerSlot and VolunteerAssignment. Each VolunteerSlot has a minimum and a maximum number of volunteers. Possible volunteers (listed in a new field on the conference itself) can sign up for specific slots they are interested in, which must then be confirmed by an admin (controlled by the admin field on the conference). Admins can also add volunteers to specific slots, which must then be confirmed by the volunteer. There is also a per-volunteer ical feed using a secret URL (this adds a regtoken field to all registrations, which is something we've already needed for some other things as well, so it'll be good to have regardless). No notifications are sent in this system, that's all intended to be manually handled by the volunteer manager, at least for now.