Working on making the Journal Entry search work correctly. There were/are some difference between the front and backend. Mainly it was not expecting not_enabled. It was expecting disabled. That has been changed on the backend. There is still some weirdness with the "all" options for either the enable and or hide fields.

This commit is contained in:
Scott Idem
2026-01-21 20:29:40 -05:00
parent 6e6e8d80cc
commit f190beb691
5 changed files with 34 additions and 20 deletions

19
TODO.md
View File

@@ -4,14 +4,25 @@ This is a list of tasks to be completed before the next event/show/conference.
---
## Tomorrow's Priorities (Jan 22, 2026)
1. **Journal Entry Search Cleanup:**
- [ ] Update `ae_comp__journal_entry_obj_qry.svelte` to use dynamic `$journals_loc` values for `enabled` and `hidden` parameters instead of hardcoded strings.
- [ ] Verify that the search results correctly respect these filters.
2. **Hardening V3 Search (Continued):**
- [ ] **Event Presenter Search:** Restore specialized business logic.
- [ ] **Event Badge Search:** Restore specialized business logic.
- [ ] **Exhibit Search:** Restore missing search function and logic.
- [ ] **IDAA Result Limit:** Fix the over-fetching issue where the `limit` parameter is ignored after client-side filtering.
---
## Current Priorities (Jan 21, 2026)
1. **Hardening V3 Search (URGENT):**
- [x] **Event Session Search:** Finalized and verified. Added `default_qry_str` to V3 body. (Completed 2026-01-21)
- [x] **IDAA Recovery Meetings Search:** Restored functionality using V3 `search__event` with `default_qry_str`. (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.
- [x] **Journal Entry Search:** Fixed `match` operator error (switched to `like`) and resolved iteration crashes by unwrapping API envelopes. (Completed 2026-01-21)
- [ ] **Global Rule:** Preserve `ft_qry`, `lk_qry`, and `and_qry` blocks as "sacred" business logic. Never put non-searchable fields in the POST body.
2. **Service Worker Reliability (Mitigated):**
- [x] **Disable Auto-Registration:** Temporarily disabled `serviceWorker.register` in `svelte.config.js` to stop `TypeError` loop.
@@ -27,7 +38,7 @@ This is a list of tasks to be completed before the next event/show/conference.
- [ ] **Enhance `ae_obj_info`**: Include field types, constraints (NOT NULL), and default values.
- [ ] **Payload Validation**: Create a dry-run tool to check payloads against Pydantic models.
- [x] **Error Transparency**: Update backend to return specific SQLAlchemy/Pydantic errors in `meta.details`. (Completed 2026-01-19)
- [ ] **Automated Source of Truth**: Generate `V3_OBJECT_MODELS.md` automatically in `agents_sync/Aether/`.
- [ ] **Automated Source of Truth**: Generate \`V3_OBJECT_MODELS.md\` automatically in \`agents_sync/Aether/\`.
- [x] **Fix V3 Search for IDAA Recovery Meetings** (Completed 2026-01-20)
- [x] **Restore System Lookups** (Completed 2026-01-20)