Skip to content

fix(cmd-api-server): deprecate cockpitWwwRoot default path (cactus-cockpit removed)#4146

Open
sputnik-mac wants to merge 2 commits intohyperledger-cacti:mainfrom
sputnik-mac:fix/issue-4108-cockpit-www-root-deprecation
Open

fix(cmd-api-server): deprecate cockpitWwwRoot default path (cactus-cockpit removed)#4146
sputnik-mac wants to merge 2 commits intohyperledger-cacti:mainfrom
sputnik-mac:fix/issue-4108-cockpit-www-root-deprecation

Conversation

@sputnik-mac
Copy link

Summary

Fixes #4108

The @hyperledger/cactus-cockpit package has been removed from this monorepo, but the default value of cockpitWwwRoot in config-service.ts still pointed to its (now non-existent) installation path:

packages/cactus-cmd-api-server/node_modules/@hyperledger/cactus-cockpit/www/

This path will never resolve, making the default misleading and potentially confusing.

Changes

packages/cactus-cmd-api-server/src/main/typescript/config/config-service.ts

  • Changed the default value of cockpitWwwRoot from the broken @hyperledger/cactus-cockpit path to "" (empty string)
  • Updated the doc string to note that @hyperledger/cactus-cockpit has been removed and this option is deprecated; users who need a custom cockpit UI should supply a valid path via COCKPIT_WWW_ROOT or --cockpit-www-root

examples/cactus-example-carbon-accounting-backend/example-config.json

  • Updated cockpitWwwRoot from the stale package path to "" to match the new default and avoid misleading anyone who copies this example config

Notes

  • cockpitEnabled already defaults to false, so there is no runtime regression — the cockpit file server will not start unless explicitly enabled.
  • No API or interface changes; this is a documentation/default-value fix only.

@LordKubaya
Copy link
Contributor

@sputnik-mac Thank you for your contribution. Please sign your commits.
Change the name of the first commit to fix(cactus-example-carbon-accounting-backend)....

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.

fix(cmd-api-server): fix references to cockpitWwwRoot

2 participants