Skip to content

Assign model and folder entity IDs centrally in the backend - #54

Merged
fakayser merged 3 commits into
feature/plugin-metadata-locationfrom
feature/random-model-entity-ids
Nov 6, 2026
Merged

fakayser merged 3 commits into
feature/plugin-metadata-locationfrom
feature/random-model-entity-ids

Conversation

@fakayser

@fakayser fakayser commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

New model and folder entities receive random numeric IDs in the JavaScript-safe range from one backend allocator. Create, clone, source import, migration and implicit folders avoid IDs already used by either entity type. Existing valid IDs survive updates and moves; load/save reject out-of-range IDs and duplicates within each type while allowing historical overlap between model and folder IDs.

Uses the existing entity create/save API and documents its invariants. Solution CI also runs model validation on the merged solution state.

Validation:

  • 163 focused backend tests passed, including HTTP create/clone/update/move/reload, allocation collisions, migration and validation.
  • Ruff, pinned ty and documentation checks passed.
  • Browser with the real backend: folder creation/autosave/reload, multiple entity imports and reusing an imported entity as an internal source passed.
  • Full sample-dependent suite and full E2E suite were not run.

@fakayser
fakayser changed the base branch from main to feature/plugin-metadata-location November 6, 2026 11:50
@fakayser
fakayser merged commit 65201f4 into feature/plugin-metadata-location Nov 6, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant