Skip to content

coder templates versions list --output json returns all-zero structures #7129

Closed
@DeCarabas

Description

@DeCarabas

I for sure have template versions:

coder@doty-dev ~/l/d/t/pusher (main)> coder templates versions list aws-linux                                                                   
NAME                   CREATED AT            CREATED BY           STATUS     ACTIVE                                                                                                     
03f4e9a                2023-04-13T23:15:53Z  template-automation  Succeeded                                                                                                                       
07fe185                2023-04-12T17:42:20Z  template-automation  Succeeded                                                                                                                       
31aecb8                2023-04-13T23:18:34Z  template-automation  Succeeded   Active                                                                                                              
5b7ac63                2023-04-13T18:35:05Z  template-automation  Succeeded                                                                                                                       
7c85037                2023-04-13T00:09:03Z  template-automation  Succeeded                                                                                                                       
affectionate_cohen2    2023-04-04T12:30:41Z  johndoty             Succeeded                                                                                                                       
boring_napier3         2023-03-29T03:24:28Z  johndoty             Succeeded                                                                                                                       
busy_bohr8             2023-04-04T03:46:59Z  johndoty             Failed                                                                                                                          
charming_shtern7       2023-04-04T03:35:15Z  johndoty             Failed                                                                                                                          
dreamy_jepsen7         2023-04-04T12:26:48Z  johndoty             Failed                                                                                                                          
ecstatic_payne7        2023-04-04T03:36:49Z  johndoty             Failed                                                                                                                          
exciting_kepler3       2023-03-29T12:41:56Z  johndoty             Succeeded                                                                                                                       
f5567c0                2023-04-13T04:18:41Z  template-automation  Succeeded                                                                                                                       
gracious_stonebraker3  2023-03-29T12:59:00Z  johndoty             Succeeded                                                                                                                       
hungry_driscoll7       2023-04-04T03:49:23Z  johndoty             Succeeded                                                                                                                       
intelligent_noether3   2023-04-04T03:37:08Z  johndoty             Failed                                                                                                                          
jovial_gagarin6        2023-04-04T03:47:56Z  johndoty             Failed                                                                                                                          
laughing_beaver3       2023-03-29T12:33:34Z  johndoty             Succeeded                                                                                                                       
magical_hamilton2      2023-04-04T03:45:39Z  johndoty             Failed                                                                                                                          
modest_greider2        2023-04-04T03:48:48Z  johndoty             Failed                                                                                                                          
nervous_bohr7          2023-04-04T03:38:27Z  johndoty             Failed                                                                                                                          
relaxed_shirley4       2023-03-29T12:58:35Z  johndoty             Failed                                                                                                                          
sharp_greider7         2023-04-04T12:27:39Z  johndoty             Failed                                                                                                                          
vibrant_williams4      2023-04-04T03:31:59Z  johndoty             Failed                

But json seems to be.... nothing?

coder@doty-dev ~/l/d/t/pusher (main)> coder templates versions list aws-linux --output json
[
  {
    "TemplateVersion": {
      "id": "00000000-0000-0000-0000-000000000000",
      "organization_id": "00000000-0000-0000-0000-000000000000",
      "created_at": "0001-01-01T00:00:00Z",
      "updated_at": "0001-01-01T00:00:00Z",
      "name": "",
      "job": {
        "id": "00000000-0000-0000-0000-000000000000",
        "created_at": "0001-01-01T00:00:00Z",
        "status": "",
        "file_id": "00000000-0000-0000-0000-000000000000",
        "tags": null
      },
      "readme": "",
      "created_by": {
        "id": "00000000-0000-0000-0000-000000000000",
        "username": "",
        "email": "",
        "created_at": "0001-01-01T00:00:00Z",
        "last_seen_at": "0001-01-01T00:00:00Z",
        "status": "",
        "organization_ids": null,
        "roles": null,
        "avatar_url": ""
      }
    }
  },
  {
    "TemplateVersion": {
      "id": "00000000-0000-0000-0000-000000000000",
      "organization_id": "00000000-0000-0000-0000-000000000000",
      "created_at": "0001-01-01T00:00:00Z",
      "updated_at": "0001-01-01T00:00:00Z",

My version:

coder@doty-dev ~/l/d/t/pusher (main)> coder version                                                                                                                                               
Coder v0.21.3+95e578b Mon Apr  3 16:36:26 UTC 2023                                                                                                                                      
https://github.com/coder/coder/commit/95e578ba10d4e5fb5eccfb9d0e63d88cc0efea1f            

Metadata

Metadata

Assignees

Labels

s2Broken use cases or features (with a workaround). Only humans may set this.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions