Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the type of "Task List Kind" from int32 to a protobuff enum, TaskListKind #344

Merged
merged 1 commit into from
May 1, 2020

Conversation

markmark206
Copy link

What changed?

Replacing the type of "Task List Kind" from int32 to a protobuff enum, TaskListKind:
https://github.com/temporalio/temporal-proto/blob/8a95bbac3a1febf23d2e7f43954fa525ca300864/tasklist/enum.proto#L29-L32

Why?

This is part of the effort to make the code cleaner and more maintainable, via removing redundant types, and by using stronger typing.

How did you test it?
I build the code and ran unit tests.

Potential risks

There should be no externally-visible functionality change as a result of this change, this change is purely a code refactoring. If any of the existing functionality breaks, we should be able to fix or back out.

@markmark206 markmark206 requested review from alexshtin, shawnhathaway and a team April 30, 2020 23:33
@alexshtin alexshtin changed the title Change the type of 'Task List Kind' from int32 to a protobuff enum, TaskListKind Change the type of "Task List Kind" from int32 to a protobuff enum, TaskListKind Apr 30, 2020
@markmark206 markmark206 merged commit 0d05393 into temporalio:master May 1, 2020
@markmark206 markmark206 deleted the moreenums branch May 1, 2020 00:17
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.

3 participants