You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(objectql,metadata): derive a view container's object through the shared helper, so the row's own name is LAST at every SOURCE registrar (#14399)
The ObjectQL boot-loop registrar read a container's own `name` FIRST, while
`deriveViewContainerObject` (@objectstack/metadata) and
`expandRuntimeViewContainer` (@objectstack/metadata-protocol) read it LAST. A
container written as `{ name: 'lead_views', object: 'crm_lead', list: { … } }`
was therefore keyed `lead_views` by one SOURCE registrar and `crm_lead` by the
others, expansion included — and `getViewsByObject()` / `GET /meta/view?object=`
filter on the expanded items' `object`, so which registrar loaded the document
decided whether the views were addressable under the object at all.
The boot loop's container branch now calls `deriveViewContainerObject` by
import; a fourth hand-copy of the chain was the defect, not the repair.
`deriveViewContainerObject` moves onto `@objectstack/metadata`'s root entry to
make that import legal without reaching into another package's `src/`.
Only the CONTAINER branch moves, gated on `isAggregatedViewContainer`; the
assembled `viewItems:` channel still keys by its own `name` first.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0112hMx9hjJ9BgB28X97DS68
fix(objectql,metadata): the ObjectQL boot loop derives a view container's object through the shared `deriveViewContainerObject`, so the row's own `name` is the LAST term at every SOURCE registrar (#14399)
7
+
8
+
Three sites derive "which object does an aggregated `defineView` container bind
9
+
to". After #13407 / #13913 / #13912 all three read the container's own top-level
10
+
`object` before the `list.data.object` chain, but they still disagreed about the
0 commit comments