Commit Graph

29 Commits

Author SHA1 Message Date
Scott Idem
0f4b4d2f51 feat: Implement V3 ID Vision and fields_to_exclude_from_db across core models
This commit refactors numerous Pydantic models to align with the V3 ID Vision standard, ensuring that primary and foreign key fields are represented as clean string IDs in the API. It also introduces and populates the  ClassVar in each model to prevent view-only fields and linked objects from being inadvertently written to the database during PATCH/POST operations.

Specifically, this includes:
- Adding  to exclude view-derived or joined fields such as , , nested objects (e.g., , ), and convenience fields (e.g., ).
- Adjusting root validators to correctly map string IDs and strip internal integer IDs for API responses.
- Resolving a KeyError by adding  to .

These changes are crucial for maintaining data integrity and consistency with the V3 API architecture.
2026-02-24 16:21:27 -05:00
Scott Idem
d5e685dee8 fix(v3-vision): strict integer stripping and demo parity verification
1. Hardened all demo models to set non-string ID fields to None, ensuring full Vision Standard compliance.\n2. Added status_id_random to common field schema.\n3. Verified account_id availability in exhibit tracking.\n4. Added comprehensive E2E parity test suite for demo objects.\n5. Fixed NameError by importing root_validator.
2026-02-06 16:16:08 -05:00
Scott Idem
0811738b98 Fix KeyError: Added missing 'grant_id_random' to common_field_schema.py 2026-01-27 11:12:35 -05:00
Scott Idem
cd252b9de3 New Sponsorships module. Related updates. 2024-02-08 20:25:13 -05:00
Scott Idem
90d7619966 Added new route, methods, and models for data_store. Also minor code clean up and less debug. 2022-03-11 17:12:55 -05:00
Scott Idem
57b3b358ad Work on event person tracking for exhibitors 2022-02-14 17:27:26 -05:00
Scott Idem
8953fc32d8 Code clean up. Membership tables, views, routes, methods, and models renamed. 2022-01-11 14:12:51 -05:00
Scott Idem
b22a84f054 Adding activity_log routes, methods, and models. 2021-12-10 21:51:41 -05:00
Scott Idem
15fd32b252 Work on a lot of things. Mainly cleaning up person and profile related fields in multiple tables. 2021-09-10 18:12:24 -04:00
Scott Idem
29d3ed38cb Work on event and person related 2021-09-09 13:47:02 -04:00
Scott Idem
54a43cc124 Work on person methods and related and event badge everything 2021-09-08 15:58:35 -04:00
Scott Idem
84aecddc7c Work on session proposals and related event person profile. 2021-09-07 18:49:21 -04:00
Scott Idem
1dba813d4b Work on hosted files and archive content and related bug fixes. 2021-08-08 15:47:32 -04:00
Scott Idem
e43cf35ec4 Working on continuing education certs 2021-07-28 12:33:07 -04:00
Scott Idem
49805f48c9 A lot of changes related to person and membership 2021-07-09 17:34:02 -04:00
Scott Idem
a494a9ca68 Added logging for client viewing 2021-07-02 12:11:12 -04:00
Scott Idem
728682a07f Working on membership module routes, methods, and models 2021-06-21 17:53:04 -04:00
Scott Idem
c17724cea1 Work on lots of methods and models. 2021-06-17 16:54:46 -04:00
Scott Idem
19bba3d8a9 Work on better way to update objects. A lot of work! Also a lot of clean up. 2021-06-10 18:31:53 -04:00
Scott Idem
627bc8c4df A lot of work on event related modules 2021-06-04 16:01:23 -04:00
Scott Idem
486236f0a8 Working on event_person and session proposals. Also general clean up of models and methods. 2021-05-27 23:10:53 -04:00
Scott Idem
8f6589cf1c Working on event_person and session proposals 2021-05-26 17:42:18 -04:00
Scott Idem
c94b2fb2e7 Working on Journals module and using React with Axios. 2021-05-19 18:05:41 -04:00
Scott Idem
bccb8370af Working finally getting this to interact with the actual front end. 2021-03-15 20:08:28 +00:00
Scott Idem
143e099e13 Working on clean up of some code... logging and pydantic field config. 2021-03-11 14:19:17 -05:00
Scott Idem
09f5098b39 Working on individual modules 2021-03-10 15:56:59 -05:00
Scott Idem
8a47572677 Clean up some of the models and debug 2021-03-08 18:22:12 -05:00
Scott Idem
4f4cd0c985 Adding lots of models 2021-03-08 17:21:05 -05:00
Scott Idem
3d5fafc4bf Working on the basic SQL select API CRUD and lots of models 2021-03-08 15:53:39 -05:00