Commit Graph

438 Commits

Author SHA1 Message Date
Scott Idem
817bb80f87 ID Vision Phase 2: Standardize Page, Post, Person, Organization, and Hosted File objects 2026-01-19 18:04:17 -05:00
Scott Idem
eeb19647f5 Error Bubbling: Implement machine-readable rich error objects for CRUD operations 2026-01-19 17:01:58 -05:00
Scott Idem
7db937f8af Vision ID: Standardize Site Domain and Journal objects with string-only IDs and searchable mapping 2026-01-19 15:57:00 -05:00
Scott Idem
34a752d455 feat(api-v3): implement permissive updates, automatic ID resolution, and structured error reporting
- Added 'x-ae-ignore-extra-fields' header to support stripping unknown fields in POST/PATCH.
- Added automatic resolution of '*_id_random' strings to integer IDs in 'sanitize_payload'.
- Refactored 'post_obj' to return structured (field -> message) validation errors in 'meta.details'.
- Updated 'mk_resp' to support non-string 'details' in response metadata.
- Added 'tests/verify_feedback_fixes.py' to validate logic changes.

Ref: V3 API Refinement Feedback from mcp_agent.
2026-01-14 19:11:56 -05:00
Scott Idem
1c0922ace2 Enhance API robustness: Add model validators, view-field filtering, and test suite.
- Added validators to Person_Base, Journal_Base, Journal_Entry_Base, Address_Base, and Contact_Base to handle null values and unsafe lookups.
- Implemented 'fields_to_exclude_from_db' ClassVar in Journal models to prevent view-only fields from causing DB errors.
- Updated Contact object map to align with DB schema.
- Added comprehensive test suite in 'tests/' directory (model validation, filtering logic).
- Updated GEMINI.md with progress.
2026-01-09 15:36:28 -05:00
Scott Idem
29b4d5ae4b Fix Person creation issues and enhance V3 CRUD robustness.
- Added Pydantic validators to Person_Base to handle null values for given_name and allow_auth_key, ensuring database NOT NULL constraints are met.
- Updated api_crud_v3.py (POST and PATCH) to filter out virtual *_id_random fields from data payloads before database operations to prevent "Unknown column" errors.
- Updated GEMINI.md with session progress.
2026-01-09 14:30:45 -05:00
Scott Idem
802c75bad9 V3: Standardize Primary AE Objects and Synchronize Search Whitelists.
- Synchronized searchable_fields (V3 whitelists) across all Primary and Active AE objects (Identity, People, Events, Journals, Posts, Archives, Business).
- Standardized Pydantic models for core objects to include the 10 common fields (id, id_random, enable, hide, priority, sort, group, notes, created_on, updated_on).
- Fixed field aliases and uncommented valid database columns in User_Base and Organization_Base.
- Pruned non-existent fields from searchable lists in legacy or config-specific definitions (account_cfg, user_role, log_client_viewing).
- Added system discovery and validation tools:
    - ae_object_info.py: AE object status and metadata browser.
    - export_all_interfaces.py: E2E TypeScript interface generator.
    - Verification scripts for searchable field consistency.
- Updated Jan 8 milestone progress and platform roadmap in GEMINI.md.
2026-01-08 12:24:34 -05:00
Scott Idem
59d5b81da0 Arch: Finalize V3 Auth modularization and Unified Agent spec.
- Integrated zero-dependency Auth models and dependencies_v3.py.
- Successfully resolved circular dependency boot loops.
- Verified site_domain search exception via verify_v3_exceptions.py.
- Refined Unified Agent Architecture with Storage Layer and API-driven access details.
- Updated project roadmap and milestones in GEMINI.md.
2026-01-07 19:07:21 -05:00
Scott Idem
d584457997 fix(legacy): resolve 422 error on site domain lookup and enhance V3 filtering 2026-01-06 16:29:09 -05:00
Scott Idem
45f6303219 feat(v3): robust search wildcards, smart status filtering, and fixed ID population 2026-01-06 15:54:31 -05:00
Scott Idem
a42f32acf4 Added more documentation. Improved CRUD V3 endpoints and better responses. 2026-01-06 13:52:05 -05:00
Scott Idem
9c06b07665 Saving changes now that most things have been migrated to CRUD V3 and appear to be working. This still needs testing though. 2026-01-06 13:11:03 -05:00
Scott Idem
3790983b5e Quick update to include some more fields. 2026-01-05 19:24:17 -05:00
Scott Idem
f5ab2118ad Fix: Enhance V3 Search with 'contains', 'startswith', 'endswith' operators and improve error reporting. 2026-01-02 20:42:19 -05:00
Scott Idem
f865b1cfb7 Security: Implement modern JWT authentication for V3 CRUD and Search; update documentation and to-do list. 2026-01-02 20:26:44 -05:00
Scott Idem
bf16f988c5 Saving recommended updates by the Svelte Gemini agent. 2026-01-02 18:57:37 -05:00
Scott Idem
2f24a5588b Feature: Implement advanced POST-based search with recursive logical grouping and unique parameterization (Verified Working). 2026-01-02 17:09:29 -05:00
Scott Idem
4a62eecf83 Work after logging related fixes. 2026-01-02 15:17:43 -05:00
Scott Idem
4598256c7c Reverted to known working version and preserved new file changes in snapshots. 2025-12-03 20:43:47 -05:00
Scott Idem
17a64a719b Updates related to badges demo. 2025-10-07 03:27:19 -04:00
Scott Idem
ce2dc1c2dc Less debug. A few new event fields for IDAA meetings. 2025-07-14 15:29:06 -04:00
Scott Idem
882c740880 Finally getting rid of the old display_name fields. Trying to use full_name and full_name_override everywhere. 2025-06-16 19:22:02 -04:00
Scott Idem
b489b72ff5 More fields... related to encryption 2025-05-15 11:13:58 -04:00
Scott Idem
edcde83323 A few new fields for the Journals. Content history and track passcode used for encryption. 2025-05-05 12:16:29 -04:00
Scott Idem
8569a5de3c One more field... 2025-04-02 13:38:18 -04:00
Scott Idem
b3ce129bce Added a few more fields for Journals 2025-04-02 11:31:59 -04:00
Scott Idem
579ae9bd96 Updating the models related to Journals 2025-03-20 11:58:59 -04:00
Scott Idem
78e866492f Updates to start using the new Journals module. 2025-03-16 02:48:05 -04:00
Scott Idem
1f2046c6ad Added in some new old fields for events. This is mainly for IDAA. 2025-02-04 10:51:16 -05:00
Scott Idem
42175b89c0 Updated the hosted_file fields. 2025-01-07 19:30:06 -05:00
Scott Idem
c78afbbc5c Added new fields for posts related. Also cleaned up some of the code and logging. 2024-11-13 17:48:14 -05:00
Scott Idem
9aec3455f6 More missing fields... 2024-11-07 13:51:21 -05:00
Scott Idem
b4a058f0ca Added some missing fields... 2024-11-07 13:47:15 -05:00
Scott Idem
dcad4b70e9 Minor update to the archive content model to include more hosted file info. Specifically the hash is needed. 2024-11-06 12:29:34 -05:00
Scott Idem
e5d27a536c Updated to include standard fields. 2024-10-23 01:37:13 -04:00
Scott Idem
5499070a4f Enabled event_device for CRUD v1... Adding new fields. 2024-10-17 19:23:21 -04:00
Scott Idem
792fb153e3 New status related fields for devices. 2024-10-17 14:06:16 -04:00
Scott Idem
c1ff6737f4 Now with source_code field... 2024-10-10 13:21:10 -04:00
Scott Idem
aade8504fa Minor fixes. Cleaned up logging and send_email test mode. 2024-10-01 15:04:12 -04:00
Scott Idem
2cddc9bcd7 Made the access_code list a real field in JSON format 2024-09-16 16:14:15 -04:00
Scott Idem
40c2c34678 Adding in a new poc_agree field or sessions. Seems reasonable. 2024-09-12 20:21:34 -04:00
Scott Idem
7a8648cd99 Updated external_id field naming to be more consistent. 2024-09-03 12:30:31 -04:00
Scott Idem
93c5a188f0 Added new ux_mode field. Always one more... Removed some others and replaced with future JSON though. 2024-08-16 14:54:01 -04:00
Scott Idem
3d48220b8f Updated the event model. Now time to deal with the views... 2024-08-09 17:49:11 -04:00
Scott Idem
97f0a59fcf Updating the models and less log info 2024-08-09 17:47:33 -04:00
Scott Idem
34dfea1379 Re-enabled the validator for for_id_random value missing. Probably for the 200th time... Made some changes so that it hopefully works correctly and does not break anything. 2024-08-09 16:01:15 -04:00
Scott Idem
394c2d1d94 Update models to include file id list. 2024-08-09 15:28:18 -04:00
Scott Idem
30f3aaea27 Added more object type maps. Spelling fix in comment. 2024-08-09 14:39:20 -04:00
Scott Idem
4145f81850 Fixed some JSON fields 2024-07-24 17:46:57 -04:00
Scott Idem
8d7f18c734 Added some missing fields. 2024-07-24 17:16:03 -04:00