Skip to content

Issue #1504: fix: let the orchestrator parse the Dagster 1.13 webserver's schema - #1515

Merged
bjagg merged 1 commit into
LIF-Initiative:mainfrom
bjagg:fix/orchestrator-graphql-core
Nov 13, 2026
Merged

bjagg merged 1 commit into
LIF-Initiative:mainfrom
bjagg:fix/orchestrator-graphql-core

Conversation

@bjagg

@bjagg bjagg commented Nov 13, 2026

Copy link
Copy Markdown
Contributor
Description of Change

Every orchestrator job submission on dev fails:

TypeError: deprecated locations must be specified as a collection of DirectiveLocation enum values.
dagster_graphql.client.utils.DagsterGraphQLClientError: Exception occured during execution of query ... repositoriesOrError ...

The Query Planner then returns 503, and the MDR Export Playground shows "Unable to retrieve learner data from Query Planner".

Cause: the Dagster webserver now runs 1.13.26 (#1504). The orchestrator's dagster-graphql client builds a client schema from the webserver's introspection, using graphql-core 3.2.6, and that graphql-core can't build the newer schema. I reproduced this locally: I took the introspection result from dagster-graphql==1.13.26's schema and ran build_client_schema on it. graphql-core 3.2.6 and 3.2.7 fail with the same TypeError, and 3.2.14 succeeds.

Fix: projects/lif_orchestrator_api/pyproject.toml gets a graphql-core>=3.2.14,<3.3 floor. gql 3.5.1–3.5.3 cap graphql-core below 3.2.7, and dagster-graphql 1.11.4 needs gql < 4, so the lock resolves:

  • graphql-core: 3.2.6 → 3.2.14
  • gql: 3.5.3 → 3.5.0, the last 3.x that allows graphql-core < 3.3
  • dagster and dagster-graphql: unchanged at 1.11.4

Limitations:

  • The lock was regenerated with uv 0.13.4, which also bumps the lockfile revision from 2 to 5.
  • Demo isn't affected by this PR.
Related Issues

Refs #1504

Type of Change
  • Bug fix (non-breaking change which fixes an issue)
Project Area(s) Affected
  • projects/

Checklist
  • commit message follows commit guidelines (see commitlint.config.mjs)
  • code passes linting checks (uv run ruff check)
  • code passes formatting checks (uv run ruff format)
  • code passes type checking (uv run ty check)
  • pre-commit hooks have been run successfully
Testing
  • Reproduced the failure and verified the fix locally: graphql-core 3.2.14 with gql 3.5.0 and dagster-graphql 1.11.4 builds the 1.13.26 schema, and DagsterGraphQLClient imports cleanly.
  • uv run pytest test/ -k orchestrator passes 51 tests.
  • uv lock --check passes in projects/lif_orchestrator_api.
  • After the merge deploys the orchestrator to dev, the check is the MDR Playwright happy path (e2e, @happy-path) against mdr.dev.

There's no unit test, because the failure needs a live Dagster webserver.

🤖 Generated with Claude Code

…r 1.13 webserver's schema

Every orchestrator job submission on dev fails with
`TypeError: deprecated locations must be specified as a collection of
DirectiveLocation enum values`, so exports return "Unable to retrieve
learner data from Query Planner". The webserver now runs Dagster 1.13.26,
whose introspected schema graphql-core 3.2.6 and 3.2.7 can't build into a
client schema; 3.2.14 can (reproduced locally against
dagster-graphql 1.13.26's schema).

gql 3.5.1-3.5.3 cap graphql-core below 3.2.7, and dagster-graphql 1.11.4
needs gql < 4, so the floor on graphql-core selects gql 3.5.0, the last
3.x that allows graphql-core < 3.3. dagster and dagster-graphql stay 1.11.4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bjagg
bjagg merged commit b00ffa0 into LIF-Initiative:main Nov 13, 2026
4 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Current Community Efforts Nov 13, 2026
dereck-symmetry pushed a commit that referenced this pull request Nov 14, 2026
- The Orchestrator API must be rebuilt after #1515 too (graphql-core
  3.2.14+ for the 1.13.26 Dagster webserver), with a row in chapter 8 for
  its TypeError and the planner's 503.
- Overlays: dev is converted; demo and the local seed aren't yet (#1513).
- Seven files under test/scripts/ use testing.postgresql.
- The control plane's workflow note no longer links the closed #1182.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant