Closed m-natarajan closed 1 month ago
Triggered auto assignment to @dylanexpensify (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
@dylanexpensify Can you please assign or add @allgandalf as C+ as per this comment https://expensify.slack.com/archives/C049HHMV9SM/p1721974304223329?thread_ts=1721974234.850719&cid=C049HHMV9SM
Remove member confirmation is same for approver as well as member
We don't check the policy.approver
value on isApprover
function here
https://github.com/Expensify/App/blob/9901ca3a554f4c2991b56862dfb8e43d2e1aba80/src/libs/actions/Policy/Member.ts#L105-L110
Return true
in isApprover
function if policy?.approver
is equal to employeeLogin
if(policy?.approver === employeeLogin) {
return true;
}
We see the same prompt for both
From this issue, we only want to display the warning for the approver with Advanced Approval configured
If we want to show the warning for the approver from workflows, we can return true here if policy.approver
is employeeLogin
.
And we should change the policy approver to the owner in optimistic data if the policy approver is removed and reset it in failure data https://github.com/Expensify/App/blob/5e6527613d0f234fcb22507b878697a2bec356c5/src/libs/actions/Policy/Member.ts#L294
NA
@dylanexpensify Can you please assign or add @allgandalf as C+ as per this comment https://expensify.slack.com/archives/C049HHMV9SM/p1721974304223329?thread_ts=1721974234.850719&cid=C049HHMV9SM
Yeah would be good if i get to review this as C+ as i have prior context
@dylanexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
@dylanexpensify Eep! 4 days overdue now. Issues have feelings too...
reviewing today!
Job added to Upwork: https://www.upwork.com/jobs/~01dabd4921b845c1ea
Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 (External
)
π£ @allgandalf π An offer has been automatically sent to your Upwork account for the Contributor role π Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Keep in mind: Code of Conduct | Contributing π
done!
Lets go with @nkdengineer 's proposal here, solution also makes sense to me!
πππ C+ reviewed
Triggered auto assignment to @thienlnam, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
π£ @nkdengineer π An offer has been automatically sent to your Upwork account for the Contributor role π Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Keep in mind: Code of Conduct | Contributing π
Moving along
Sorry, was stuck with something super urgent internally π₯ (slack for reference), I will review the PR today
@thienlnam can you please check the comments here, thanks
Approved the PR, all yours @thienlnam :bow:
Nice! deployed to prod two days ago!
[x] The PR that introduced the bug has been identified. Link to the PR: Not a bug, but we originally planned it to be this way in https://github.com/Expensify/App/issues/43885
[x] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: N/A
[x] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N/A
[x] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
Verify that: We have different prompt for the approver.
Do we agree π or π
@dylanexpensify , this looks ready for payment
Payment summary:
Contributor: @nkdengineer $250 via Upwork Contributor+: @allgandalf $250 via Upwork
Please apply/request!
Payments done!
If you havenβt already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.13-3 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: @allgandalf Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1721974234850719
Action Performed:
remove from workspace
Observe the remove member promptapprover profile
remove from workspace
Observe the remove member promptExpected Result:
We should have different prompt for the approver warning the user that the current member is also approver
Actual Result:
We see the same prompt for both
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
https://github.com/user-attachments/assets/45a32e31-4c6c-4005-8031-45369e79a064
Add any screenshot/video evidence
View all open jobs on GitHub
https://github.com/user-attachments/assets/a56a34ee-08ad-4eae-be03-b861e3e4afdc
Upwork Automation - Do Not Edit