Commit Graph

25 Commits

Author SHA1 Message Date
Scott Idem
c837d465ca chore: remove temporary debug logging from event_badge_methods
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-07 17:10:39 -04:00
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
Scott Idem
7d51376cb5 General clean up. Less debug. 2023-07-12 15:20:13 -04:00
0ad9a0f56f Fix for Impexium API import adjustments 2023-04-19 17:07:01 -04:00
Scott Idem
461d547c09 Work on exhibit tracking export and API badge ID lookup 2023-03-07 19:01:45 -05:00
Scott Idem
41470c277f Work on ISHLT Impexium importing 2023-02-16 16:04:38 -05:00
Scott Idem
8fa438336f Modified badge list method 2022-07-08 10:00:18 -04:00
Scott Idem
cb2f8b05f0 Changed sorting for NPA 2022-07-06 20:55:48 -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
9376388f90 Updated badge rec list method ORDER BY 2022-06-27 13:30:29 -04:00
Scott Idem
728fcc05cc Updated badge template and related badge endpoints and methods 2022-06-23 17:06:06 -04:00
f9d2eddeb5 No more BCC! for real 2022-04-25 22:41:29 -04:00
5ad1d23981 No more BCC! 2022-04-25 11:46:51 -04:00
f2e31cf6ad No more BCC! 2022-04-25 11:45:29 -04:00
Scott Idem
2fb5acd485 Work on ISHLT related 2022-04-16 14:01:06 -04:00
Scott Idem
a2e5f804d6 Work on ISHLT Impexium importing 2022-04-15 18:25:06 -04:00
Scott Idem
f15179fb02 Work on Impexium import speed 2022-04-11 21:01:29 -04:00
Scott Idem
877a4e1758 Improved create event exhibit tracking log entries 2022-04-08 14:20:44 -04:00
Scott Idem
c625cda845 More improvement to Impexium API calls. Should be faster and more robust now. 2022-03-23 15:38:53 -04:00
Scott Idem
4607ef5c0f Work on badge template and related 2022-03-14 15:45:22 -04:00
Scott Idem
bca7defb4c Mostly working on event device model, methods, and routes. Also general clean up of code. 2022-03-09 13:43:47 -05:00
Scott Idem
18d8b73eb3 Work on Impexium, exhibit, and badge related 2022-02-23 18:34:21 -05:00
Scott Idem
39db1999fb Code clean up. Working on returning proper 404 vs 400 responses if the results are empty and nothing went wrong. 2021-12-13 18:55:31 -05:00
Scott Idem
6536257042 Minor updates to badge related 2021-09-14 19:36:36 -04:00
Scott Idem
ad9417911a Working on event registration and related. 2021-08-17 20:53:01 -04:00