From ef16da5a8a64b7698af84074f37d4d25ee2487a1 Mon Sep 17 00:00:00 2001 From: raphael-goetz Date: Fri, 10 Oct 2025 20:26:40 +0200 Subject: [PATCH 1/2] feat: added version to each definition type --- proto/shared/shared.data_type.proto | 3 +++ proto/shared/shared.flow_definition.proto | 3 +++ proto/shared/shared.runtime_function.proto | 5 ++++- proto/shared/shared.version.proto | 11 +++++++++++ 4 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 proto/shared/shared.version.proto diff --git a/proto/shared/shared.data_type.proto b/proto/shared/shared.data_type.proto index 4acedf5..9ac13ed 100644 --- a/proto/shared/shared.data_type.proto +++ b/proto/shared/shared.data_type.proto @@ -6,6 +6,7 @@ package shared; import "shared.struct.proto"; import "shared.translation.proto"; +import "shared.version.proto"; /* A data type is a custom implementation that could be compared to an object @@ -32,6 +33,8 @@ message DefinitionDataType { repeated DefinitionDataTypeRule rules = 4; // List of generic keys repeated string generic_keys = 5; + // Version of the data type + shared.Version version = 6; } message ExecutionDataType { diff --git a/proto/shared/shared.flow_definition.proto b/proto/shared/shared.flow_definition.proto index ed521b7..ed83937 100644 --- a/proto/shared/shared.flow_definition.proto +++ b/proto/shared/shared.flow_definition.proto @@ -6,6 +6,7 @@ package shared; import "shared.translation.proto"; import "shared.struct.proto"; +import "shared.version.proto"; message FlowType { string identifier = 1; @@ -16,6 +17,8 @@ message FlowType { repeated shared.Translation name = 6; repeated shared.Translation description = 7; repeated shared.Translation documentation = 8; + // Version of the flow type + shared.Version version = 9; } message FlowTypeSetting { diff --git a/proto/shared/shared.runtime_function.proto b/proto/shared/shared.runtime_function.proto index 9055ba3..c2834eb 100644 --- a/proto/shared/shared.runtime_function.proto +++ b/proto/shared/shared.runtime_function.proto @@ -7,6 +7,7 @@ package shared; import "shared.translation.proto"; import "shared.data_type.proto"; import "shared.struct.proto"; +import "shared.version.proto"; // Definition of a function used for execution message RuntimeFunctionDefinition { @@ -19,6 +20,8 @@ message RuntimeFunctionDefinition { repeated Translation description = 7; repeated Translation documentation = 8; repeated Translation deprecation_message = 9; + // Version of the runtime function + shared.Version version = 10; } // Definition of a parameter used for execution @@ -29,4 +32,4 @@ message RuntimeParameterDefinition { repeated Translation name = 4; repeated Translation description = 5; repeated Translation documentation = 6; -} +} \ No newline at end of file diff --git a/proto/shared/shared.version.proto b/proto/shared/shared.version.proto new file mode 100644 index 0000000..6b55dc9 --- /dev/null +++ b/proto/shared/shared.version.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option ruby_package = "Tucana::Shared"; + +package shared; + +message Version { + int32 major = 1; + int32 minor = 2; + int32 bug = 3; +} From e3d25d4b2e3125f4026ec2fb7fdd5dcad8ce9101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raphael=20G=C3=B6tz?= <52959657+raphael-goetz@users.noreply.github.com> Date: Fri, 10 Oct 2025 21:19:46 +0200 Subject: [PATCH 2/2] Update proto/shared/shared.version.proto Co-authored-by: Niklas van Schrick --- proto/shared/shared.version.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto/shared/shared.version.proto b/proto/shared/shared.version.proto index 6b55dc9..434e920 100644 --- a/proto/shared/shared.version.proto +++ b/proto/shared/shared.version.proto @@ -7,5 +7,5 @@ package shared; message Version { int32 major = 1; int32 minor = 2; - int32 bug = 3; + int32 patch = 3; }