Skip to content

Architecture names reset to 'Architecture [number]' in CalmHub UI when pushing second version #2679

Description

@willosborne

Bug Report

Steps to Reproduce:

  1. Launch a fresh calm hub from calm-hub/deploy > docker compose up. Make sure you delete your DB if it already exists in docker desktop
  2. npm ci && npm run build && npx link cli to get latest cli built
  3. Load UI and confirm only one archtecture exists under workshop: Conference Signup Architecture
  4. push the architecture file linked at the bottom of the issue: npx calm hub push architecture test.arch.json
  5. Open CalmHub UI on http://localhost:8080/ and look under workshop namespace > Architectures
  6. Name should be correct - Testing Architecture listed.
  7. Push it again. npx calm hub push architecture test.arch.json
  8. Refresh the page.

Expected Result:

UI should be the same, but one extra version under Test Architecture.

Actual Result:

Test Architecture renamed in UI to 'Architecture 3'.

Image

NB: before pushing the second version, UI was returning right metadata:

Image

Environment:

  • Latest main CalmHub
  • MacOSX 15.7.3
  • Firefox

Additional Context:

NB this is actually returned from the CalmHub API. I think this is not a UI bug.
I can't reproduce this for patterns.

Metadata

Metadata

Assignees

Labels

calm-hubAffects `calm-hub`calm-hub-uiAffects `calm-hub-ui`

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions