Skip to content

Control requirements don't display configuration titles properly #2680

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. Push the control requirement and config below:
    npx calm hub push control-requirement rate-limit-requirement.control-requirement.json 
    npx calm hub push control-configuration rate-limit-config.control-config.json        
  4. Open CalmHub UI on http://localhost:8080/ and look under domains > security > rate-limit control NOTE: this should probably display the control's title, rather than its id!
  5. Look at configurations.

Expected Result:

Name is "rate limit control example"

Actual Result:

"Control 1"

URL also shows 1 rather than the slug. I think this is just a bit too ID based still rather than slug-based

Environment:

Latest main CalmHub
MacOSX 15.7.3
Firefox

Additional Context:

NOTE: sidebar should probably display the control's title, rather than its id!

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions