Skip to content

fix(cli): prevent workspace timeline and adr documents from using CalmHub resource $ids - #3591

Merged
markscott-ms merged 1 commit into
finos:mainfrom
aksharprabhudesai:fix/3311-workspace-non-resource-type-id
Nov 4, 2026
Merged

markscott-ms merged 1 commit into
finos:mainfrom
aksharprabhudesai:fix/3311-workspace-non-resource-type-id

Conversation

@aksharprabhudesai

Copy link
Copy Markdown
Contributor

Description

Closes #3311

timeline and adr have no CalmHub resource type, so building a CalmHub resource $id for them in calm workspace new or calm workspace add assigned a $id of another resource type (such as architectures), causing workspace push and workspace bump to treat them as that resource type.

  • When the document type has no CalmHub $id form (timeline, adr), promptForDocumentId now asks only for a document ID instead of a CalmHub resource scope and type.
  • calm workspace add rejects a conformant CalmHub $id when --type is timeline or adr.
  • calm workspace push and calm workspace bump skip manifest entries whose document type has no CalmHub resource type, even if an existing file on disk has a namespace resource $id.

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📚 Documentation update
  • 🎨 Code style/formatting changes
  • ♻️ Refactoring (no functional changes)
  • ⚡ Performance improvements
  • ✅ Test additions or updates
  • 🔧 Chore (maintenance, dependencies, CI, etc.)

Affected Components

  • CLI (cli/)
  • Schema (calm/)
  • CALM AI (calm-ai/)
  • CALM Hub (calm-hub/)
  • CALM Hub UI (calm-hub-ui/)
  • CALM Lab (calm-lab/)
  • CALM Models (calm-models/)
  • CALM Server (calm-server/)
  • CALM Studio (calm-studio/)
  • CALM Widgets (calm-widgets/)
  • CALMGuard (calm-guard/)
  • Documentation (docs/)
  • Shared (shared/)
  • VS Code Extension (calm-plugins/vscode/)
  • Dependencies
  • CI/CD

Commit Message Format ✅

Testing

  • I have tested my changes locally
  • I have added/updated unit tests
  • All existing tests pass

Checklist

  • My commits follow the conventional commit format
  • I have updated documentation if necessary
  • I have added tests for my changes (if applicable)
  • My changes follow the project's coding standards

@github-actions github-actions Bot added cli Affects `cli` code docs Improvements of additions to documentation labels Oct 31, 2026
@willosborne

Copy link
Copy Markdown
Member

This change makes sense, but would it not be better to add CLI support for timelines, adrs, etc?
I'm happy to merge this as a defensive barrier against this though.

@aksharprabhudesai

Copy link
Copy Markdown
Contributor Author

This change makes sense, but would it not be better to add CLI support for timelines, adrs, etc?

I will create an issue for this and claim it

@aksharprabhudesai
aksharprabhudesai force-pushed the fix/3311-workspace-non-resource-type-id branch from 31d2294 to 33323ed Compare November 3, 2026 03:53
@markscott-ms
markscott-ms merged commit ec1cd7f into finos:main Nov 4, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli Affects `cli` code docs Improvements of additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A workspace timeline or adr can get a $id of another resource type

3 participants