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 RecordDetailEdit test: only pass 3rd arg to findOne when $expand
params exist (avoids undefined 3rd arg assertion failure)
- ListView: reset objectDefLoaded + objectDef when objectName changes
to prevent stale $expand on navigation
- DetailView: clear objectSchema + data when starting new fetch cycle
to prevent stale metadata on navigation
- DetailSection: merge missing metadata props (options, reference_to,
reference_field, etc.) from objectSchema even when field.type is set
- data-objectstack: detect /api/v1 suffix in baseUrl to avoid doubling
the path prefix in rawFindWithPopulate()
- ROADMAP.md: update adapter descriptions to reflect raw GET + populate
approach instead of data.query() POST
- Add test for baseUrl /api/v1 double-prefix prevention
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copy file name to clipboardExpand all lines: ROADMAP.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1380,9 +1380,9 @@ All 313 `@object-ui/fields` tests pass.
1380
1380
1381
1381
-**ListView** (`packages/plugin-list/src/ListView.tsx`): Added `objectDefLoaded` state flag. Data fetch effect is gated on `objectDefLoaded` so the first fetch always includes correct `$expand` parameters. The `objectDef` fetch effect sets the flag in `finally` block to handle both success and error cases.
1382
1382
-**DetailView** (`packages/plugin-detail/src/DetailView.tsx`): Added `objectSchema` state. Data fetch effect now calls `getObjectSchema()` first, computes `$expand` via `buildExpandFields()`, and passes the params to `findOne()`. The resolved `objectSchema` is passed to `DetailSection` components.
1383
-
-**DetailSection** (`packages/plugin-detail/src/DetailSection.tsx`): Added optional `objectSchema` prop. When `field.type` is not set, the field is enriched with type, options, currency, precision, format, reference_to, and reference_field from `objectSchema`before selecting a CellRenderer. Explicit `field.type` always takes precedence over objectSchema.
1384
-
-**ObjectStackAdapter `find()`** (`packages/data-objectstack/src/index.ts`): When `$expand` is present, routes to `client.data.query()`(POST) which supports the full query AST including expand. Added `buildQueryAST()`and `normalizeQueryResult()` private helpers.
1385
-
-**ObjectStackAdapter `findOne()`** (`packages/data-objectstack/src/index.ts`): When `$expand` is present, uses `client.data.query()` with `['_id', '=', id]` filter and `expand` map. Falls back to `client.data.get()` when no expand is needed.
1383
+
-**DetailSection** (`packages/plugin-detail/src/DetailSection.tsx`): Added optional `objectSchema` prop. Fields are enriched with missing metadata (options, currency, precision, format, reference_to, reference_field) from `objectSchema`regardless of whether `field.type` is explicitly set. When `field.type` is not set, the type is also resolved from objectSchema. Explicit `field.type` always takes precedence for the resolved type.
1384
+
-**ObjectStackAdapter `find()`** (`packages/data-objectstack/src/index.ts`): When `$expand` is present, routes through `rawFindWithPopulate()` which issues a raw GET request with a `populate=`query parameter derived from the `$expand` field names. The server's REST plugin routes `GET /data/:object` to `findData()`which processes `populate` (comma-separated string) for lookup expansion. Falls back to `client.data.find()` when no expand is needed.
1385
+
-**ObjectStackAdapter `findOne()`** (`packages/data-objectstack/src/index.ts`): When `$expand` is present, uses the same `rawFindWithPopulate()`mechanism with `filter={"_id":"..."}`and `populate=` to fetch the single record with expanded lookup fields. Falls back to `client.data.get()` when no expand is needed.
0 commit comments