Files
OSIT-AE-API-FastAPI/app/methods
Scott Idem 2659047d24 fix: sql_update record_id missing on Vision ID models — update path now works
All create_update_*_v4 functions for event_badge, event_person,
event_person_profile, event_presenter, and event_presentation were
calling sql_update without record_id. Vision ID models use Optional[str]
IDs with a root_validator that strips integer values, so the serialized
dict contained no id key and sql_update could not identify the row.

Fix: pass record_id=<integer_id> explicitly to sql_update in all five
functions. Also fix walrus-operator false-negative: None return from
sql_update (0 rows affected — record unchanged) is not an error and
should not abort sub-object cascade; use explicit `is False` check.

Also broadens Axonius badge_type_code mapping to substring match so
future ticket name variants still resolve correctly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-07 16:50:04 -04:00
..
2023-04-11 12:07:27 -04:00
2021-12-29 19:42:27 -05:00
2021-11-01 17:17:02 -04:00
2024-04-22 19:32:32 -04:00
2022-10-15 23:09:02 -04:00
2022-09-27 20:53:12 -04:00
2022-10-15 23:09:02 -04:00
2023-07-12 15:20:13 -04:00
2021-12-17 16:17:17 -05:00
2023-09-28 16:43:24 -04:00
2021-08-25 11:16:02 -04:00