[hero_planner_server] entity *_list_full returns empty for all rootobjects #24
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_planner#24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
All 11 entity rootobjects' generated
*_list_full(and*_list) return an emptyvec. Clients cannot list via_list_full; the web remap (#18 B) had to route every list through*_find(returns sids) +*_geteach (N+1 queries).Fix: implement
*_list_fullto return the workspace-scoped entities (mirror the per-entity store list). Affects efficiency and any consumer expecting_list_fullto work (incl. the generated SDK).Fixed on
developmentin7976504— implemented all 11 entity*_list_fullhandlers (werevec![]) inmain_impl.rsto return fully-hydrated rows via the per-entity store list methods. Source-only (.oschema unchanged for this one; openrpc/SDK regenerated by build, not hand-edited).Adversarially verified at runtime:
swot_item_list_fullreturns 8 hydrated items; every entity's_find(main)now matchessystem_counts(swot 4 / necessary_condition 3 / requirement 5 / story 4 / milestone 1 / cost_center 3 / cost 4 / resource 6).Residual (by design):
_list_fullis unscoped — it returns all workspaces' rows, each tagged withworkspace_sid, because the generated CRUD*ListFullInputhas no workspace parameter. Single-workspace listing uses_find+_get(the scoped path, which is correct). Lifting that residual needs a generator/schema change to give CRUD list a workspace filter — out of scope here.