Skip to content

Conversation

@alexshtin
Copy link
Contributor

What changed?
Prefix enums with type and convert to upper case. Simple global replace w/o any logic change.

Why?
To match proto files, to match proto files guidelines.

How did you test it?
All tests.

Potential risks
No risks.

@alexshtin alexshtin requested review from a team, mfateev and shawnhathaway June 9, 2020 06:39
Makefile Outdated
@printf $(COLOR) "Install/update proto plugins..."
GO111MODULE=off go get -u github.com/gogo/protobuf/protoc-gen-gogofaster
GO111MODULE=off go get -u google.golang.org/grpc
(cd && go get -u github.com/temporalio/gogo-protobuf/protoc-gen-gogoslick)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is our fork which generates short string enum representation (same as it was before).

enum DLQType {
Replication = 0;
Namespace = 1;
enum DeadLetterQueueType {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Had to rename this type to make it work with CamelCase <-> SCREAMING_CASE conversion.

@alexshtin alexshtin force-pushed the feature/enum-zero branch from b477f25 to 088f27a Compare June 9, 2020 18:15
@alexshtin alexshtin merged commit ef84229 into temporalio:master Jun 9, 2020
@alexshtin alexshtin deleted the feature/enum-zero branch June 9, 2020 20:48
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.

2 participants