Skip to content

Commit

Permalink
Merge pull request #1913 from luytena/feat-schema-case-family
Browse files Browse the repository at this point in the history
feat(workflow): include family field on case schema model
  • Loading branch information
luytena authored Nov 9, 2022
2 parents 1d531e4 + aea98f9 commit 72424c1
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 72424c1

Please sign in to comment.