Skip to content

Commit

Permalink
feat(workflow): include family field on case schema model
Browse files Browse the repository at this point in the history
Allow the family field to be fetched through GraphQL for
the case model.
  • Loading branch information
luytena committed Nov 7, 2022
1 parent 23014ad commit aea98f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion caluma/caluma_workflow/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,9 @@ def resolve_family_work_items(self, info, **args):

class Meta:
model = models.Case
exclude = ("family",)
interfaces = (relay.Node,)
connection_class = CountableConnectionBase
fields = "__all__"


class SaveWorkflow(UserDefinedPrimaryKeyMixin, Mutation):
Expand Down
3 changes: 3 additions & 0 deletions caluma/tests/__snapshots__/test_schema.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,9 @@
"""The ID of the object"""
id: ID!

"""Family id which case belongs to."""
family: Case

"""Time when case has either been canceled or completed"""
closedAt: DateTime
closedByUser: String
Expand Down

0 comments on commit aea98f9

Please sign in to comment.