Skip to content

Commit

Permalink
fix(schema): reopen case schema clarification
Browse files Browse the repository at this point in the history
The reopen case mutation had a "required" ID in the schema, but when
regenerating, the requiredness was removed. Thus, adding an explicit
`required=True` to keep the semantics as has been.

Implicitly, the schema takes on the docstring of the `workItems` parameter
as well
  • Loading branch information
winged committed Jul 4, 2022
1 parent ec4c899 commit a394273
Show file tree
Hide file tree
Showing 2 changed files with 3 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 @@ -315,7 +315,7 @@ class Meta:

class ReopenCase(Mutation):
class Input:
id = graphene.ID()
id = graphene.ID(required=True)
work_items = graphene.List(
graphene.ID,
required=True,
Expand Down
2 changes: 2 additions & 0 deletions caluma/tests/__snapshots__/test_schema.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -2041,6 +2041,8 @@

input ReopenCaseInput {
id: ID!

"""List of work item ids to be readied when the case is reopened"""
workItems: [ID]!

"""Provide extra context for dynamic jexl transforms and events"""
Expand Down

0 comments on commit a394273

Please sign in to comment.