Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update graphene-django #1140

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion caluma/caluma_core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,13 @@ class DjangoConnectionField(DjangoConnectionField):
This can be removed, when (or better if)
https://github.com/graphql-python/graphql-relay-py/issues/12
is resolved.
TODO: properly implement max_limit, see
https://github.com/graphql-python/graphene-django/blob/b552dcac24364d3ef824f865ba419c74605942b2/graphene_django/fields.py#L133
"""

@classmethod
def resolve_connection(cls, connection, args, iterable):
def resolve_connection(cls, connection, args, iterable, max_limit=None):
iterable = maybe_queryset(iterable)
if isinstance(iterable, QuerySet):
# only query count on database when pagination is needed
Expand Down
3 changes: 3 additions & 0 deletions caluma/caluma_form/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,9 @@ class Meta:


class SaveDocument(Mutation):
class Input:
id = graphene.String()

class Meta:
serializer_class = serializers.DocumentSerializer
model_operations = ["create", "update"]
Expand Down
3 changes: 3 additions & 0 deletions caluma/caluma_workflow/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@ class Meta:


class SaveCase(Mutation):
class Input:
id = graphene.String()

class Meta:
serializer_class = serializers.SaveCaseSerializer
model_operations = ["create", "update"]
Expand Down
7 changes: 3 additions & 4 deletions caluma/tests/__snapshots__/test_schema.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -1557,7 +1557,6 @@
document: ID!
meta: JSONString
value: String
valueId: ID
clientMutationId: String
}

Expand Down Expand Up @@ -2326,9 +2325,9 @@
task: Task!
status: WorkItemStatus!
meta: GenericScalar
addressedGroups: [String]!
controllingGroups: [String]!
assignedUsers: [String]!
addressedGroups: [String!]!
controllingGroups: [String!]!
assignedUsers: [String!]!
case: Case!
childCase: Case
document: Document
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ django-localized-fields==6.2
django-postgres-extra==2.0.2
djangorestframework==3.12.2
django_simple_history==2.12.0
graphene-django==2.8.2
graphene-django==2.12.1
idna==2.10
minio==7.0.2
psycopg2-binary==2.8.6
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def run(self):
"django-postgres-extra<3",
"djangorestframework<4",
"django_simple_history<3",
"graphene-django<=2.8.2",
"graphene-django<=2.12.1",
"idna<3",
"minio >= 7, < 8",
"psycopg2-binary<3",
Expand Down