Repository navigation
Description
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.61-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5207795&group_by=cases:section_id&group_order=asc&group_id=309128
Email or phone of affected tester (no customers): gocemate+workspaceemployee235@gmail.com
Issue reported by: Applause - Internal Team
Action Performed:
Preconditions:
- Login as the owner of the workspace
- Create a workspace
- Invite the approver and employee
- Navigate to more features
- Enable "workflows"
- On the "Workflow" editor - enable "Add Approvals"
- Set the Approver account as the Approver
Steps: - As Employee submit 2 expenses to Workspace chat
- As Employee hold the first expense
- Verify there is a red dot on the expense that is on Hold on both sides ( employee and approver)
- As Approver unhold the first expense
- Take a look at the first expense as Employee
Expected Result:
Red dot should disappears in real time since the expense is unheld
Actual Result:
Red dot remains on employee side when approver unhold expense that is hold by employee
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
- Android: Standalone
- Android: HybridApp
- Android: mWeb Chrome
- iOS: Standalone
- iOS: HybridApp
- iOS: mWeb Safari
- MacOS: Chrome / Safari
- MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidence
Bug6663641_1731496245368.Recording__4503.mp4
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~021856774853921792737
- Upwork Job ID: 1856774853921792737
- Last Price Increase: 2024-11-20
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
melvin-bot commentedon Nov 13, 2024
Triggered auto assignment to @greg-schroeder (
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.melvin-bot commentedon Nov 13, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021856774853921792737
[-]Hold - Red dot remains when approver unhold expense hold by employee[/-][+][$250] Hold - Red dot remains when approver unhold expense hold by employee[/+]melvin-bot commentedon Nov 13, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra (
External)NJ-2020 commentedon Nov 13, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Hold - Red dot remains when approver unhold expense hold by employee
What is the root cause of that problem?
It's because when the approve unhold the expense, the transaction violations data for hold expense still remains, so when we check here if the transaction has violations it will return true
App/src/components/ReportActionItem/ReportPreview.tsx
Line 347 in 74f982c
App/src/components/ReportActionItem/ReportPreview.tsx
Lines 157 to 160 in 74f982c
But if we try to check the transaction is hold or not by using
ReportUtils.hasHeldExpensesit will return false because we check the value oftransaction.comment.holdis true or not using!!, since the approver unhold the expense, thetransaction.comment.holdbecome empty string which leads this function to return falseApp/src/components/ReportActionItem/ReportPreview.tsx
Line 213 in 74f982c
App/src/libs/ReportUtils.ts
Line 7737 in a4c3a4b
What changes do you think we should make in order to solve the problem?
Inside the
hasViolationfunction, we can check if the violation name isholdthen we can use theisOnHoldutils to check if thetransaction.comment.holdis true or not by using!!App/src/libs/ReportUtils.ts
Line 7737 in a4c3a4b
Result
Screen.Recording.2024-11-13.at.15.13.33.mov
What alternative solutions did you explore? (Optional)
Shahidullah-Muffakir commentedon Nov 13, 2024
Edited by proposal-police: This proposal was edited at 2024-11-14 00:27:46 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
When approver unhold an expense the hold status is not updating in the employee UI
What is the root cause of that problem?
the
unholdMoneyRequestOnSearchis not removing the hold violation for the current transaction for optimisticData and successData :App/src/libs/actions/Search.ts
Line 183 in fe140c7
like we do in the :unholdRequest
App/src/libs/actions/IOU.ts
Lines 7859 to 7863 in fe140c7
and
App/src/libs/actions/IOU.ts
Lines 7866 to 7876 in fe140c7
What changes do you think we should make in order to solve the problem?
for unholdMoneyRequestOnSearch , we can do same like unholdRequest add this in the optimisticData ,
add
and also
What alternative solutions did you explore? (Optional)
we can add one more check next to the hasViolations in the :
App/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx
Line 149 in 826e8eb
if the
shouldShowHoldMessageis false, then there should be some violations other than of type hold.and then use it in the shouldShowRBR as:
const shouldShowRBR =.. || (hasViolations && (hasViolationOtherThanHold ||shouldShowHoldMessage)) ||greg-schroeder commentedon Nov 15, 2024
Next up is proposal review
75 remaining items
greg-schroeder commentedon Apr 29, 2025
Pending volunteer
greg-schroeder commentedon May 12, 2025
Pending volunteer
greg-schroeder commentedon May 21, 2025
Same as above
greg-schroeder commentedon Jun 3, 2025
I'm going to close this for inactivity for now as it's more than 6 months old. Please comment or reopen if you disagree.