If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Expensify/Expensify Issue URL: https://github.com/Expensify/Expensify/issues/430318
Action Performed:
- Create Control policy, with "Manual" scheduled submit, with Advanced Approvals enabled
- Submitter
submitsTo policy owner
- Approver A set as Category Approver for Category
CAT_APPROVER
- Submitter creates expense in workspace chat w/ Category
CAT_APPROVER
- Submitter submits report
Expected Result:
Next manager (approver) should be Approver A
Actual Result:
Error, since we try to submit the report to policy owner (submitter's submitsTo)
Solution Guideline
In PolicyUtils.getSubmitToAccountID, for policies on CONST.POLICY.APPROVAL_MODE.ADVANCED, we currently assume that we should submit to employee.submitsTo ?? defaultApprover`.
However, in OldDot you'll notice that we actually want to submit the report to the category or tag approver before considering the submitter's submitsTo.
So we can either update getSubmitToAccountID to account for those additional approvers (assuming no other related regressions) OR we might have to create a new function for getting the "next submitter" in this case - the assigned contrib should evaluate existing uses of getSubmitToAccountID before determining which solution to follow
Platforms:
Which of our officially supported platforms is this issue occurring on?
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @OfstadC
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Expensify/Expensify Issue URL: https://github.com/Expensify/Expensify/issues/430318
Action Performed:
submitsTopolicy ownerCAT_APPROVERCAT_APPROVERExpected Result:
Next manager (approver) should be Approver A
Actual Result:
Error, since we try to submit the report to policy owner (submitter's
submitsTo)Solution Guideline
In PolicyUtils.getSubmitToAccountID, for policies on CONST.POLICY.APPROVAL_MODE.ADVANCED
, we currently assume that we should submit toemployee.submitsTo ?? defaultApprover`.However, in OldDot you'll notice that we actually want to submit the report to the category or tag approver before considering the submitter's
submitsTo.So we can either update
getSubmitToAccountIDto account for those additional approvers (assuming no other related regressions) OR we might have to create a new function for getting the "next submitter" in this case - the assigned contrib should evaluate existing uses ofgetSubmitToAccountIDbefore determining which solution to followPlatforms:
Which of our officially supported platforms is this issue occurring on?
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @OfstadC