Skip to content

Commit

Permalink
chore: partial fix ENUM_ZERO_VALUE_SUFFIX (#3574)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas authored Nov 29, 2024
1 parent 09c9ac9 commit 8d5a35f
Show file tree
Hide file tree
Showing 19 changed files with 326 additions and 322 deletions.
2 changes: 1 addition & 1 deletion backend/controller/console/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ func eventDALToProto(event timeline.Event) *pbconsole.Event {
var asyncEventType pbconsole.AsyncExecuteEventType
switch event.EventType {
case timeline.AsyncExecuteEventTypeUnkown:
asyncEventType = pbconsole.AsyncExecuteEventType_ASYNC_EXECUTE_EVENT_TYPE_UNKNOWN
asyncEventType = pbconsole.AsyncExecuteEventType_ASYNC_EXECUTE_EVENT_TYPE_UNSPECIFIED
case timeline.AsyncExecuteEventTypeCron:
asyncEventType = pbconsole.AsyncExecuteEventType_ASYNC_EXECUTE_EVENT_TYPE_CRON
case timeline.AsyncExecuteEventTypePubSub:
Expand Down
241 changes: 121 additions & 120 deletions backend/protos/xyz/block/ftl/v1/console/console.pb.go

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions backend/protos/xyz/block/ftl/v1/console/console.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ option go_package = "github.com/TBD54566975/ftl/backend/protos/xyz/block/ftl/v1/
option java_multiple_files = true;

enum EventType {
EVENT_TYPE_UNKNOWN = 0;
EVENT_TYPE_UNSPECIFIED = 0;
EVENT_TYPE_LOG = 1;
EVENT_TYPE_CALL = 2;
EVENT_TYPE_DEPLOYMENT_CREATED = 3;
Expand All @@ -24,13 +24,13 @@ enum EventType {
}

enum AsyncExecuteEventType {
ASYNC_EXECUTE_EVENT_TYPE_UNKNOWN = 0;
ASYNC_EXECUTE_EVENT_TYPE_UNSPECIFIED = 0;
ASYNC_EXECUTE_EVENT_TYPE_CRON = 1;
ASYNC_EXECUTE_EVENT_TYPE_PUBSUB = 2;
}

enum LogLevel {
LOG_LEVEL_UNKNOWN = 0;
LOG_LEVEL_UNSPECIFIED = 0;
LOG_LEVEL_TRACE = 1;
LOG_LEVEL_DEBUG = 5;
LOG_LEVEL_INFO = 9;
Expand Down
80 changes: 40 additions & 40 deletions backend/protos/xyz/block/ftl/v1/schemaservice.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion backend/protos/xyz/block/ftl/v1/schemaservice.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ message GetSchemaResponse {
}

enum DeploymentChangeType {
DEPLOYMENT_UNKNOWN = 0;
DEPLOYMENT_UNSPECIFIED = 0;
DEPLOYMENT_ADDED = 1;
DEPLOYMENT_REMOVED = 2;
DEPLOYMENT_CHANGED = 3;
Expand Down
Loading

0 comments on commit 8d5a35f

Please sign in to comment.