Restore server-side 'conference' filter and finalize IDAA migration
- Restored 'conference' search filter in ae_events__event.ts (now supported by backend) - Maintained local filtering as a safety fallback - Finalized Bulletin Board (Posts) V3 migration - Added editable_fields for all remaining IDAA-related core objects
This commit is contained in:
@@ -131,9 +131,10 @@ export async function load_ae_obj_li__event({
|
|||||||
let promise;
|
let promise;
|
||||||
|
|
||||||
if (qry_conference !== null) {
|
if (qry_conference !== null) {
|
||||||
// V3 Search does not permit 'conference' field yet.
|
// V3 Search now permits 'conference' field.
|
||||||
// We pass no search_query and filter locally in the .then() block below.
|
const search_query: any = {
|
||||||
const search_query: any = { and: [] };
|
and: [{ field: 'conference', op: 'eq', value: qry_conference }]
|
||||||
|
};
|
||||||
|
|
||||||
promise = api.search_ae_obj_v3({
|
promise = api.search_ae_obj_v3({
|
||||||
api_cfg,
|
api_cfg,
|
||||||
@@ -169,10 +170,8 @@ export async function load_ae_obj_li__event({
|
|||||||
if (event_obj_li_get_result) {
|
if (event_obj_li_get_result) {
|
||||||
let filtered_results = event_obj_li_get_result;
|
let filtered_results = event_obj_li_get_result;
|
||||||
|
|
||||||
// Workaround: V3 Search does not yet support filtering on the 'conference' field.
|
// Optional: Keep local filter as a fallback safety
|
||||||
// We filter locally for now to maintain frontend behavior.
|
|
||||||
if (qry_conference !== null) {
|
if (qry_conference !== null) {
|
||||||
if (log_lvl) console.log(`Local filtering for conference=${qry_conference}`);
|
|
||||||
filtered_results = event_obj_li_get_result.filter((ev: any) => ev.conference === qry_conference);
|
filtered_results = event_obj_li_get_result.filter((ev: any) => ev.conference === qry_conference);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user