Skip to content

Conversation

@Knerio
Copy link
Member

@Knerio Knerio commented Nov 26, 2025

Will pass with: code0-tech/tucana#159

close #729

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves error handling and logging in gRPC data type-related services. The changes add structured error logging, introduce a new error code for flow type validation failures, and fix data type rule serialization to properly handle generic type identifiers.

  • Enhanced error handling with detailed logging across three update services (RuntimeFunctionDefinitions, FlowTypes, DataTypes)
  • Added invalid_flow_type error code for consistency with other validation error patterns
  • Fixed data type rule serialization to properly handle DataTypeIdentifier objects with generic keys

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
app/services/runtimes/runtime_function_definitions/update_service.rb Added logging module inclusion, error logging with context, and success logging; added error_code to error responses
app/services/runtimes/flow_types/update_service.rb Added logging module inclusion, error logging with context; added error_code to error responses; fixed update_flowtype to return db_object
app/services/runtimes/data_types/update_service.rb Added logging module inclusion, error logging with context, and success logging; fixed update_datatype to return db_object; enhanced update_rules to properly serialize DataTypeIdentifier objects
app/services/error_code.rb Added invalid_flow_type error code definition
docs/graphql/enum/errorcodeenum.md Documented INVALID_FLOW_TYPE error code enum value
app/grpc/data_type_handler.rb Removed redundant logging module and logger.info call (moved to service layer)
spec/requests/grpc/sagittarius/data_type_service_spec.rb Updated test to use contains_type rule with generic_key instead of number_range rule

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

github-actions bot commented Nov 26, 2025

GitLab Pipeline Action

General information

Link to pipeline: https://gitlab.com/code0-tech/development/sagittarius/-/pipelines/2183281159

Status: Passed
Duration: 3 minutes

Job summaries

rspec: [ee]

Coverage report available at https://code0-tech.gitlab.io/-/development/sagittarius/-/jobs/12243457783/artifacts/tmp/coverage/index.html
Test summary available at https://gitlab.com/code0-tech/development/sagittarius/-/pipelines/2183281159/test_report
Finished in 20.82 seconds (files took 11.24 seconds to load)
1227 examples, 0 failures
Line Coverage: 91.31% (4169 / 4566)
[TEST PROF INFO] Time spent in factories: 00:11.098 (41.17% of total time)

rspec: [ce]

Coverage report available at https://code0-tech.gitlab.io/-/development/sagittarius/-/jobs/12243457778/artifacts/tmp/coverage/index.html
Test summary available at https://gitlab.com/code0-tech/development/sagittarius/-/pipelines/2183281159/test_report
Finished in 19.84 seconds (files took 12.18 seconds to load)
1180 examples, 0 failures
Line Coverage: 90.71% (4001 / 4411)
[TEST PROF INFO] Time spent in factories: 00:10.641 (38.75% of total time)

rubocop

698 files inspected, no offenses detected

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@raphael-goetz raphael-goetz merged commit 1027be5 into main Nov 27, 2025
1 check passed
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.

When passing in DefinitionDataTypeRule via grpc errors occur

3 participants