fix(describe): omit xdebug_enabled from describe output, fixes #8159#8360
fix(describe): omit xdebug_enabled from describe output, fixes #8159#8360jonesrussell wants to merge 1 commit into
Conversation
|
Download the artifacts for this pull request:
See Testing a PR. |
|
Looks fine. I have always felt that the config entity in config.yaml was a mistake, but never had the temerity to remove it as I figured somebody had to be using it. |
| detail.DatabaseType, _ = desc["database_type"].(string) | ||
| detail.DatabaseVersion, _ = desc["database_version"].(string) | ||
| detail.XdebugEnabled, _ = desc["xdebug_enabled"].(bool) | ||
| detail.XdebugEnabled = app.XdebugEnabled |
There was a problem hiding this comment.
The issue says:
Show real Xdebug runtime status if we want to surface it at all (similar to
XHProfStatus)
But app.XdebugEnabled doesn't reflect the status in real time.
So this PR doesn't actually change the TUI behavior, which was the original intent.
I would either remove it from both ddev describe -j and the TUI, or add the current runtime status to the TUI.
To make sure we don't break any third-party tools by changing ddev describe -j, I checked for xdebug_enabled in:
and didn't find any usage.
The Issue
ddev describeshows config value for Xdebug instead of real runtime status #8159ddev describeJSON includedxdebug_enabledfrom project config, which reads like live Xdebug status and misleads users. Runtime state should come fromddev xdebug status.How This PR Solves The Issue
xdebug_enabledto theDescribe()map soddev describe -j/ raw output no longer exposes it.XdebugEnabledfrom config afterDescribe().ddev xdebug statusfor runtime state.TestDdevDescribeasserts the key is absent when stopped and running.Manual Testing Instructions
ddev describe -j | jq .raw— confirm noxdebug_enabledkey.ddev xdebug status— confirm runtime messaging still reflects actual Xdebug mode.Automated Testing Overview
TestDdevDescribeto assertxdebug_enabledis not present in describe output.go test ./pkg/tui -short;golangci-linton touched packages passes.Release/Deployment Notes
describeJSON forxdebug_enabledmust switch to reading.ddev/config.yaml/ project config or useddev xdebug status.Made with Cursor