Commit Graph

30 Commits

Author SHA1 Message Date
msramalho
ca7e862855 refactor to use pydantic settings and WAL sqlite mode 2024-10-18 11:08:51 +01:00
msramalho
3432d35af6 isolating api methods, introducing first tests 2024-10-17 11:27:35 +01:00
msramalho
3e91369f65 log message 2024-06-12 12:31:10 +01:00
msramalho
17b3a40e4c improve observability 2024-03-11 14:57:08 +00:00
msramalho
48109c53aa error logs updated 2024-02-29 13:30:21 +00:00
msramalho
f602b3d60c version bump 2024-02-23 18:09:22 +00:00
msramalho
3599ab2c19 dependency updates 2023-12-13 19:06:02 +00:00
msramalho
496a3651e5 detecting already inserted entries 2023-12-13 14:59:51 +00:00
msramalho
74f93ef856 catch cached inserts 2023-12-13 14:28:28 +00:00
msramalho
b92b8e3f8a auto-archiver dep update 2023-12-13 11:51:23 +00:00
msramalho
3d4d7979a5 fixes data leak 2023-12-12 22:24:36 +00:00
msramalho
6874d123eb adds logic to test if archive is needed, if specified by the user 2023-12-12 19:14:10 +00:00
Lilia Kai
f20dd05928 Refactor get_status and create_archive_task error handling
Raise exceptions instead of returning error messages from the worker in
create_arvive_task. This ensures consistency in how the errors are
presented on the task result: the Exception will be the result instead
of *maybe* being wrapped in an object like {error: Exception}.

This lets us simplify error handling in get_status so we have only one
try/except block where the error can be returned to the client.
2023-09-20 11:43:55 +02:00
Lilia Kai
00201770ba Create archive task returns dict instead of string
This will save the task result in redis as a json object instead of a
json-encoded string. This makes for a nicer response from get_status and
prevents the client having to parse a json string to work with the
result.
2023-09-20 11:43:55 +02:00
Lilia Kai
3b46554aa1 Fix get_user_first_group for user with no groups
If the email is defined in user-groups.yaml but has no groups, groups is
assigned None and len(groups) throws an exception.

Intuitively, one would expect groups to default to [] rather than None
because [] is passed as the second argument to Dictionary.get, but this
default only applies if the key is not found in the dictionary. In this
case the key is defined but has a value of None.
2023-08-31 20:56:48 +02:00
msramalho
344cc8d2bd fix: group permissions 2023-07-11 15:42:44 +01:00
msramalho
ced06e3a45 fixes submit parsing 2023-05-25 13:35:59 +01:00
msramalho
66e81d48eb feat: process thumbnails and insert missing users 2023-05-25 11:50:38 +01:00
msramalho
d79fe0a27c feat: submit-url endpoint ready 2023-05-24 19:05:44 +01:00
msramalho
9062420244 feat: /sheet endpoint and new security protocol 2023-05-23 20:20:28 +01:00
msramalho
36ede720cb sheet processing implemented 2023-05-19 13:50:26 +01:00
msramalho
d6aaaf1e12 WIP: code working, dependency conflict 2023-05-18 18:36:33 +01:00
msramalho
4119387feb new api mvp 2023-04-26 23:40:42 +01:00
msramalho
a400443dc0 task retries 2023-03-10 11:00:02 +00:00
msramalho
39da4e4eb7 0.1.5 2023-02-27 12:00:38 +01:00
msramalho
3ef4787313 API updates 2023-02-26 20:22:20 +01:00
msramalho
f3d8c999fc docker updates 2023-02-24 17:09:32 +01:00
msramalho
f6b116554f auth from extension 2023-02-24 15:39:11 +01:00
msramalho
75e98f5f31 fastapi-users 2023-02-23 18:54:19 +01:00
msramalho
c6b39db295 MVP celery worker for auto-archiver 2023-02-21 14:11:32 +00:00