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

@@ -23,8 +23,9 @@ journal_obj_li = {
'id', 'account_id', 'person_id', 'user_id',
'journal_id_random', 'account_id_random', 'person_id_random', 'user_id_random',
'name', 'short_name', 'summary', 'outline',
'description', 'type_code', 'tags', 'billable', 'enable', 'hide',
'priority', 'sort', 'group', 'notes', 'created_on', 'updated_on', 'default_qry_str'
'description', 'type_code', 'tags', 'billable',
'enable', 'hide', 'priority', 'sort', 'group', 'notes',
'created_on', 'updated_on', 'default_qry_str'
],
},
'journal_entry': {
@@ -48,8 +49,8 @@ journal_obj_li = {
'journal_entry_id_random', 'journal_id_random', 'account_id_random',
'name', 'short_name',
'summary', 'content', 'type_code', 'topic_code', 'category_code',
'tags', 'location', 'billable', 'enable', 'hide', 'priority', 'sort',
'group', 'notes', 'created_on', 'updated_on'
'tags', 'location', 'billable', 'enable', 'hide', 'priority', 'enable', 'hide', 'priority', 'sort', 'group', 'notes',
'created_on', 'updated_on', 'default_qry_str'
],
},
}