feat(search): enhance V3 ID Vision mapping and searchable fields

- Update lib_sql_search.py to include comprehensive 'vision_fields' mapping for most core objects
- Ensure Vision Mapping only triggers for non-integer values to support backend filters
- Add clean ID names (e.g., 'event_id', 'account_id') to searchable_fields whitelists in Events, Badges, and Journal object definitions
- Resolve Concatenation typo in vision_fields list
- Improve searchability for Journal Entries by adding 'default_qry_str'
This commit is contained in:
Scott Idem
2026-01-21 19:21:52 -05:00
parent 6ca79e9a02
commit bdd1bd2ba2
4 changed files with 49 additions and 28 deletions

View File

@@ -44,6 +44,7 @@ events_general_obj_li = {
],
# V3 Search Security:
'searchable_fields': [
'account_id', 'event_id',
'event_id_random', 'account_id_random', 'event_code', 'conference',
'type', 'name', 'summary', 'description', 'format', 'timezone',
'location_text', 'status', 'enable', 'hide', 'priority', 'sort',
@@ -67,6 +68,7 @@ events_general_obj_li = {
'public_read': True,
# V3 Search Security:
'searchable_fields': [
'event_id', 'event_file_id', 'hosted_file_id',
'event_file_id_random', 'hosted_file_id_random', 'event_id_random',
'event_exhibit_id_random', 'event_location_id_random',
'event_presentation_id_random', 'event_presenter_id_random',