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:
Scott Idem
2026-01-06 18:06:32 -05:00
parent 43d32f2e3e
commit 6d0531e227

View File

@@ -131,9 +131,10 @@ export async function load_ae_obj_li__event({
let promise;
if (qry_conference !== null) {
// V3 Search does not permit 'conference' field yet.
// We pass no search_query and filter locally in the .then() block below.
const search_query: any = { and: [] };
// V3 Search now permits 'conference' field.
const search_query: any = {
and: [{ field: 'conference', op: 'eq', value: qry_conference }]
};
promise = api.search_ae_obj_v3({
api_cfg,
@@ -169,10 +170,8 @@ export async function load_ae_obj_li__event({
if (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.
// We filter locally for now to maintain frontend behavior.
// Optional: Keep local filter as a fallback safety
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);
}