[BUG] wash app doesn't distinguish between deployed and latest versions
autodidaddict opened this issue · 1 comments
autodidaddict commented
Describe the bug
When I do wash app list
, the output displays the latest version of the model, not the currently deployed version. This means that in all cases where the latest version isn't the deployed version, wash displays misleading or incorrect information.
To Reproduce
- Start with a deployed app, then
wash app deploy
an older version. Note the output ofwash app list
shows an undeployed version - Start with a deployed app, then
wash app put
a newer version that isn't deployed. Note the output ofwash app list
shows an undeployed version
Expected behavior
I should be able to see both the latest version and the currently deployed version
brooksmtownsend commented
Woah, looks like the JSON output already includes this!
~/github.com/wasmcloud/examples/petclinic ➜ wash app list -o json
{
"success": true,
"apps": [
{
"deployed_version": "v0.0.1",
"description": "wasmCloud Pet Clinic Sample",
"name": "petclinic",
"status": "compensating",
"version": "v0.0.5"
}
]
}
I'm upgrading this to a good-first-issue because that information is available 😄