Commit Graph

  • 63eb088dbd Cleanup LeoVasanko 2026-01-28 20:31:33 +00:00
  • e88cc004dd Implement versioning in metadata, outside of the DB itself. Cleanup to migration handling and changes. Implement new migration step using msgspec normalization. LeoVasanko 2026-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}. LeoVasanko 2026-01-28 19:24:15 +00:00
  • c1b0aab296 Cleanup LeoVasanko 2026-01-28 19:17:24 +00:00
  • 8f89bb6d4b Modules missing git add LeoVasanko 2026-01-28 19:04:18 +00:00
  • d16d1ed1c2 Make database changes outside of transaction a fatal error. Fix bootstrap and migrate to work with various latest changes. LeoVasanko 2026-01-28 19:04:00 +00:00
  • 2cfca81672 Fix a bug with validate returning 401 when a session was refreshed. Simplify & cleanup. LeoVasanko 2026-01-28 18:45:02 +00:00
  • ce300ebdaf API to use msgspec structs as well. LeoVasanko 2026-01-28 18:31:45 +00:00
  • 7329223784 Implement full ORM. Various other cleanup. LeoVasanko 2026-01-28 17:19:56 +00:00
  • c8d659b5ca Move get_session_context to DB.session_ctx(). LeoVasanko 2026-01-28 14:52:18 +00:00
  • 29ea6426fe Problem solved, remove extraneous migration, reset to v1. v0.9.0 LeoVasanko 2026-01-28 02:29:53 +00:00
  • 88a170a37b Debug DB problem LeoVasanko 2026-01-28 02:27:26 +00:00
  • 38d240d86d Credential update was being done out of transaction, now part of login. LeoVasanko 2026-01-28 02:22:47 +00:00
  • 53362b8061 Debug DB problem LeoVasanko 2026-01-28 02:19:54 +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). LeoVasanko 2026-01-28 02:14:34 +00:00
  • d156fb9221 Fix migration logic. LeoVasanko 2026-01-28 02:02:18 +00:00
  • f868bc59d1 Fix migration logic. LeoVasanko 2026-01-28 01:58:36 +00:00
  • 0022986d4e Implement migration to remove created_at timestamp from Orgs that already has one, bumping db v1. LeoVasanko 2026-01-28 01:52:33 +00:00
  • b08cca754f Remove Org.created_at to maintain compatibility with old versions (the field was not being used). LeoVasanko 2026-01-28 01:31:35 +00:00
  • aa58f08bc5 Hardened PATCH handling (only allow updating select fields). Hardened DB transactions, rollback. LeoVasanko 2026-01-28 01:13:05 +00:00
  • 1062b5d6c8 Fix background task still running twice, and add a check to prevent that happening again (double expiry). LeoVasanko 2026-01-27 23:51:13 +00:00
  • 3d49cbf2d6 Disable API docs that display very much broken due to missing request/response typing. LeoVasanko 2026-01-27 23:27:42 +00:00
  • 13c49aebfd Remove unnecessary use of async now that db access doesn't need awaiting. LeoVasanko 2026-01-27 23:16:17 +00:00
  • abec77d561 Broken import LeoVasanko 2026-01-27 22:46:49 +00:00
  • 9b505ff553 DB background worker cleanup, avoid issue with double cleanup. Faster write to disk. LeoVasanko 2026-01-27 22:21:33 +00:00
  • ddd70e6130 Cleaner typing to avoid some checking errors. LeoVasanko 2026-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. LeoVasanko 2026-01-27 21:48:21 +00:00
  • 7504aaf7e0 Move imports to top of file. LeoVasanko 2026-01-27 20:16:32 +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. LeoVasanko 2026-01-27 20:01:17 +00:00
  • 968964c4c9 Remove db.get_session. LeoVasanko 2026-01-27 18:28:32 +00:00
  • 6aa1a08e39 Remove list_sessions_for_user, inline db access at call sites. LeoVasanko 2026-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. LeoVasanko 2026-01-27 18:23:17 +00:00
  • 7530d7a710 DB cleanup continued: Made the working copy data public in DB class. LeoVasanko 2026-01-27 18:02:16 +00:00
  • 90d5f0e45f Remove runtime expiry checks; the db background cleanup makes this unnecessary. LeoVasanko 2026-01-27 16:55:07 +00:00
  • f0d1b86d6b Database cleanup continues, build functions replaced by post init. Simplified some APIs. LeoVasanko 2026-01-27 16:53:13 +00:00
  • dbdd1dbd3c Missing import in migrate script. LeoVasanko 2026-01-27 16:26:48 +00:00
  • 8f862fb4d1 Consistently use UUID type in APIs instead of UUID str as option. LeoVasanko 2026-01-27 16:24:02 +00:00
  • cfb917da46 DB getter refactoring. Documented call sites. Added separate function for by-scope permission lookup. LeoVasanko 2026-01-27 15:54:28 +00:00
  • 3a8e7d1f4f Remove credentials: 'include', a mechanism that we don't actually use. LeoVasanko 2026-01-27 15:23:19 +00:00
  • 86966526c4 Finalize database API class merge. LeoVasanko 2026-01-27 03:00:18 +00:00
  • 3196aa7688 Refactor API to match database, no _uuid postfixes. LeoVasanko 2026-01-27 02:32:46 +00:00
  • 2fadaea19c Update E2E tests with changes since a while back. LeoVasanko 2026-01-27 02:24:09 +00:00
  • cb84a81a06 Update the API to use new naming matching database. LeoVasanko 2026-01-27 02:22:29 +00:00
  • 9bdca1f43a Finish the database key-in-object refactoring. LeoVasanko 2026-01-27 02:11:09 +00:00
  • 0f29544bdb Database cleanup, better UUID passing and construction (User model). LeoVasanko 2026-01-27 01:25:52 +00:00
  • 4ddaa9fdf4 Cleanup and bugfixes on Bootstrap and JSONL handling. LeoVasanko 2026-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. LeoVasanko 2026-01-26 19:40:48 +00:00
  • fbc6108b7a Fix frontend-build location. Cleanup. v0.8.2 LeoVasanko 2026-01-25 03:26:22 +00:00
  • 6e649f1f07 Fix test expected HTTP code. v0.8.1 LeoVasanko 2026-01-25 03:20:28 +00:00
  • 8d68e5d237 Add missing set_session_host on dunder all. LeoVasanko 2026-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. LeoVasanko 2026-01-25 03:15:50 +00:00
  • 2100a7e14f Logging cleanup, linter. v0.8.0 LeoVasanko 2026-01-24 01:08:00 +00:00
  • aae33e60ce Fix errors where permission scopes were still expected for indexing. LeoVasanko 2026-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. LeoVasanko 2026-01-24 00:40:32 +00:00
  • 57a9c60557 Don't load existing JSONL on migrate. LeoVasanko 2026-01-24 00:08:21 +00:00
  • a9ef20969e Refer permissions by UUID rather than scope. LeoVasanko 2026-01-24 00:06:08 +00:00
  • 57748876cb Debug JSONL updates. LeoVasanko 2026-01-23 23:49:11 +00:00
  • ba552e24cd Debug JSONL updates. LeoVasanko 2026-01-23 23:41:47 +00:00
  • dbe4149b63 Debug JSONL updates. LeoVasanko 2026-01-23 23:35:00 +00:00
  • 3d5f82c3df Debug JSONL updates. LeoVasanko 2026-01-23 23:29:47 +00:00
  • 2a005692ee Fixes to JSONL management, starting from empty state rather than default DB. LeoVasanko 2026-01-23 21:31:54 +00:00
  • 2ec6314264 Simplify session and reset token formats; removes the token utility functions entirely. LeoVasanko 2026-01-23 20:53:03 +00:00
  • ae4c982a30 Fix actor fields and transactions for API operations as they are recorded to DB. LeoVasanko 2026-01-23 20:19:33 +00:00
  • c2933d60c2 Update migrate script with the latest database changes. LeoVasanko 2026-01-23 19:56:44 +00:00
  • d4ebc1bf99 Record user UUID as actor for API access. LeoVasanko 2026-01-23 19:55:54 +00:00
  • 0f857ffb78 Cleanup, add database versioning. LeoVasanko 2026-01-23 19:22:23 +00:00
  • b7ebe68665 Refactor to use UUID and bytes rather than str keys in msgspec structs because the module can automatically convert these. LeoVasanko 2026-01-23 18:47:56 +00:00
  • f9d23a196c Database refactor to separate modules. LeoVasanko 2026-01-23 18:27:12 +00:00
  • 2c6a5c72d9 Updated database to use async background worker, making changes lock-free synchronous ops. LeoVasanko 2026-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. LeoVasanko 2026-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. LeoVasanko 2026-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. LeoVasanko 2026-01-23 13:54:31 +00:00
  • 236d52aa55 Replace session.renewed with .expiry for consistency with other expiring items. Fix migration script. LeoVasanko 2026-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. LeoVasanko 2026-01-23 01:22:47 +00:00
  • 7f3763b46d Replace SQL database with JSONL based solution that keeps history. LeoVasanko 2026-01-23 00:54:37 +00:00
  • 0fe55b2b62 Update docs/Caddy.md LeoVasanko 2025-12-19 22:53:10 +00:00
  • ccf71bf0a3 Docs updates. LeoVasanko 2025-12-19 21:09:56 +00:00
  • cdaeecb179 Docs updates. LeoVasanko 2025-12-19 21:08:40 +00:00
  • 82cdee51e4 Docs updates. LeoVasanko 2025-12-19 21:07:20 +00:00
  • 851e0793a6 Docs updates. LeoVasanko 2025-12-19 21:06:27 +00:00
  • cd681a0599 Docs updates. LeoVasanko 2025-12-19 21:01:05 +00:00
  • 71cb01cfda Docs updates. LeoVasanko 2025-12-19 21:00:16 +00:00
  • 535ac8558d Docs updates. LeoVasanko 2025-12-19 20:59:16 +00:00
  • c64554aeda Docs updates. LeoVasanko 2025-12-19 20:56:47 +00:00
  • 0bc1bae26c Docs updates. LeoVasanko 2025-12-19 20:54:44 +00:00
  • 156231b142 Docs updates. LeoVasanko 2025-12-19 20:52:38 +00:00
  • daf397b3b5 Docs updates. LeoVasanko 2025-12-19 20:38:49 +00:00
  • a1a5ad8520 Docs updates. LeoVasanko 2025-12-19 20:37:25 +00:00
  • d25124d30b Docs updates. LeoVasanko 2025-12-19 20:23:49 +00:00
  • 0bfb035f76 Docs updates. LeoVasanko 2025-12-19 18:34:12 +00:00
  • 000501b718 Add missing max-age argument to validate endpoint. LeoVasanko 2025-12-19 18:34:01 +00:00
  • 5a57e78814 Docs updates. LeoVasanko 2025-12-19 18:17:28 +00:00
  • e5b84dd28c Docs updates. LeoVasanko 2025-12-19 17:34:09 +00:00
  • 4b01fd9e7a Docs updates. LeoVasanko 2025-12-19 17:28:54 +00:00
  • 431c48f1dd Docs updates. LeoVasanko 2025-12-19 16:06:51 +00:00
  • 03c966919f README formatting and links. LeoVasanko 2025-12-19 14:59:22 +00:00
  • 2795b1061f Info fields for PyPI v0.7.2 LeoVasanko 2025-12-18 14:13:05 +00:00
  • 9230344eb5 Remove layout max width. v0.7.1 LeoVasanko 2025-12-10 20:53:59 +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 LeoVasanko 2025-12-10 20:42:12 +00:00
  • 1e91b84d3d Cleanup on Admin app, better delete confirmations. LeoVasanko 2025-12-10 20:16:57 +00:00