Fix: Finalize Event Session Search with default_qry_str support

- Explicitly added `default_qry_str` to the V3 search body for "like" searches.
- Updated `TODO.md` to reflect completion of the task.
This commit is contained in:
Scott Idem
2026-01-21 17:07:06 -05:00
parent 8fae3aa89a
commit af35124a8b
2 changed files with 6 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ This is a list of tasks to be completed before the next event/show/conference.
## Current Priorities (Jan 21, 2026)
1. **Hardening V3 Search (URGENT):**
- [ ] **Event Session Search:** Finalize and verify. Fix `event_location_name` mapping (move back to URL params).
- [x] **Event Session Search:** Finalized and verified. Added `default_qry_str` to V3 body. (Completed 2026-01-21)
- [ ] **Event Presenter Search:** Restore specialized business logic.
- [ ] **Event Badge Search:** Restore specialized business logic.
- [ ] **Exhibit Search:** Restore missing search function and logic.

View File

@@ -426,7 +426,11 @@ export async function search__event_session({
// Restore Like logic
if (like_search_qry_str || like_presentation_search_qry_str || like_presenter_search_qry_str || like_poc_name_qry_str) {
params['lk_qry'] = {};
if (like_search_qry_str) params['lk_qry']['default_qry_str'] = like_search_qry_str;
if (like_search_qry_str) {
params['lk_qry']['default_qry_str'] = like_search_qry_str;
// Also add to the explicit V3 search body for the session table specifically
search_query.and.push({ field: 'default_qry_str', op: 'like', value: `%${like_search_qry_str.trim()}%` });
}
if (like_presentation_search_qry_str) params['lk_qry']['event_presentation_li_qry_str'] = like_presentation_search_qry_str;
if (like_presenter_search_qry_str) params['lk_qry']['event_presenter_li_qry_str'] = like_presenter_search_qry_str;
if (like_poc_name_qry_str) params['lk_qry']['poc_person_full_name'] = like_poc_name_qry_str;