You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: synapseclient/models/form.py
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -75,23 +75,29 @@ class FormData(FormDataMixin, FormDataProtocol):
75
75
def_validate_filter_by_state(
76
76
self,
77
77
filter_by_state: List["StateEnum"],
78
-
allow_waiting_submission: bool=True,
78
+
as_reviewer: bool=False,
79
79
) ->None:
80
80
"""
81
81
Validate filter_by_state values.
82
82
83
83
Arguments:
84
84
filter_by_state: List of StateEnum values to validate.
85
-
allow_waiting_submission: If False, raises error if WAITING_FOR_SUBMISSION is present.
85
+
as_reviewer: If True, uses the POST POST /form/data/list/reviewer endpoint to review submission. If False (default), use POST /form/data/list endpoint to list only FormData owned by the caller.
86
86
"""
87
-
# Define valid states based on whether WAITING_FOR_SUBMISSION is allowed
Note: WAITING_FOR_SUBMISSION is NOT allowed when as_reviewer=True.
200
206
synapse_client: The Synapse client to use for the request.
201
207
202
-
as_reviewer: If True, uses the reviewer endpoint (requires READ_PRIVATE_SUBMISSION
203
-
permission). If False (default), lists only FormData owned by the caller.
208
+
as_reviewer: If True, uses the POST POST /form/data/list/reviewer endpoint to review submission. If False (default), use POST /form/data/list endpoint to list only FormData owned by the caller.
204
209
205
210
Yields:
206
211
FormData objects matching the request.
@@ -262,14 +267,9 @@ async def list_for_review():
262
267
raiseValueError("'group_id' must be provided to list FormData.")
0 commit comments