-
Notifications
You must be signed in to change notification settings - Fork 132
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
Set default submission review status when enabled #1743
Comments
This may be quite painful to do for forms that already have preexisting instances. When the feature is enabled we would have to update all the |
Any opinions on this approach @ukanga ? |
Perhaps we need to use constants, Currently, the way to achieve that is doing the same query for pending would be to use the construct:
Perhaps we may need to add a special case to handle when the field does not exist. Hence, maybe, having a
|
@DavisRayM I'm currently waiting for the fix for enabling submission reviews so I can be able to test this |
@WNjihia Let's go ahead and test this using a tool like postman, curl or httpie. We need to make a request to the metadata endpoint to create the submission review then query the data endpoint using the query params mentioned in this PR |
It would be nice if the
data
endpoint would return submission review status and submission review comments by default when the submission review feature has been enabled for a specific form. A suggestion would be to have the following when submission review has been enabled and the instance has no submission review because3
is the code forPending
status:This will also make it easier to filter data by submission review status especially when the data doesn't have a submission review. For example would work well:
Aha! Link: https://ona.aha.io/features/PROD-189
The text was updated successfully, but these errors were encountered: