Skip to content

Commit 48af9e7

Browse files
chore(nimbus): remove GraphQL API (graphene-django) (#14892)
Because * The Nimbus UI was fully migrated to Django form views (HTMX) * Integration tests were decoupled from GraphQL in PRs #14815 and #14842 * The GraphQL API at `/api/v5/graphql` is no longer used by any client * Removing it reduces maintenance burden, dependencies, and attack surface This commit * Deletes the GraphQL schema, queries, mutations, types, and inputs * Deletes the `GrapheneExceptionMiddleware` * Removes `graphene-django` and `graphene-file-upload` from dependencies * Removes `GRAPHENE` settings and `graphql_url` context processor * Removes the `/api/v5/graphql` URL route (CSV, YAML, FML endpoints preserved) * Removes GQL-only serializers (`NimbusExperimentSerializer`, `CloneSerializer`, and their mixins/validators) while keeping Review, CSV, YAML, and FML serializers * Removes unused `with_owner_features()` queryset method from models * Deletes all graphene type stubs (`typings/graphene*`) * Deletes GQL mutation, query, and serializer test files * Adds test coverage for `TargetingMultipleKintoCollectionsError` exception paths * Net removal: ~12,800 lines across 107 files Fixes #14890 --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ccd21a2 commit 48af9e7

File tree

107 files changed

+36
-12894
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+36
-12894
lines changed

experimenter/experimenter/base/context_processors.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

experimenter/experimenter/base/graphene.py

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +0,0 @@
1-
import graphene
2-
3-
from experimenter.experiments.api.v5.mutations import Mutation
4-
from experimenter.experiments.api.v5.queries import Query
5-
6-
schema = graphene.Schema(query=Query, mutation=Mutation)

experimenter/experimenter/experiments/api/v5/inputs.py

Lines changed: 0 additions & 129 deletions
This file was deleted.

experimenter/experimenter/experiments/api/v5/mutations.py

Lines changed: 0 additions & 100 deletions
This file was deleted.

experimenter/experimenter/experiments/api/v5/queries.py

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)