- Apr 24, 2022
-
-
Konrad Mohrfeldt authored
The steering API returns HTTP 400 errors for general payload and 409 errors for scheduling conflicts that we didn’t handle yet. fixes #93
-
Konrad Mohrfeldt authored
A simple b-alert list wrapper that handles the standard error format from Django REST framework.
-
Konrad Mohrfeldt authored
Views may want to display a fallback message if the translation key does not exist.
-
Konrad Mohrfeldt authored
The steering API has some deprecated attribute names that we should no longer use. These are: dstart → first_date until → last_date tstart → start_time tend → end_time byweekday → by_weekday These changes in naming have also been applied to variable names, attribute names and translatations in the dashboard code in order to avoid confusion.
-
Konrad Mohrfeldt authored
The currently prevalent API response handling is based on a callback pattern. This has at least two major drawbacks: 1. More broadly it facilitates the use of nested callbacks, which make the code harder to read and clutter stack traces. 2. Our specific callback solution does not follow the traditional node callback pattern that looks like `function (err, data) { ... }`. Instead we have `callback` and `callbackCancel`, none of which are meant to handle actual error/exception objects. The latter makes it hard to write code that is executed irrespective of the specific code path, like in a try-finally clause. In practice it’s also a violation of the separation-of-concerns design principle as it forces error handling to happen in the store function instead of the caller that is best suited to handle error states. This change attempts to facilitate a gradual migration to a Promise-based result handling by it to co-exist with the currently used callback pattern. Callers that don’t provide any callback functions are assumed to handle promises whereas callers that do provide callback functions will see no change in behaviour. This allows us to transition one API-call at a time instead of doing one large and time-consuming refactoring. refs #55
-
Konrad Mohrfeldt authored
-
Konrad Mohrfeldt authored
* replace all `var` declarations and use `const` where appropriate * strip unnecessary temporary variables * replace single character variable names * replace multiline variable declarations * simplify expressions * replace invalid uses of parseInt
-
- Apr 23, 2022
-
-
Konrad Mohrfeldt authored
-
- Apr 22, 2022
-
-
Konrad Mohrfeldt authored
-
- Jan 14, 2022
-
-
David Trattnig authored
-
David Trattnig authored
-
- Nov 25, 2021
-
-
Richard Blechinger authored
-
- Nov 18, 2021
-
-
Richard Blechinger authored
-
- Nov 11, 2021
-
-
David Trattnig authored
-
- Jul 30, 2021
-
-
Richard Blechinger authored
-
- Jul 29, 2021
-
-
David Trattnig authored
-
- Jul 23, 2021
-
-
Richard Blechinger authored
-
- May 20, 2021
-
-
Richard Blechinger authored
-
- Dec 15, 2020
-
-
Richard Blechinger authored
-
Richard Blechinger authored
-
Richard Blechinger authored
-
Richard Blechinger authored
-
Richard Blechinger authored
-
Richard Blechinger authored
-
Richard Blechinger authored
-
Richard Blechinger authored
-
- Dec 14, 2020
-
-
Richard Blechinger authored
-
- Dec 02, 2020
-
-
Richard Blechinger authored
-
Richard Blechinger authored
-
Richard Blechinger authored
-
- Nov 24, 2020
-
-
Richard Blechinger authored
-
Richard Blechinger authored
-
Richard Blechinger authored
-
Richard Blechinger authored
-
- Nov 17, 2020
-
-
Richard Blechinger authored
-
Richard Blechinger authored
-
Richard Blechinger authored
-
Richard Blechinger authored
-
- Oct 20, 2020
-
-
Richard Blechinger authored
-
Richard Blechinger authored
-