This should be the last round of Data Store changes to upgrade them to v3.

This commit is contained in:
Scott Idem
2026-01-29 12:35:57 -05:00
parent 2975835d96
commit 0c8a96dd0c
12 changed files with 22 additions and 51 deletions

View File

@@ -46,7 +46,7 @@ Legacy patterns persisting in core logic and config modules.
Specific UI components that make direct API calls instead of using store functions.
- [ ] `src/lib/elements/element_data_store.svelte` (Direct `create_ae_obj_crud`)
- [ ] `src/lib/elements/element_data_store_v2.svelte`
- [x] `src/lib/elements/element_data_store_v2.svelte`
- [ ] `src/routes/events/[event_id]/event_page_menu.svelte`
- [ ] `src/routes/events/[event_id]/(pres_mgmt)/session/ae_comp__event_session_alert.svelte`
- [ ] `src/routes/events/ae_comp__event_session_obj_li.svelte`
@@ -102,7 +102,7 @@ V3 returns detailed error metadata in the `meta.details` object.
## 5. Known Pitfalls
### A. The "Integer Trap" (Search Mapping)
**Issue:** The backend automatically maps certain fields (like `account_id`) from string IDs to internal integers.
**Issue:** The backend automatically maps certain fields (like `account_id`) from string IDs to internal integers.
**Symptom:** Providing a string ID in a search body that the backend maps to an integer can result in **Zero Results** if the underlying view expects a string.
**Final Solution (Body + Header Injection):**