Skip to content

Commit

Permalink
Increase CLI version to 0.5.2 (#649)
Browse files Browse the repository at this point in the history
* CLI 0.5.2 release

* relax frontend check for list workflow
  • Loading branch information
vancexu authored Apr 2, 2018
1 parent 28489fe commit 1beef90
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 4 additions & 4 deletions service/frontend/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -1628,11 +1628,11 @@ func (wh *WorkflowHandler) ListOpenWorkflowExecutions(ctx context.Context,
return nil, wh.error(&gen.BadRequestError{Message: "StartTimeFilter is required"}, scope)
}

if listRequest.StartTimeFilter.GetEarliestTime() == 0 {
if listRequest.StartTimeFilter.EarliestTime == nil {
return nil, wh.error(&gen.BadRequestError{Message: "EarliestTime in StartTimeFilter is required"}, scope)
}

if listRequest.StartTimeFilter.GetLatestTime() == 0 {
if listRequest.StartTimeFilter.LatestTime == nil {
return nil, wh.error(&gen.BadRequestError{Message: "LatestTime in StartTimeFilter is required"}, scope)
}

Expand Down Expand Up @@ -1708,11 +1708,11 @@ func (wh *WorkflowHandler) ListClosedWorkflowExecutions(ctx context.Context,
return nil, wh.error(&gen.BadRequestError{Message: "StartTimeFilter is required"}, scope)
}

if listRequest.StartTimeFilter.GetLatestTime() == 0 {
if listRequest.StartTimeFilter.EarliestTime == nil {
return nil, wh.error(&gen.BadRequestError{Message: "EarliestTime in StartTimeFilter is required"}, scope)
}

if listRequest.StartTimeFilter.GetEarliestTime() == 0 {
if listRequest.StartTimeFilter.LatestTime == nil {
return nil, wh.error(&gen.BadRequestError{Message: "LatestTime in StartTimeFilter is required"}, scope)
}

Expand Down
2 changes: 1 addition & 1 deletion tools/cli/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import "github.com/urfave/cli"
const (
// Version is the controlled version string. It should be updated every time
// before we release a new version.
Version = "0.5.1"
Version = "0.5.2"
)

// NewCliApp instantiates a new instance of the CLI application.
Expand Down
6 changes: 5 additions & 1 deletion tools/cli/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,11 @@ func DescribeTaskList(c *cli.Context) {
table := tablewriter.NewWriter(os.Stdout)
table.SetBorder(false)
table.SetColumnSeparator("|")
table.SetHeader([]string{"Poller Identity", "Last Access Time"})
if taskListType == s.TaskListTypeActivity {
table.SetHeader([]string{"Activity Poller Identity", "Last Access Time"})
} else {
table.SetHeader([]string{"Decision Poller Identity", "Last Access Time"})
}
table.SetHeaderLine(false)
table.SetHeaderColor(tableHeaderBlue, tableHeaderBlue)
for _, poller := range pollers {
Expand Down

0 comments on commit 1beef90

Please sign in to comment.