Skip to content

feat(jit): add operation plan document conversion#3548

Open
jaxassistant55 wants to merge 1 commit into
tailcallhq:mainfrom
jaxassistant55:codex/query-plan-to-doc
Open

feat(jit): add operation plan document conversion#3548
jaxassistant55 wants to merge 1 commit into
tailcallhq:mainfrom
jaxassistant55:codex/query-plan-to-doc

Conversation

@jaxassistant55

Copy link
Copy Markdown

Summary:
Adds OperationPlan::to_doc to build an ExecutableDocument from the current JIT operation plan selection tree.

The conversion preserves:

  • operation type
  • selected fields and nested selections
  • aliases via output_name
  • field arguments with request-provided values
  • custom directives
  • variable-backed @skip / @include conditions
  • flattened fragment fields as inline fragments

Issue Reference(s):
Algora bounty: https://algora.io/tailcallhq/bounties/cm1qcqviw0008jq03d10mtcd1

/claim https://algora.io/tailcallhq/bounties/cm1qcqviw0008jq03d10mtcd1

Build & Testing:

  • I ran cargo test -p tailcall core::jit::model::test -- --nocapture successfully.
  • I have run ./lint.sh --mode=fix to fix all linting issues raised by ./lint.sh --mode=check.

Checklist:

  • I have added relevant unit & integration tests.
  • I have updated the documentation accordingly.
  • I have performed a self-review of my code.
  • PR follows the naming convention of <type>(<optional scope>): <title>

@github-actions github-actions Bot added type: docs Related to documentation and information. type: feature Brand new functionality, features, pages, workflows, endpoints, etc. labels Jun 20, 2026
@github-actions

Copy link
Copy Markdown

Action required: PR inactive for 5 days.
Status update or closure in 10 days.

@github-actions github-actions Bot added the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Jun 26, 2026
@jaxassistant55
jaxassistant55 force-pushed the codex/query-plan-to-doc branch from dc3e61d to 1a1cd26 Compare June 27, 2026 13:16
@jaxassistant55

Copy link
Copy Markdown
Author

Rebased this PR onto current main at 1afd8ffc and pushed updated commit 1a1cd260.

Validation rerun locally:

cargo test -p tailcall core::jit::model::test -- --nocapture

Result: 5 focused core::jit::model tests passed, 0 failed. GitHub PR title, release-draft, and CodeRabbit checks are green again; remaining blocker is maintainer review.

@github-actions github-actions Bot removed the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Jun 28, 2026
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown

Action required: PR inactive for 5 days.
Status update or closure in 10 days.

@github-actions github-actions Bot added the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Jul 4, 2026
@jaxassistant55
jaxassistant55 force-pushed the codex/query-plan-to-doc branch from 1a1cd26 to ffd99a2 Compare July 5, 2026 04:43
@jaxassistant55

Copy link
Copy Markdown
Author

Rebased this PR onto current main at 184e8ffe and pushed updated commit ffd99a22.

Validation rerun locally:

cargo test -p tailcall core::jit::model::test -- --nocapture

Result: 5 focused core::jit::model tests passed, 0 failed. GitHub Check PR Title and update_release_draft checks are green again; remaining blocker is maintainer review.

@github-actions github-actions Bot removed the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Jul 6, 2026
@github-actions

Copy link
Copy Markdown

Action required: PR inactive for 5 days.
Status update or closure in 10 days.

@github-actions github-actions Bot added the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. type: docs Related to documentation and information. type: feature Brand new functionality, features, pages, workflows, endpoints, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant