-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Collect approvers] [$1000] Expense - Error appears when admin tries to pay a request without having approved it #34857
Comments
Triggered auto assignment to @mallenexpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~0130f77ed31ac8823b |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
We think that this bug might be related to #wave7. |
Proposal Root Cause Analysis: if (_.isEmpty(selectedParticipants)) { Proposed Solution: Updated Code: Introduce an Admin Flag: Add a new state or prop to the component to indicate whether the user is an admin. For simplicity, let's assume a prop isAdmin is passed to the component. Modify the Conditional Check: const confirm = useCallback(
); Testing Considerations: |
Will check this issue in my morning. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@abdulrahuman5196 please review the above. @RachCHopkins I agree these seems to fit with Wave 7 so I've added to the project there. Let me know if you disagree. |
Reviewing now |
@promisingcoder Could you kindly update the proposal as per the proposal template - https://raw.githubusercontent.com/Expensify/App/main/contributingGuides/PROPOSAL_TEMPLATE.md Meanwhile I did a high level check. Could you kindly provide more information on how |
@mallenexpensify Could you kindly provide information on how to create this pre-requisite?
|
@abdulrahuman5196 SettlementButton: This is a button that, when pressed, triggers the payment process. It's used within the MoneyRequestConfirmationList component. The action of pressing the SettlementButton triggers a function called confirm in the MoneyRequestConfirmationList component. This function checks if there are any selected participants and if a payment method is provided. If these conditions are met, it sets a state called didConfirm to true and calls another function, onSendMoney, with the selected payment method as an argument. The proposal suggests modifying the confirm function to accommodate admin users who need to confirm payments but are not participants in the traditional sense. Currently, the confirm function terminates early if the selectedParticipants array is empty, which is often the case for admin users. By introducing an additional check for admin users in the confirm function, the SettlementButton can successfully trigger the payment process even when the user is an admin. So, in simple terms, the SettlementButton starts the action that the confirm function in the MoneyRequestConfirmationList component carries out. The proposed changes aim to make sure that this process works correctly for all users, including admins. |
@abdulrahuman5196 , most of that can be done view OldDot, expensify.com. The part I'm unsure about is 'added a BA` (which I'm assuming is Bank Account) Ah ha, looks like this should work |
Will check on the old dot setup in my morning |
@mallenexpensify @abdulrahuman5196 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Still having trouble with setup, will try today or reach out in slack |
Why's this one held still? The linked issue is ready for payment tomorrow? |
Unsure @trjExpensify . My process for held issues is to hover over the link to see if it's open or closed. Musta misread it for this one. Taking off hold, Added |
@mallenexpensify, @abdulrahuman5196 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Waiting on the retest. |
Waiting on retest |
waiting on retest |
Issue is reproducible during KI retests. 1712169548259.cc.mp4 |
Just tried to reproduce and can't. @abdulrahuman5196 , can you please try? I could be holding something wrong but I def have a bank account connected on a collect workspace. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@mallenexpensify, @abdulrahuman5196 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Actually, Don't understand this reproduced video. |
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: 1.4.28-0
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: Applause - Internal Team
Slack conversation:
Action Performed:
Pre-requisite: user must have created a collect workspace and
added a BA. With an employee account, create a request and submit it
Expected Result:
It should be possible to pay the expense without problems
.
Actual Result:
Admin can not pay the expense without approving it first, an error message appears
Unexpected error, please try again later
An unexpected error ocurred. Please try again later
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6348754_1705769462013.bandicam_2024-01-19_18-11-16-153.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: