From 09f9b6d2f19eeec49b26d1105c0b5f34178e935a Mon Sep 17 00:00:00 2001 From: shukryzablah <28762146+shukryzablah@users.noreply.github.com> Date: Fri, 5 May 2023 06:04:22 -0400 Subject: [PATCH 1/2] Remove redundant call to validate (#1393) * Remove redundant call to validate The call to `validate` in the django view is redundant with the validation call in graphql-core. * Remove whitespace --------- Co-authored-by: Firas K <3097061+firaskafri@users.noreply.github.com> --- graphene_django/views.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/graphene_django/views.py b/graphene_django/views.py index d4d98b7..bdc0fdb 100644 --- a/graphene_django/views.py +++ b/graphene_django/views.py @@ -9,7 +9,7 @@ from django.shortcuts import render from django.utils.decorators import method_decorator from django.views.decorators.csrf import ensure_csrf_cookie from django.views.generic import View -from graphql import OperationType, get_operation_ast, parse, validate +from graphql import OperationType, get_operation_ast, parse from graphql.error import GraphQLError from graphql.execution import ExecutionResult @@ -308,11 +308,6 @@ class GraphQLView(View): ), ) ) - - validation_errors = validate(self.schema.graphql_schema, document) - if validation_errors: - return ExecutionResult(data=None, errors=validation_errors) - try: extra_options = {} if self.execution_context_class: From 72a3700856d19c056e515c4f51050acaadd7c574 Mon Sep 17 00:00:00 2001 From: Firas Kafri <3097061+firaskafri@users.noreply.github.com> Date: Fri, 5 May 2023 13:04:47 +0300 Subject: [PATCH 2/2] Update Development Status calassifier (#1409) --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0fc0f88..7407b62 100644 --- a/setup.py +++ b/setup.py @@ -43,7 +43,7 @@ setup( author_email="me@syrusakbary.com", license="MIT", classifiers=[ - "Development Status :: 3 - Alpha", + "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Topic :: Software Development :: Libraries", "Programming Language :: Python :: 3",