374 Commits

Author SHA1 Message Date
msramalho
0d51e5cd65 implements expiration policy via store_until 2025-02-08 17:29:42 +00:00
msramalho
ad6dc4db43 bugs, worker cleanup 2025-02-08 15:20:27 +00:00
msramalho
a97333c4d6 drops /sheet/archive API token endpoint 2025-02-08 15:19:16 +00:00
msramalho
5494825286 minor docker comments 2025-02-08 15:18:15 +00:00
msramalho
9a62f3ff59 WIP decoupling worker/web, cleaning worker code 2025-02-08 00:40:35 +00:00
msramalho
46a5c1a260 WAL checkpoint at startup 2025-02-07 18:21:25 +00:00
msramalho
83ba9884f6 auto remove stale sheets and email users 2025-02-07 17:57:02 +00:00
msramalho
eccd71d168 implments cronjob to do the sheet archiving 2025-02-07 16:53:33 +00:00
msramalho
fed8543c30 fix /user/active tests 2025-02-06 20:40:40 +00:00
msramalho
9af48efe22 default group should actually exist 2025-02-06 20:26:32 +00:00
msramalho
90bcd44e0a default group needs to be considered explicitly 2025-02-06 20:11:58 +00:00
msramalho
6471b08a4b adds user schemas 2025-02-06 18:58:35 +00:00
msramalho
5344cc56e7 introduces group/global usage & permissions, validates in endpoints and tests endpoints 2025-02-06 18:41:12 +00:00
msramalho
2b8c48af1b introduces user.manually_trigger_sheet and implements quotas for sheets 2025-02-04 19:08:08 +00:00
msramalho
73968eafc4 adds final tests for endpoints.url 2025-02-04 16:31:24 +00:00
msramalho
a9aae77726 adds tests to url/archive endpoint 2025-02-04 16:18:36 +00:00
msramalho
809438fbb9 introduces user.read_public drops unused endpoints 2025-02-04 15:40:20 +00:00
msramalho
7f5211f0ca improves documentation 2025-02-04 14:13:58 +00:00
msramalho
8bd7e5e590 drops /groups endpoint, no longer used 2025-02-04 14:05:59 +00:00
msramalho
1e872e8225 deprecates user.active in favor of user.permissions 2025-02-04 14:01:39 +00:00
msramalho
370ebd0c8c sqlalchemy deprecation fixed 2025-02-03 12:33:29 +00:00
msramalho
9f8d7b31f3 refactors user-groups definition and fixes tests 2025-02-03 12:33:21 +00:00
msramalho
c737368f41 disable endpoint until we find whether it is used or not 2025-01-23 14:12:12 +00:00
msramalho
f8383bc6a3 method renaming 2025-01-22 13:59:44 +00:00
msramalho
9f9bbc9344 pushing bulk of changes 2025-01-22 13:21:16 +00:00
msramalho
2209b09a9a missing tests for security 2024-11-05 11:41:07 +00:00
msramalho
46a3cbc003 renames mics -> misc 2024-11-05 10:35:31 +00:00
msramalho
66dd35db0c renaming interop file 2024-11-05 10:34:12 +00:00
msramalho
59c1be597c introduces Sheet models and auth flow 2024-11-05 10:33:44 +00:00
msramalho
f1525ef85a Merge branch 'main' into dev 2024-11-04 12:15:22 +00:00
msramalho
10306eba8a refactors user-groups setup and auth logic 2024-10-31 14:52:14 +00:00
msramalho
c8e1d441a4 fixes uvicorn factory warning 2024-10-31 10:33:34 +00:00
msramalho
00e9df0ac3 adds custom encoder 2024-10-30 15:39:06 +00:00
msramalho
2a4c6444b0 fixes bad input for limit 2024-10-29 17:24:03 +00:00
msramalho
8c658cdf52 switching from optional response_model to mandatory return type 2024-10-29 16:17:40 +00:00
msramalho
aaada7d83f users in domains are active 2024-10-29 12:57:07 +00:00
msramalho
b771f57f35 all users are inactive unless in user-groups 2024-10-29 12:44:01 +00:00
Miguel Sozinho Ramalho
2c9b94cb0b Merge pull request #48 from bellingcat/main
Merge pull request #47 from bellingcat/dev
2024-10-29 10:59:18 +00:00
Miguel Sozinho Ramalho
bd3316a2ce Merge pull request #47 from bellingcat/dev
Merge pull request #46 from bellingcat/main
2024-10-29 10:58:38 +00:00
msramalho
17105ffa66 adds new endpoint for active users 2024-10-29 10:56:44 +00:00
Miguel Sozinho Ramalho
47cb250a12 Merge pull request #46 from bellingcat/main
Merge pull request #45 from bellingcat/dev
2024-10-28 15:22:09 +00:00
Miguel Sozinho Ramalho
386722a39f Merge pull request #45 from bellingcat/dev
Merge pull request #44 from bellingcat/main v0.7.1
2024-10-28 15:20:28 +00:00
msramalho
d7fb55980b fix cache issues in tests 2024-10-28 15:17:30 +00:00
msramalho
a454eb778d ignoring script file 2024-10-28 15:05:11 +00:00
msramalho
5283b341c7 minor change to security length check 2024-10-28 15:04:40 +00:00
msramalho
8b3c4d3228 exclude more endpoints from metrics 2024-10-28 15:04:18 +00:00
msramalho
66b070bfa2 removes empty space 2024-10-28 15:02:36 +00:00
msramalho
bd3fd9f48b adds cache for db handling 2024-10-28 15:02:28 +00:00
msramalho
8dc91bbe0f fixes logic of error logging 2024-10-28 15:02:17 +00:00
msramalho
dbe3cbb3f5 version bump 2024-10-28 15:01:17 +00:00