Skip to content

Conversation

@mastermanu
Copy link
Member

@mastermanu mastermanu commented Jul 17, 2020

This PR removes:
- The option to switch between V1 and V2 Persistence Visibility stores (V1 was the default)
- The V2 Cassandra Persistence Visibility Store (merged it with the V1 store).
- The V1 tables in Cassandra itself

As a result, running tctl wf list now returns closed workflows ordered by their closed time in a descending order as mentioned in this issue: #312

Tested locally with unit tests and confirmed tctl returns in the expected order

CREATE INDEX closed_by_status ON closed_executions (status);

-- same as closed_executions but order by close_time
CREATE TABLE closed_executions_v2 (
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@samarabbas @shawnhathaway - I can also remove the v2 suffix here if you think that makes sense

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, given v1 is being removed, this would make sense. We have done this in other places.

CREATE INDEX closed_by_status ON closed_executions (status);

-- same as closed_executions but order by close_time
CREATE TABLE closed_executions_v2 (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, given v1 is being removed, this would make sense. We have done this in other places.

@mastermanu mastermanu merged commit d527d1c into temporalio:master Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change default order for listClosedWorkflowExecutions to by close time [Cassandra Visibility Store]

2 participants