Skip to content

rust:test / rust:lint fails on main: object_field_type_validation_test.rs uses pre-#2450 CreateNodeInput/UpdateNodeInput field names #2469

Closed as not planned

Description

@malibio

Problem

`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:

  • `collection: None` → `collections: None` (lines 98, 116, 425)
  • `add_to_collection: None` → `add_to_collections: None` (line 282)
  • `remove_from_collection: None` → `remove_from_collection_ids: None` (line 283)

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

  1. malibio commented on Sep 8, 2026

    @malibio
    CollaboratorAuthor

    Duplicate — #2462 landed the identical fix on main (same five call sites, same field renames) shortly after this was filed. Closing as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions