Skip to content

Commit 434e742

Browse files
authored
Merge pull request #482 from code0-tech/renovate/tucana-0.x
Update dependency tucana to v0.0.33
2 parents d7b5663 + 23ab492 commit 434e742

30 files changed

+55
-279
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ gem 'good_job', '~> 4.0'
7979
gem 'rotp'
8080

8181
gem 'grpc', '~> 1.67'
82-
gem 'tucana', '0.0.30'
82+
gem 'tucana', '0.0.35'
8383

8484
gem 'code0-identities', '~> 0.0.1'
8585

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ GEM
368368
test-prof (1.4.4)
369369
thor (1.3.2)
370370
timeout (0.4.3)
371-
tucana (0.0.30)
371+
tucana (0.0.35)
372372
grpc (~> 1.64)
373373
tzinfo (2.0.6)
374374
concurrent-ruby (~> 1.0)
@@ -422,7 +422,7 @@ DEPENDENCIES
422422
simplecov (~> 0.22.0)
423423
simplecov-cobertura (~> 3.0)
424424
test-prof (~> 1.0)
425-
tucana (= 0.0.30)
425+
tucana (= 0.0.35)
426426
tzinfo-data
427427

428428
RUBY VERSION

app/models/data_type_identifier.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ class DataTypeIdentifier < ApplicationRecord
55
belongs_to :generic_type, optional: true, inverse_of: :data_type_identifiers
66
belongs_to :runtime, inverse_of: :data_type_identifiers
77
belongs_to :generic_mapper, class_name: 'GenericMapper', optional: true, inverse_of: :source
8-
belongs_to :function_generic_mapper, class_name: 'FunctionGenericMapper',
9-
optional: true, inverse_of: :source
108

119
has_many :child_types, class_name: 'DataType', inverse_of: :parent_type
1210

app/models/data_type_rule.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class DataTypeRule < ApplicationRecord
99
regex: 5,
1010
return_type: 6,
1111
input_type: 7,
12+
parent_type: 8,
1213
}.with_indifferent_access
1314

1415
enum :variant, VARIANTS, prefix: :variant

app/models/flow.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Flow < ApplicationRecord
1010
has_many :flow_settings, class_name: 'FlowSetting', inverse_of: :flow
1111

1212
def to_grpc
13-
Tucana::Shared::Flow.new(
13+
Tucana::Shared::ValidationFlow.new(
1414
flow_id: id,
1515
project_id: project.id,
1616
type: flow_type.identifier,

app/models/function_generic_mapper.rb

Lines changed: 0 additions & 14 deletions
This file was deleted.

app/models/generic_combination_strategy.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ class GenericCombinationStrategy < ApplicationRecord
77
}.with_indifferent_access
88

99
belongs_to :generic_mapper, optional: true, inverse_of: :generic_combination_strategies
10-
belongs_to :function_generic_mapper, optional: true, inverse_of: :generic_combination_strategies
1110

1211
enum :type, TYPES, prefix: :type
1312

app/models/node_parameter.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ def to_grpc
1414
runtime_parameter_id: runtime_parameter.runtime_name
1515
)
1616

17+
param.value = Tucana::Shared::NodeValue.new(literal_value: Tucana::Shared::Value.from_ruby({}))
18+
1719
if literal_value.present?
18-
param.literal_value = Tucana::Shared::Value.from_ruby(literal_value)
20+
param.value.literal_value = Tucana::Shared::Value.from_ruby(literal_value)
1921
elsif reference_value.present?
20-
param.reference_value = reference_value.to_grpc
22+
param.value.reference_value = reference_value.to_grpc
2123
elsif function_value.present?
22-
param.function_value = function_value.to_grpc
24+
param.value.function_value = function_value.to_grpc
2325
end
2426

2527
param

app/models/runtime_function_definition.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ class RuntimeFunctionDefinition < ApplicationRecord
66

77
has_many :function_definitions, inverse_of: :runtime_function_definition
88
has_many :parameters, class_name: 'RuntimeParameterDefinition', inverse_of: :runtime_function_definition
9-
has_many :error_types, class_name: 'RuntimeFunctionDefinitionErrorType', inverse_of: :runtime_function_definition
10-
has_many :generic_mappers, class_name: 'FunctionGenericMapper', inverse_of: :runtime_function_definition
119

1210
has_many :names, -> { by_purpose(:name) }, class_name: 'Translation', as: :owner, inverse_of: :owner
1311
has_many :descriptions, -> { by_purpose(:description) }, class_name: 'Translation', as: :owner, inverse_of: :owner

app/models/runtime_function_definition_error_type.rb

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)