Even more less debug
This commit is contained in:
@@ -177,13 +177,13 @@ $effect(() => {
|
||||
let tmp_li = []; // This is to prevent the array from constantly updating and triggering the liveQuery.
|
||||
if ($events_slct.event_session_obj_li && $events_slct.event_session_obj_li.length) {
|
||||
event_session_id_random_li = [];
|
||||
console.log(`TEST SEARCH - Get ids:`, $events_slct.event_session_obj_li);
|
||||
// console.log(`TEST SEARCH - Get ids:`, $events_slct.event_session_obj_li);
|
||||
for (let i = 0; i < $events_slct.event_session_obj_li.length; i++) {
|
||||
tmp_li.push($events_slct.event_session_obj_li[i].event_session_id_random);
|
||||
}
|
||||
}
|
||||
event_session_id_random_li = tmp_li;
|
||||
console.log(`TEST search: event_session_id_random_li`, $state.snapshot(event_session_id_random_li));
|
||||
// console.log(`TEST search: event_session_id_random_li`, $state.snapshot(event_session_id_random_li));
|
||||
}
|
||||
});
|
||||
|
||||
@@ -194,14 +194,9 @@ function process_search_string(search_str: string) {
|
||||
}
|
||||
|
||||
if (search_str?.length) {
|
||||
console.log(`*** Search string length: ${search_str.length} ***`);
|
||||
// $events_slct.event_session_obj_li = [];
|
||||
// $events_sess.pres_mgmt.fulltext_search_qry_str = '';
|
||||
// console.log(`*** Search string length: ${search_str.length} ***`);
|
||||
} else {
|
||||
console.log(`*** Search string is empty ***`);
|
||||
// $events_slct.event_session_obj_li = [];
|
||||
// event_session_id_random_li = [];
|
||||
// return false;
|
||||
// console.log(`*** Search string is empty ***`);
|
||||
}
|
||||
|
||||
// let type_code = $events_sess.pres_mgmt.search_badge_type_code;
|
||||
@@ -225,7 +220,12 @@ function process_search_string(search_str: string) {
|
||||
lk_search_str_new = `%${lk_search_str_new}%`;
|
||||
}
|
||||
|
||||
console.log(`"${search_str}"`);
|
||||
if (log_lvl) {
|
||||
// console.log(`*** Search method: ${search_method} ***`);
|
||||
console.log(`*** Search string: ${search_str} ***`);
|
||||
// console.log(`*** Fulltext search string: ${ft_search_str_new} ***`);
|
||||
// console.log(`*** Like search string: ${lk_search_str_new} ***`);
|
||||
}
|
||||
|
||||
let location_name = '';
|
||||
if ($events_sess.pres_mgmt.location_name_qry_str?.length) {
|
||||
@@ -280,7 +280,7 @@ async function handle_search__event_session(
|
||||
}
|
||||
|
||||
if ($events_sess.pres_mgmt?.status_qry__search != null && $events_sess.pres_mgmt?.status_qry__search != 'done') {
|
||||
console.log('*** TEST SEARCH - $events_sess.pres_mgmt.status_qry__search != done ***');
|
||||
// console.log('*** TEST SEARCH - $events_sess.pres_mgmt.status_qry__search != done ***');
|
||||
// WARNING: This is a temporary fix for the search string. It needs to be fixed in the future. Using lk_search_str for now.
|
||||
$events_sess.pres_mgmt.status_qry__last_request_str = lk_search_str;
|
||||
|
||||
@@ -308,7 +308,7 @@ async function handle_search__event_session(
|
||||
console.log(`*** TEST SEARCH - $events_sess.pres_mgmt.status_qry__search == loading wait *** search_delay=${search_delay}`);
|
||||
// $events_sess.status_qry__last_request_str = lk_search_str;
|
||||
} else {
|
||||
console.log('*** TEST SEARCH - $events_sess.pres_mgmt.status_qry__search != loading ***');
|
||||
// console.log('*** TEST SEARCH - $events_sess.pres_mgmt.status_qry__search != loading ***');
|
||||
|
||||
$events_trigger = 'loading_search_results';
|
||||
$events_sess.pres_mgmt.status_qry__search = 'loading';
|
||||
|
||||
Reference in New Issue
Block a user