Commit Graph

26 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
d6134e799e Refactor Event models to use Vision ID string pattern
Updated Event_Presentation_Base, Event_Location_Base, and Event_Abstract_Base (and Base_New/In) to use standardized string IDs mapped from random IDs via root_validator. Removed legacy integer ID fields and validators to ensure API responses comply with the V3 Vision standard.
2026-01-27 10:49:02 -05:00
Scott Idem
7a8648cd99 Updated external_id field naming to be more consistent. 2024-09-03 12:30:31 -04:00
Scott Idem
afe127d9fe More model property updates 2024-06-11 18:24:25 -04:00
Scott Idem
6691f2a701 Updating the models to include a standard passcode field. 2024-06-10 19:40:35 -04:00
Scott Idem
fc86d826e9 Commenting out the base_fields for *_id_random in the models 2024-05-24 15:45:43 -04:00
Scott Idem
430a155b75 General clean up. Updated event models 2023-03-21 17:55:45 -04:00
Scott Idem
b70dff8031 Minor changes 2022-10-06 00:22: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
16fca4b2f0 General clean up. Work on importing AAPOR. Work on sessions, presentations, and presenters. 2022-04-12 04:08:52 -04:00
Scott Idem
53c6c6b51c Work on event importing and related 2021-10-19 21:21:11 -04:00
Scott Idem
f98c57157b Code clean up. Better debugging 2021-09-29 17:44:51 -04: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
0f87f69077 Work on things related to event_person, tracking, badges, sessions, etc 2021-09-21 17:30:20 -04: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
6508461ae6 Working on stuff related to session proposals. Again... I think it all works now. 2021-08-26 01:23:14 -04:00
Scott Idem
13c2375727 Working on event session, presentation, and presenter create and update. 2021-08-23 16:06:49 -04:00
Scott Idem
824bdd29a2 Work on event, event_session, event_presentation, event_presenter, user, and person routes, methods, and models 2021-08-21 16:04:17 -04:00
Scott Idem
d85ab35812 Working on membership stuff 2021-06-24 17:50:11 -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
717db418f9 Work on better way to update objects. A lot of work! 2021-06-10 17:03:12 -04:00
Scott Idem
1f525f4c80 Not much work done. Holly and Michael :-( 2021-06-01 21:45:19 -04:00
Scott Idem
499e08919d Working on event related models and methods. 2021-06-01 16:09:10 -04:00
Scott Idem
734734c9dc Working on event related models and methods. Also, a lot of general clean up of everything. Need to pick back up and work on event_presentation_methods.py. 2021-05-28 17:44: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