Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add function param/return types, fix a lot more phpstorm complaints | Simon Rettberg | 2023-11-14 | 1 | -9/+2 |
| | |||||
* | Roundup of issues reported by PHPStorm | Simon Rettberg | 2023-11-02 | 1 | -2/+1 |
| | | | | Mostly redundant checks, logic errors, dead code, etc. | ||||
* | [locationinfo] Add types | Simon Rettberg | 2022-05-23 | 1 | -33/+20 |
| | |||||
* | Moderize Database handling | Simon Rettberg | 2021-05-11 | 1 | -2/+2 |
| | | | | | | | * Auto-convert to utf8mb4_unicode_520_ci * Use foreach instead of while to loop over results * Drop useless statement caching * Keep emulated prepares, as we sometimes loop over nested queries | ||||
* | [locationinfo] Always use cached data if backend fails | Simon Rettberg | 2020-09-11 | 1 | -10/+9 |
| | | | | | | | Previously, we'd only deliver calendar data to the panel if the cache timeout hasn't been reached yet. In case fetching fresh data from the backend fails, go ahead and deliver the old cached data, no matter how old it is. | ||||
* | [locationinfo] His: Switch from SOAP to iCal | Simon Rettberg | 2020-09-08 | 1 | -2/+14 |
| | | | | | | | | | iCal downloads are much faster in more revent HisInOne versions, while the SOAP API will make cobbling together a time table for a specific room even more complicated in the next release (2020.12). Switch to iCal for now and see how it goes. TODO: Create a generic iCal backend module based on this. | ||||
* | Fix some typos (found by codespell) | Stefan Weil | 2019-12-14 | 1 | -2/+2 |
| | | | | Signed-off-by: Stefan Weil <sw@weilnetz.de> | ||||
* | [locationinfo] Add error log for backends | Simon Rettberg | 2019-03-07 | 1 | -7/+25 |
| | |||||
* | AAAAAnd I'm retarded | Simon Rettberg | 2019-02-20 | 1 | -1/+1 |
| | |||||
* | [locationinfo] Don't refresh calendars indefinitely | Simon Rettberg | 2019-02-20 | 1 | -4/+8 |
| | | | | | | | | We try to refresh calendars that have recently been used to coalesce requests, which helps especially with HisInOne. However, this would in turn make the calendar recently refreshed so it would keep going on and on, as long as there is at least one active info panel making actual requests. | ||||
* | [locationinfo] Fix minor issues | Simon Rettberg | 2019-02-20 | 1 | -9/+24 |
| | | | | | | | - Potential race with calendar updates - Coalesqing depends on total number of locations, not just additional ones - Copypasta error in date fix function | ||||
* | [locationinfo] Suppress XML parsing error spam | Simon Rettberg | 2019-01-29 | 1 | -1/+1 |
| | | | | | | The SimpleXML constructor is quite verbose if you pass it e.g. an HTML error page instead of the expected XML. Suppress those errors, we'll do our own (more concise) logging in the exception handler. | ||||
* | [locationinfo] Fix default setting for "select" backend options | Simon Rettberg | 2018-04-05 | 1 | -1/+4 |
| | |||||
* | [locationinfo] Fix handling of invalid backends, remove dummy-backend in ↵ | Simon Rettberg | 2017-12-07 | 1 | -14/+26 |
| | | | | production | ||||
* | [locationinfo] Fix formatting of calendar starttime/endtime, remove if not ↵ | Simon Rettberg | 2017-12-05 | 1 | -4/+30 |
| | | | | | | | | possible The weekcalendar plugin chokes on badly formatted timestamps, so either fix or remove dates which don't match the expectation. Fixes #3192 | ||||
* | [locationinfo] Better error handling in hisinone backend | Simon Rettberg | 2017-07-25 | 1 | -16/+14 |
| | |||||
* | [locationinfo] Try working around messy time handling (timezones etc), CSS | Simon Rettberg | 2017-07-07 | 1 | -0/+2 |
| | | | | | | | | | | | | Webkit/Presto and Blink/Gecko (or rather the corresponding JS engine) disagree about how to handle certain date format strings wrt. time zones. This leads to nasty discrepancies of events being displayed in the calendar. (Unfortunately the students working on this project could not be convinced that properly handling time zones when dealing with time information should be considered important.) Also, some tweaks to CSS/layout have been implemented so the design isn't as messed up on old webkits that don't support flex layout. | ||||
* | [locationinfo] Generate credentials in server-settings server side | Simon Rettberg | 2017-04-21 | 1 | -0/+39 |
| | | | | | | | There's no need to generate parameters server side that get passed to the template engine which generates javascript code that generates html snippets in the browser. We now generate everything server side right away. | ||||
* | [locationinfo] Rename tables to use module name as prefix; room -> location | Simon Rettberg | 2017-04-20 | 1 | -9/+9 |
| | |||||
* | [locationinfo] CourseBackend: Rename some methods to be more descriptive | Simon Rettberg | 2017-04-19 | 1 | -6/+6 |
| | |||||
* | [locationinfo] Better backend-specific property handling, get rid of URL | Simon Rettberg | 2017-04-19 | 1 | -10/+37 |
| | | | | | | | | - The backend URL still had special treatment for legacy reasons, when it would be perfectly fine to make it just another generic property the backend has to define. - Allow for the backend to declare a default value for properties. - Base class will now check and sanitize the setCredentials() input. | ||||
* | [locationinfo] CourseBackends: Lots of bug fixes, missing error checks, ↵ | Simon Rettberg | 2017-04-19 | 1 | -72/+88 |
| | | | | | | | | | | | | | improvements: - Add more checks for returned data structures from backend, like keys in arrays - Better error messages if something goes wrong, not just "server sent wrong xml" - Make checkConnection() of davinci and hisinone not require a valid room id, which we don't have in general - hisinone: Parse data structure just once for every room - Request coalescing: Only try so if getRefreshTime() > getCacheTime() - Move toArray() to base class instead of having two copies - Sanitize variable naming conventions | ||||
* | [locationinfo] Format php files | Simon Rettberg | 2017-04-12 | 1 | -7/+15 |
| | |||||
* | Dummy Klasse kommentiert und HisInOne erlaubt zwei Semester abzufragen falls ↵ | Dirk Riestere | 2017-03-29 | 1 | -1/+1 |
| | | | | in dem Monat das Semester wechsel | ||||
* | Bug das eine HisInOne Anfrage gestartet wird obwohl kein Shedule ↵ | Dirk Riestere | 2017-03-26 | 1 | -2/+11 |
| | | | | aktualisiert werden muss ist behoben | ||||
* | Übersetzungen der Credentials eingebaut und nicht fatale errors werden nun ↵ | Dirk Riestere | 2017-03-22 | 1 | -6/+12 |
| | | | | im errorlog ausgegeben | ||||
* | XML parser ist implementiert und HisInOne kann jetzt gelesen werden | Dirk Riestere | 2017-03-20 | 1 | -17/+68 |
| | |||||
* | Codeormat verschönert für HisInOne und ein json_encode für das backend ↵ | Dirk Riestere | 2017-03-14 | 1 | -1/+1 |
| | | | | eingefügt der vergessen wurde | ||||
* | Codeormat verschönert für HisInOne und ein json_encode für das backend ↵ | Dirk Riestere | 2017-03-14 | 1 | -3/+3 |
| | | | | eingefügt der vergessen wurde | ||||
* | Fehler beim xml lesen behoben | Dirk Riestere | 2017-03-09 | 1 | -2/+5 |
| | |||||
* | setCredentials wie im Treffen besprochen geändert und fetchshedule gibt ↵ | Dirk Riestere | 2017-03-08 | 1 | -2/+3 |
| | | | | jetzt nur noch arrays zurück | ||||
* | Noch mehr exeption werden gefangen und die errors verhalten sich jetzt wie ↵ | Dirk Riestere | 2017-03-06 | 1 | -8/+15 |
| | | | | beschrieben | ||||
* | Noch mehr exeption werden gefangen und das verhalten bei errors ist ↵ | Dirk Riestere | 2017-03-05 | 1 | -0/+10 |
| | | | | vereinheitlicht | ||||
* | Bugfixes und Code verschönert | Dirk Riestere | 2017-03-02 | 1 | -90/+93 |
| | |||||
* | Bugfixes und checkConection implementiert | Dirk Riestere | 2017-03-01 | 1 | -0/+5 |
| | |||||
* | Bugfixes | Dirk Riestere | 2017-02-28 | 1 | -1/+1 |
| | |||||
* | Bugfixes | Dirk Riestere | 2017-02-28 | 1 | -6/+7 |
| | |||||
* | Bugfixes and Errorcode implementation | Dirk Riestere | 2017-02-27 | 1 | -1/+15 |
| | |||||
* | Bugfixes und Caching wie besprochen verändert | Dirk Riestere | 2017-02-24 | 1 | -2/+2 |
| | |||||
* | die klassen können jetzt ohne parameter erstellt werden, die url und die ↵ | Dirk Riestere | 2017-02-22 | 1 | -7/+4 |
| | | | | serverID wird jetzt in setCredentials gesetzt | ||||
* | fetchSchedule nimmt jetzt einen Array an und gibt mehrere Schedules zurück | Dirk Riestere | 2017-02-22 | 1 | -29/+37 |
| | |||||
* | Typos behoben, und die cretendials werden auserhalb der Klasse gesetzt | Dirk Riestere | 2017-02-21 | 1 | -7/+6 |
| | |||||
* | Die Klassen sind wie besprochen eingerichtet | Dirk Riestere | 2017-02-15 | 1 | -17/+70 |
| | |||||
* | [locationinfo] Add skeleton for pluggable course backend infrastructure | Simon Rettberg | 2017-02-08 | 1 | -0/+108 |