-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$250] [Simple AA in NewDot] Update the approval chain / next receiver logic to handle correct optimistic next approver in Advanced Approval cases #52458
Comments
Job added to Upwork: https://www.upwork.com/jobs/~021856641526591668663 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
Triggered auto assignment to @puneetlath ( |
cc @nkdengineer in case you're interested to work on this, since you worked on #51001 recently |
@Beamanator I'd like to work on this. |
📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Thank you @nkdengineer 👍 Please feel free to ask questions here before starting your PR IF you have any, either way I will try to do a very detailed review 🙏 |
Sure. |
Update:
|
@Beamanator I created a draft here. Please help test it with your local backend. Now I can only test with two rule approvers because it's marked as approved after the first rule approver approves the expense report. |
Some problems I've seen so far in my testing
Can you please try that and see if you reproduce the issue? As for the approval order when there's multiple category approvers, i think i see the problem in the back end that i'll start working on a fix for |
@Beamanator I tested this case and |
Ok I tested this a few times, and somehow my first test has the same bug I reported before, BUT I'm not 1000% sure if there was some bad setup... When I continued testing, everything worked out perfectly 😅 - multiple times @nkdengineer my backend PR fix is up for review, hopefully can get merged today but probably won't get deployed till tomorrow at the earliest |
FYI backend PR was merged earlier today, hasn't been deployed yet |
@nkdengineer backend PR was deployed 🙏 please continue with this one & let me know if you hit any more bugs |
@puneetlath, @Beamanator, @ntdiary, @nkdengineer Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@Beamanator Ah checked my setting approval mode and in my reported case it's |
Okkkk that makes much more sense - thanks @nkdengineer 🙏 can you please test again on Advance Approval, and if it's working we can try to get the PR ready for that case? Hopefully today / tomorrow I'll get the fix in for |
Will re-test today. |
@Beamanator Tested and it works perfectly. Will complete the video and open the PR tomorrow. |
Amazing, that's great to hear 👍 👍 |
FYI backend PR merged now, may not get deployed till tomorrow - we'll see |
1 similar comment
FYI backend PR merged now, may not get deployed till tomorrow - we'll see |
@ntdiary The PR is ready for review. cc @Beamanator |
@Beamanator, does this mean that category/tag rules should also work in the S&A flow? If so, I think the scenario of automatic delayed submission might not be correct, the correct approver here should be My test data: basic-tag-test.mp4 |
Yes, only if the policy is a Control policy, NOT on Collect 👍 And ok hmm, looking at your video, if it was automatically submitted yesterday, it may not have picked up the most recent backend changes I made... Can you test again today? Also if this is a new bug in "automatic delayed submission / harvesting" then I will create a new issue for that to fix |
@Beamanator, The approval has proceeded as expected. BTW, did we push the |
Ooohhh goood question - I see that we should return updated Next Steps for the approver, but we may not live update that for all clients when we forward / approve 🤔 Thanks for reporting that! I will make sure to look into that |
Ok I just discussed internally & we found the expected category vs tag approver sort order for NewDot here, and here's what we came up with: Category vs Tag approver order (for now):
|
@Beamanator Currently, the transaction data in the frontend only have the |
Ooh good shout @nkdengineer - I will fix that in a PR today which should get merged tomorrow |
PR was merged, should get deployed later today 🙏 |
Good, I will complete the order after the PR is deployed. |
I was OOO yesterday :D but the PR was deployed 👍 |
Updated the PR. |
The PR disappeared due to some strange reason. 🤔 |
I'm back. |
welcome!! 🤣 |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: Current
Reproducible in staging?: Y
Reproducible in production?: Y
Expensify/Expensify Issue URL: https://github.com/Expensify/Expensify/issues/430318
[1] Action Performed:
[1] Expected Result:
[2] Action Performed:
submitsTo
Approver AforwardsTo
Approver BforwardsTo
workspace ownersubmitsTo
of Approver C[2] Expected Result:
Implementation details
ReportUtils.getApprovalChain
This function should ONLY return the submitter's approval chain based on the current
policy.employeeList
data.We need to start including category & tag approvers in this function. Category approvers should come first, then tag approvers, then approvers in
employeeList
.Here's what we have in C++ which should give a good starting point:
IOU.getNextApproverAccountID
This function should figure out who, in the policy's current approvalChain (built by buildApproverChain above) is next in line to approve the report.
This function will also check IF the report has been previously approved by someone in the approval chain - if so, they will be skipped.
Here's what we have in C++ which should give a good starting point:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: