Commit Graph

40 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
78f04bca50 fix(v3-vision): allow resolved integers to pass model validation during creation
Hardened root_validators in Event and Post Comment models to use Union[int, str] for Vision ID fields. This ensures that integer IDs resolved by sanitize_payload reach the database during POST/PATCH operations while maintaining clean string outputs for clients.
2026-02-05 20:30:44 -05:00
Scott Idem
12d725f468 feat(v3-standardization): implement ID Vision for Event models and update docs 2026-02-05 17:37:52 -05:00
Scott Idem
e16fbaa34b fix(api): resolve SQL unpacking crash and Event serialization errors
- Refactor SQL helpers in lib_sql_search to return empty tuples instead of False
- Add Pydantic pre-validators to Event_Base to coerce time objects to strings
- Improves API stability for Event searches and filtered lists
2026-01-20 15:49:13 -05:00
Scott Idem
ce2dc1c2dc Less debug. A few new event fields for IDAA meetings. 2025-07-14 15:29:06 -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
aade8504fa Minor fixes. Cleaned up logging and send_email test mode. 2024-10-01 15:04:12 -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
19082a7a10 Adding cfg_json and data_json fields to more models 2024-06-11 13:35:00 -04:00
Scott Idem
6691f2a701 Updating the models to include a standard passcode field. 2024-06-10 19:40:35 -04:00
Scott Idem
a1579e62c5 Updates to models and related 2024-05-24 19:05:00 -04:00
Scott Idem
cd252b9de3 New Sponsorships module. Related updates. 2024-02-08 20:25:13 -05:00
Scott Idem
a0f850cbad Update for IDAA with archive content sorting and archive configs and event configs 2024-01-25 19:12:14 -05:00
Scott Idem
645fb16cb1 Minor update to model 2023-12-31 12:28:56 -05:00
Scott Idem
d590485f50 Updates to event model and minor clean up 2023-12-05 17:24:59 -05:00
Scott Idem
bb962f1708 Update to event model to include external_person_id for IDAA and Novi integration 2023-11-15 17:08:53 -05:00
Scott Idem
a9f0e2bf3d Clean up and debugging. 2023-01-30 17:59:13 -05:00
Scott Idem
42a9bd9f32 General clean up. Work on event files and event presenters. 2022-08-12 17:29:52 -04:00
Scott Idem
f067aefdca General clean up 2022-08-12 14:06:43 -04:00
Scott Idem
5066cd099d More again again again. Moving ID random generation to the SQL db instead. General clean up. 2022-06-30 17:00:17 -04:00
Scott Idem
493f4a7365 Moving ID random generation to the SQL db instead. General clean up. 2022-06-30 15:04:19 -04:00
Scott Idem
dc585fb9bd Work on event device model and related. 2022-05-25 14:02:54 -04:00
Scott Idem
14caad33e4 Minor clean up 2022-03-31 13:48:30 -04:00
Scott Idem
59e96d7d3c Work on event meeting list end point, methods, and models 2021-12-13 15:12:54 -05:00
Scott Idem
e231090168 Code clean up. Work on event session and file counts for event models 2021-09-28 18:06:35 -04:00
Scott Idem
e0b9c975b0 Work on event related and added new create_on and updated_on forced change to UTC. 2021-09-28 15:04:09 -04:00
Scott Idem
35e9178472 Work on event patch and list, account list, and minor changes 2021-09-28 13:22:27 -04:00
Scott Idem
0f87f69077 Work on things related to event_person, tracking, badges, sessions, etc 2021-09-21 17:30:20 -04:00
Scott Idem
1bb3867463 Working on stuff 2021-08-13 17:09:32 -04:00
Scott Idem
9d1b520718 A lot of changes related to person and membership and event 2021-07-12 17:47:16 -04:00
Scott Idem
59c151f639 Working on event (meet) and related updates 2021-06-30 15:47:31 -04:00
Scott Idem
2d988fc405 Working on post and post_comment and event 2021-06-29 15:15:46 -04:00
Scott Idem
d85ab35812 Working on membership stuff 2021-06-24 17:50:11 -04:00
Scott Idem
03bb55e62a Moving stuff around to make it more easy to manage. Adding models, methods, and routes. 2021-06-11 14:07:10 -04:00
Scott Idem
4e6fedcffd Work on better way to update objects. A lot of work! Also a lot of clean up. 2021-06-10 17:42:31 -04:00
Scott Idem
627bc8c4df A lot of work on event related modules 2021-06-04 16:01:23 -04:00
Scott Idem
b1effc128a Working on event related models and methods. Also, a lot of general clean up of everything. 2021-05-28 16:03:17 -04:00
Scott Idem
443d2bab77 A lot of general clean up of everything. 2021-05-28 03:52:31 -04:00
Scott Idem
01e1d2f82a General clean up of everything. 2021-05-28 03:39:56 -04:00
Scott Idem
65fd3ebe28 Working on event_person and session proposals. Also general clean up of models and methods. 2021-05-27 16:29:27 -04:00