Skip to content

Commit

Permalink
show ql state in listing
Browse files Browse the repository at this point in the history
  • Loading branch information
pmenglund committed Nov 15, 2023
1 parent c39bfcd commit 3830950
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion format/format_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,12 @@ func TestFormatter(t *testing.T) {
VersionCount: openapi.PtrInt32(10),
Collections: []string{"a", "b"},
LatestVersion: &openapi.QueryLambdaVersion{
State: openapi.PtrString("foo"),
Version: openapi.PtrString("version"),
Description: openapi.PtrString("desc"),
},
},
s: "ws,name,updated by,last updated,version,desc,10,\"a, b\"\n",
s: "ws,name,foo,updated by,last updated,version,desc,10,\"a, b\"\n",
},
{
i: openapi.Collection{
Expand Down
2 changes: 2 additions & 0 deletions format/query_lambda.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var QueryLambdaDefaultSelector = DefaultSelector{
Normal: []FieldSelection{
NewFieldSelection("Workspace", "workspace"),
NewFieldSelection("Name", "name"),
NewFieldSelection("State", "latest_version", "state"),
{
ColumnName: "Last Updated",
Path: []PathElem{{FieldName: "last_updated"}},
Expand All @@ -19,6 +20,7 @@ var QueryLambdaDefaultSelector = DefaultSelector{
Wide: []FieldSelection{
NewFieldSelection("Workspace", "workspace"),
NewFieldSelection("Name", "name"),
NewFieldSelection("State", "latest_version", "state"),
NewFieldSelection("Last Updated By", "last_updated_by"),
{
ColumnName: "Last Updated",
Expand Down

0 comments on commit 3830950

Please sign in to comment.