Commit Graph

116 Commits (9b4dda44b0f95b8ccf884bf5a5972ba19ed8d5ae)

Author SHA1 Message Date
Igor Scheller 643c4c8da7 Upgraded composer packages, fixed class naming and return types
Igor Scheller 38dda01330 Use RFC3339 strings to represent start and end times for shifts json start/stop, fixed ical timezone output
xuwhite a1f5454bf5
Optional description for shifts
Tim Neumann 5667fc2326 Allow specifying the deadline for signup in terms of shift length
Allow finer control over the specification of the
time after shift start where signup is still allowed.

The new config field is multiplied by the shift duration,
and the result added to the start time to determine the
time when signup is closed.

The existing signup_post_minutes is just added to the time
calculated by this new feature.

The feature is useful when the signup should be allowed
not just a few minutes after shift start but for a larger part
of the shift (like for half of the shift).
With the previous option it would not make sense to allow a late signup
longer than the shortest shift of the event.

This is a follow-up to a50dd9cae0
Igor Scheller 2745b04dc2 Added filter to dashboard
Igor Scheller acf84f222d Added Room model
Tim Neumann a50dd9cae0 Add option for minutes after shift start where signup is allowed
Igor Scheller 390db395a6 File formatting fixes
cbluoss 74b464aab5 ShiftEntry query now returns the related user.name as well.
This was done for API requests to save additional queries,
but should allow us to remove some queries pretty much everywhere shifts
get listed (will be done in a new PR eventually)
msquare a3a938a121
Merge pull request from MyIgel/schedule-import
Rebuild Schedule import
Igor Scheller b540ac9385 Add timezone to shifts JSON
Resolves  (Provide time zone offset via the shifts-json-export API)
Igor Scheller 42721e9572 Added Schedule parsing and replaced old Fahrplan importer
Resolves  (Change Frab Import from xCal to XML)
Resolves  (Feature Request: Multi Frab Import)
Igor Scheller 85e4403392 Rooms: Save times as Worklog and notify on room deletion
Igor Scheller d71b27b78b Shifts: Save time as worklog if past shift gets deleted
MichiK 142871f852 Add a config option for maximum signup in advance
We now have `signup_advance_hours` in the configuration that
only allows signup for shifts so many hours in the future.
A notice is displayed in the shift view for shifts in the
far future, together with an info notice on when signup for
that shift will be possible.

In addition, we now have a new shift state `NOT_YET` for this
purpose so we do not have to abuse `SHIFT_ENDED` anymore for
`signup_requires_arrival` as well.
Igor Scheller 0150aca6ad Order rooms in shift overview by name
closes  (Order of Rooms in overview)
Igor Scheller c33940f64a Moved permission checks to Authenticator class
Igor Scheller 88f3bafa5e Replaced `Auth()` with `auth()`
Igor Scheller a2aaba9cab User: Bugfixes & code cleanup
Igor Scheller d7aea575ff Replaced more sql queries and old data
Igor Scheller 7c6afc2bfe Removed `User($id)` function 🎉
Igor Scheller 89e62c95a7 Changed more functions 🎉
Igor Scheller 2dcb7cc2de Replaced some global `$user` variables
Igor Scheller d0abc27c07 Merge remote-tracking branch 'MyIgel/translations'
Igor Scheller 5456fea503 $bugfixes
Igor Scheller 175c335810 Db::selectOne() should return null if result is empty
Igor Scheller 0d154365a2 models: return null on empty result
Igor Scheller fe58e4f422 database: updated checks for selectOne
Bot 952c7892f3 Formatting & Docstrings
klemens a6cf4c9ce9 spelling fixes
msquare fbbea4eb5f add show on dashboard flag for angeltypes
msquare 2c04e35bed introduce new shift signup state for not arrived angels
msquare fd85034e7f redo shift signoff and icons for delete/confirm/acknowledgment questions
msquare 20f4d44cbf fix union queries for dashboard stats
msquare 35be25a786 fix dashboard using needed angeltypes from room config too for frab shifts
msquare ff94df53d6 finish basic public dashboard
msquare afb77d22ba move room db queries to model
msquare 928e707015 add shift calendar to angeltype view
Igor Scheller 4817658862 Merge branch 'noc0lour:fix_setup_bugs', closes
Igor Scheller 0a20883aa8 Reimplementation of 2840bb619 (signup requires arrival), closes
Bot a473a56f1d Formatting
Andrej Rode eeae07e625 add edited_at_timestamp to shift creation to fix mysql error
msquare f82e5456d2 dried code by introducing selectOne for select queries with only one result line expected
msquare a0af8d4624 further switching to db exceptions instead of return false
msquare 5794c4cab8 clear delete queries from false resuls
msquare a157004f4a handle failed db queries in Db class
msquare 8ae0123635 unarrived angels can enter a shift (has been disabled for 33c3)
Igor Scheller cd30017b97 Some fixes
Igor Scheller 781f830678 Fixes and improvements
Bot 3de0cc840f Removed spaces