e88cc004dd
Implement versioning in metadata, outside of the DB itself. Cleanup to migration handling and changes. Implement new migration step using msgspec normalization.
LeoVasanko2026-01-28 20:21:09 +00:00
76921e8b31
Add migrate:msgspec for changes in schema that don't require version bump. Rename the other migrations to migrate:sql and migrate:v{N}.
LeoVasanko2026-01-28 19:24:15 +00:00
d16d1ed1c2
Make database changes outside of transaction a fatal error. Fix bootstrap and migrate to work with various latest changes.
LeoVasanko2026-01-28 19:04:00 +00:00
2cfca81672
Fix a bug with validate returning 401 when a session was refreshed. Simplify & cleanup.
LeoVasanko2026-01-28 18:45:02 +00:00
ce300ebdaf
API to use msgspec structs as well.
LeoVasanko2026-01-28 18:31:45 +00:00
7329223784
Implement full ORM. Various other cleanup.
LeoVasanko2026-01-28 17:19:56 +00:00
c8d659b5ca
Move get_session_context to DB.session_ctx().
LeoVasanko2026-01-28 14:52:18 +00:00
29ea6426fe
Problem solved, remove extraneous migration, reset to v1.
v0.9.0
LeoVasanko2026-01-28 02:29:53 +00:00
d3d5f5a3c8
Remove get_session_context setting of host (now read only op as expected). Make session host, ip and user_agent always set (the ua potentially empty string).
LeoVasanko2026-01-28 02:14:34 +00:00
1062b5d6c8
Fix background task still running twice, and add a check to prevent that happening again (double expiry).
LeoVasanko2026-01-27 23:51:13 +00:00
3d49cbf2d6
Disable API docs that display very much broken due to missing request/response typing.
LeoVasanko2026-01-27 23:27:42 +00:00
13c49aebfd
Remove unnecessary use of async now that db access doesn't need awaiting.
LeoVasanko2026-01-27 23:16:17 +00:00
9b505ff553
DB background worker cleanup, avoid issue with double cleanup. Faster write to disk.
LeoVasanko2026-01-27 22:21:33 +00:00
ddd70e6130
Cleaner typing to avoid some checking errors.
LeoVasanko2026-01-27 22:04:14 +00:00
cf1124c251
DB transactions cleanup, better actor/user data. Simplified admin API. Use UUID to refer to a specific permission in admin API. Other cleanup.
LeoVasanko2026-01-27 21:48:21 +00:00
e8247a2c7f
Remove most remaining DB getters. Add ws auth chat helper function to avoid repetition, along with the existing register chat in wschat.py.
LeoVasanko2026-01-27 20:01:17 +00:00
6aa1a08e39
Remove list_sessions_for_user, inline db access at call sites.
LeoVasanko2026-01-27 18:25:29 +00:00
31f40d874c
DB cleanup: removed get_permission_organizations and build_org. Using db.data() for read access at call sites.
LeoVasanko2026-01-27 18:23:17 +00:00
7530d7a710
DB cleanup continued: Made the working copy data public in DB class.
LeoVasanko2026-01-27 18:02:16 +00:00
90d5f0e45f
Remove runtime expiry checks; the db background cleanup makes this unnecessary.
LeoVasanko2026-01-27 16:55:07 +00:00
f0d1b86d6b
Database cleanup continues, build functions replaced by post init. Simplified some APIs.
LeoVasanko2026-01-27 16:53:13 +00:00
dbdd1dbd3c
Missing import in migrate script.
LeoVasanko2026-01-27 16:26:48 +00:00
8f862fb4d1
Consistently use UUID type in APIs instead of UUID str as option.
LeoVasanko2026-01-27 16:24:02 +00:00
cfb917da46
DB getter refactoring. Documented call sites. Added separate function for by-scope permission lookup.
LeoVasanko2026-01-27 15:54:28 +00:00
3a8e7d1f4f
Remove credentials: 'include', a mechanism that we don't actually use.
LeoVasanko2026-01-27 15:23:19 +00:00
86966526c4
Finalize database API class merge.
LeoVasanko2026-01-27 03:00:18 +00:00
3196aa7688
Refactor API to match database, no _uuid postfixes.
LeoVasanko2026-01-27 02:32:46 +00:00
2fadaea19c
Update E2E tests with changes since a while back.
LeoVasanko2026-01-27 02:24:09 +00:00
cb84a81a06
Update the API to use new naming matching database.
LeoVasanko2026-01-27 02:22:29 +00:00
9bdca1f43a
Finish the database key-in-object refactoring.
LeoVasanko2026-01-27 02:11:09 +00:00
0f29544bdb
Database cleanup, better UUID passing and construction (User model).
LeoVasanko2026-01-27 01:25:52 +00:00
4ddaa9fdf4
Cleanup and bugfixes on Bootstrap and JSONL handling.
LeoVasanko2026-01-26 23:54:03 +00:00
7e568dbd10
Refactor validate endpoint to return session context, leaving user-info only for extra profile data. Completely separate token-info for reset tokens. Simplified by reusing same data structures in various places and mandating fields to have values not needing fallbacks. Implemented consistent AccessDenied view in profile and admin apps.
LeoVasanko2026-01-26 19:40:48 +00:00
8d68e5d237
Add missing set_session_host on dunder all.
LeoVasanko2026-01-25 03:17:32 +00:00
5ee7443801
Use fastapi-vue-setup, merging its template scripts to old Paskia entry point and devserver. Simplified CLI, no longer uses serve subcommand. Fixed the URL displayed on banner to show to actual frontend/caddy server even in devmode.
LeoVasanko2026-01-25 03:15:50 +00:00
aae33e60ce
Fix errors where permission scopes were still expected for indexing.
LeoVasanko2026-01-24 00:58:18 +00:00
cebef8adfc
Large refactoring for better JSONL context. Switched back the urlsafe for session tokens that need to be passed in URLs. Other minor fixes.
LeoVasanko2026-01-24 00:40:32 +00:00
57a9c60557
Don't load existing JSONL on migrate.
LeoVasanko2026-01-24 00:08:21 +00:00
a9ef20969e
Refer permissions by UUID rather than scope.
LeoVasanko2026-01-24 00:06:08 +00:00
b7ebe68665
Refactor to use UUID and bytes rather than str keys in msgspec structs because the module can automatically convert these.
LeoVasanko2026-01-23 18:47:56 +00:00
f9d23a196c
Database refactor to separate modules.
LeoVasanko2026-01-23 18:27:12 +00:00
2c6a5c72d9
Updated database to use async background worker, making changes lock-free synchronous ops.
LeoVasanko2026-01-23 15:57:16 +00:00
c13044c085
Change PUT to PATCH for intent-based updates, avoiding override of fields not intended to change. This preserves role permissions matrix even if the permission is temporarily removed from the org.
LeoVasanko2026-01-23 15:41:23 +00:00
2c783498a4
Better handling of Org Admin permission. More guardrails for Master Admin not locking himself out by changes. Admin app UI improvements.
LeoVasanko2026-01-23 15:11:01 +00:00
3430c7f0cf
Permissions refactor. Permissions have UUID and scope (previously id) and the latter no longer needs to be unique. Org admin uses a single global permission now. Domain scoped permissions. Removed from user info the admin fields, use effective_permission checks instead.
LeoVasanko2026-01-23 13:54:31 +00:00
236d52aa55
Replace session.renewed with .expiry for consistency with other expiring items. Fix migration script.
LeoVasanko2026-01-23 01:39:59 +00:00
02e04da2c4
Database cleanup: make it synchronous because we work with in-memory data. Defer writes to disk and cleanup to background task. Tests passing.
LeoVasanko2026-01-23 01:22:47 +00:00
7f3763b46d
Replace SQL database with JSONL based solution that keeps history.
LeoVasanko2026-01-23 00:54:37 +00:00
8992cff473
Fix dialog patterns in admin app: dialog must close before doing API calls to avoid conflict with authentication dialogs.
v0.7.0
LeoVasanko2025-12-10 20:42:12 +00:00