Problem
The frontend of App is removing a workspace approval by setting submitsTo to an empty string for all employees. The backend does not allow for submitsTo to be an empty string, so the backend throws a parameter validation error.
Why this is important to solve?
The frontend and the backend need to both be aligned with how removing an approver works so that the logic is consistent.
Solution
Update the backend to allow an empty submitsTo value for SetWorkspaceApproval, which should trigger this logic to set the submitsTo to the default approver on the policy.
cc @blazejkustra
Problem
The frontend of App is removing a workspace approval by setting
submitsToto an empty string for all employees. The backend does not allow forsubmitsToto be an empty string, so the backend throws a parameter validation error.Why this is important to solve?
The frontend and the backend need to both be aligned with how removing an approver works so that the logic is consistent.
Solution
Update the backend to allow an empty
submitsTovalue forSetWorkspaceApproval, which should trigger this logic to set thesubmitsToto the default approver on the policy.cc @blazejkustra