Skip to content

feat(cli): implement synapse graphql query command with integration t…#770

Merged
Mac-5 merged 2 commits into
Synapse-bridgez:mainfrom
marvs8:feature/rust-cli-implement-synapse-graphql-query
Jun 30, 2026
Merged

feat(cli): implement synapse graphql query command with integration t…#770
Mac-5 merged 2 commits into
Synapse-bridgez:mainfrom
marvs8:feature/rust-cli-implement-synapse-graphql-query

Conversation

@marvs8

@marvs8 marvs8 commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

…ests

Adds synapse graphql query subcommand that POSTs raw GraphQL queries to /graphql, handles application-level errors (HTTP 200 + errors array) with exit code 1, and supports --format table/json output. Includes 6 integration tests covering happy paths, error cases, and JSON validity.

Pull Request

Description

Related Issue

Closes #691
closes #643

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • Test addition or update

Changes Made

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed
  • All existing tests pass

Migration Safety (if applicable)

  • Migration safety checker passes (./scripts/check-migration-safety.sh)
  • Migration follows safe patterns (see docs/migration-safety.md)
  • Migration tested with rollback
  • Migration documented in PR description

Checklist

  • My code follows the style guidelines (CONTRIBUTING.md)
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Pre-Submission Checks

  • cargo fmt --all -- --check passes
  • cargo clippy -- -D warnings passes
  • cargo build succeeds
  • cargo test passes

Screenshots (if applicable)

Additional Context

Reviewer Notes

…ests

Adds `synapse graphql query` subcommand that POSTs raw GraphQL queries to
/graphql, handles application-level errors (HTTP 200 + errors array) with
exit code 1, and supports --format table/json output. Includes 6 integration
tests covering happy paths, error cases, and JSON validity.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@marvs8 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Mac-5 Mac-5 merged commit 2dfac53 into Synapse-bridgez:main Jun 30, 2026
0 of 2 checks 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.

Rust CLI: test coverage for synapse graphql query Rust SDK: implement admin.bulk_update_status(ids, new_status)

2 participants