Skip to content

Feat/graphql delta fix#35

Merged
moosebay merged 7 commits intomainfrom
feat/graphql-delta-fix
Mar 5, 2026
Merged

Feat/graphql delta fix#35
moosebay merged 7 commits intomainfrom
feat/graphql-delta-fix

Conversation

@moosebay
Copy link
Contributor

@moosebay moosebay commented Feb 16, 2026

By submitting a PR to this repository, you agree to the terms within the Contributor Covenant Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.

Description

Describe the purpose of this PR along with any background information and the impacts of the proposed change. For the benefit of the community, please do not assume prior context.

Provide details that support your chosen implementation, including: breaking changes, alternatives considered, changes to the API, etc.

If the UI is being changed, please provide screenshots.

References

Include any links supporting this change such as a:

  • GitHub Issue/PR number addressed or fixed
  • StackOverflow post
  • Related pull requests/issues from other repos

If there are no references, simply delete this section.

Testing

Describe how this can be tested by reviewers. Be specific about anything not tested and reasons why.

Please include any manual steps for testing end-to-end or functionality not covered by unit/integration tests.

Also include details of the environment this PR was developed in (platform/browser version).

Checklist

  • I have added a Version Plan for new/changed functionality in this PR
  • All checks for formatting and tests are passing
  • Check if CLI works

moosebay and others added 4 commits March 4, 2026 23:46
Add full-stack GraphQL request support including schema, API,
flow node integration, and UI pages. UI components use semantic
design tokens (neutral, accent, success) for dark mode compatibility.
Wire GraphQL services (NodeGraphQL, GraphQL, GraphQLHeader) into the
CLI so flow nodes with GraphQL steps execute instead of panicking.
Add full YAML round-trip support: export serializes graphql_requests
and graphql flow steps, import deserializes them back with use_request
template resolution.
This commit implements comprehensive GraphQL delta functionality, matching
the HTTP delta system, and fixes critical bugs in delta field updates.

- Add `rgraphql_crud_delta.go` - GraphQL delta CRUD operations
- Add `rgraphql_crud_header_delta.go` - GraphQL header delta operations
- Add `rgraphql_delta_converter.go` - Delta field conversions
- Add `rgraphql_crud_version.go` - Version collection and sync endpoints
- Add delta schema `09_graphql_delta.sql` with proper foreign keys

- Add `rgraphql_crud_assert.go` - GraphQL assertion CRUD
- Add `rgraphql_exec_assert.go` - Assertion execution during requests
- Add `rgraphql_exec_assert_test.go` - Assertion execution tests
- Add `rgraphql_crud_response_assert.go` - Response assertion tracking
- Add frontend assertion UI components

- Add GraphQL response tracking and history UI
- Add response header tracking
- Add version sync for real-time updates

- Fix GraphQL Writer.Update() to check IsDelta flag
- Add UpdateGraphQLDelta SQL query for delta field updates
- Prevents deltas from incorrectly overwriting parent base fields
- Follows HTTP delta pattern exactly

- Add `history.tsx` - GraphQL response history view
- Add `request/assert.tsx` - Request assertion editor
- Add `request/url.tsx` - URL editor component
- Add `response/assert.tsx` - Response assertion viewer
- Add delta route handler
- Update flow nodes to support GraphQL deltas

- Add graphql_assert table with delta support
- Add graphql_response_assert table
- Add UpdateGraphQLDelta query
- Add migration 01KHEX5H_add_graphql_delta.go

- Add .ralph/ and .ralphrc to .gitignore

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@moosebay moosebay force-pushed the feat/graphql-delta-fix branch from a4a5607 to c058518 Compare March 4, 2026 20:46
moosebay added 3 commits March 5, 2026 01:14
- Add GraphQL node copy/paste support in flow editor (server + client)
- Wire GraphQL services into flow RPC (gqls, gqlhs, graphqlStream)
- Add delta-aware GraphQL URL component to flow node settings
- Fix infinite render loop by hoisting create(NodeGraphQLSchema) to module constant
- Fix missing getStepCommon case for GraphQL position data in YAML converter
- Consolidate GraphQL migrations, fix lint/test issues, wire serverrun.go
Wire GraphQL resolver and assert service in CLI, add assertion
export/import across the full YAML pipeline (types, exporter,
converter, importer), fix broken condition expression in example
YAML, and add integration tests that build the CLI binary and
run all YAML flow examples.
Add test:integration nx target that pre-builds the CLI binary and
runs YAML flow integration tests. TestMain skips building when
DEVTOOLS_CLI_BIN is already set to avoid redundant compilation.
@moosebay moosebay merged commit dd163a0 into main Mar 5, 2026
7 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.

1 participant