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
{{ message }}
Repository navigation
rust:test / rust:lint fails on main: object_field_type_validation_test.rs uses pre-#2450 CreateNodeInput/UpdateNodeInput field names #2469
`bun run test:all` and `bun run quality:fix` (specifically `rust:test` / `rust:lint`) currently fail to compile on `main` with:
```
error[E0560]: struct CreateNodeInput has no field named collection
--> packages/core/tests/object_field_type_validation_test.rs:98:13
|
98 | collection: None,
| ^^^^^^^^^^ unknown field
|
help: a field with a similar name exists
|
98 | collections: None,
error[E0560]: struct UpdateNodeInput has no field named add_to_collection
--> packages/core/tests/object_field_type_validation_test.rs:282:13
error[E0560]: struct UpdateNodeInput has no field named remove_from_collection
--> packages/core/tests/object_field_type_validation_test.rs:283:13
```
Five call sites in `packages/core/tests/object_field_type_validation_test.rs` (lines 98, 116, 282, 283, 425) still construct `CreateNodeInput`/`UpdateNodeInput` with the old singular field names (`collection`, `add_to_collection`, `remove_from_collection`).
Cause
`#2450` ("Add --collection to node create/update, and teach it as the one-call form") renamed/restructured these fields to `collections`/`collection_ids` on `CreateNodeInput` and `add_to_collections`/`remove_from_collection_ids` on `UpdateNodeInput`, but `object_field_type_validation_test.rs` was not updated to match, so the crate's test target no longer compiles.
Impact
Any workflow that runs the full Rust test suite (`bun run test:all`, `bun run rust:test`, `bun run quality:fix` → `rust:lint`) fails on a clean `main` checkout, unrelated to whatever change is being worked on. Frontend-only work (`bun run test`) is unaffected.
Fix
Update the five struct-literal call sites to the current field names, per the compiler's own suggestions:
Spotted while working #2454 (a frontend-only CSS fix) — confirmed unrelated to that change: reproduces identically on a clean `origin/main` checkout with no other diffs.
Activity
malibio commentedon Sep 8, 2026
Duplicate — #2462 landed the identical fix on
main(same five call sites, same field renames) shortly after this was filed. Closing as duplicate.