Skip to content

fix(ruby): send required source_id when creating a relationship - #492

Open
rudycelekli wants to merge 1 commit into
raphaelmansuy:edgequake-mainfrom
rudycelekli:fix/ruby-relationship-create-source-id-20261015
Open

rudycelekli wants to merge 1 commit into
raphaelmansuy:edgequake-mainfrom
rudycelekli:fix/ruby-relationship-create-source-id-20261015

Conversation

@rudycelekli

@rudycelekli rudycelekli commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Description

Ruby RelationshipService#create never sends source_id, which CreateRelationshipRequest (relationships_types.rs) requires with no serde default, so every create is rejected.

Evidence

New test_create_sends_required_source_id in sdks/ruby/test/unit_test.rb (ruby 4.0.2, /opt/homebrew/opt/ruby/bin/ruby):

  • Before: 208 runs, 1361 assertions, 1 failures
  • After: 208 runs, 1362 assertions, 0 failures, 0 errors; the other non-e2e Ruby test files also pass.

Change

create(src_id:, tgt_id:, keywords:, description:, source_id: "manual_entry", weight: nil); weight is only sent when given.

Verified / not verified

  • Verified: request body via the mock HTTP helper. The Ruby tests need lib/edgequake/operations_generated.rb, which is git-ignored (.gitignore lib/ rule) and not in the tree; I generated it locally with sdks/tools/sdk_coverage.py's Ruby emitter and did not commit it.
  • Not verified: against a live server; e2e tests not run.

Type of change

  • Bug fix

Checklist

The author checklist items from the template are left for the human submitter to tick.

CI note

Security Audit fails on edgequake-main itself (CI run 38326709329 at da1831c), and the Layer 1 — Static checksum guard job failed on the recently merged #446. Neither touches SDK code; I did not investigate them here.

CreateRelationshipRequest requires `source_id` (no serde default), so the Ruby
SDK's RelationshipService#create, which never sent it, failed every request.
Add `source_id:` (default "manual_entry", the value the server documents for
manual entries) and an optional `weight:`.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant