Commit Graph

17 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
bb26eac2a7 Sort of bug fix for abstracts and updating the abstract code 2023-09-22 10:30:07 -04:00
Scott Idem
766c0f99d5 Work on abstracts 2023-09-22 10:02:06 -04:00
Scott Idem
815e9a45b4 Updates related to abstracts 2023-06-28 12:22:08 -04:00
Scott Idem
5b4af4bb34 More work on abstract submissions and related grants 2023-06-26 14:52:31 -04:00
Scott Idem
702357910a Work on abstract submissions and related grants 2023-06-23 17:48:31 -04:00
Scott Idem
cec7ecc88f Work on abstracts 2023-05-22 18:18:46 -04:00
Scott Idem
0375bd8c05 Improve data store record retrieval. 2023-05-22 13:41:30 -04:00
Scott Idem
916cca1d73 Work on abstracts. 2023-05-05 17:29:02 -04:00
Scott Idem
224aaed969 General clean up. Work on abstracts and websockets 2023-03-23 19:12:13 -04:00
Scott Idem
df26128ce4 General clean up. Workon event abstracts. 2023-03-20 19:39:41 -04:00
Scott Idem
02fa7225ac Updating event abstracts related. 2023-03-20 15:29:08 -04:00
Scott Idem
511f420555 More again again again again. Moving ID random generation to the SQL db instead. General clean up. 2022-06-30 17:34:47 -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
499e08919d Working on event related models and methods. 2021-06-01 16:09:10 -04:00