-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[$250] [Held requests][HIGH] Hold button on expense preview appears only if open the expense first #47241
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
Comments
Triggered auto assignment to @jliexpensify ( |
Triggered auto assignment to @francoisl ( |
We think that this bug might be related to #wave-collect - Release 1 |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
This is definitely related to the changes I've made in the hold cleanup PR, please assign me so I can look into fixing this issue. |
I don't this this is a regression but a new case to be handled. |
Sounds good, assigned to @cdOut and going to demote to non-blocker. |
I have a feeling this is related to some other issues in this list and OpenReport. CC: @robertjchen |
It looks like this is still a strictly frontend issue? The |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
@robertjchen Feel free to export the issue for the community next time! |
https://expensify.slack.com/archives/C01GTK53T8Q/p1742332226593539 posted for visibility here |
This comment has been minimized.
This comment has been minimized.
They're on the But we also need them on And it should be null or false on |
@ntdiary Eep! 4 days overdue now. Issues have feelings too... |
Yeah, we still need to optimize the BE logic for these two fields, and then FE can create a PR to use them to fix this issue. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
ProposalPlease re-state the problem that we are trying to solve in this issue.The "Hold" button on the expense preview appears only if the expense is opened first. What is the root cause of that problem?The "Hold" button on the expense preview does not appear because the necessary child data to determine if an expense can be held is only available after fully opening the expense, rather than being included in the preview action. What changes do you think we should make in order to solve the problem?
if (isReportPreviewAction(parentReportAction) && parentReportAction.childCanHold !== undefined && parentReportAction.childCanUnhold !== undefined) {
return {
canHoldRequest: parentReportAction.childCanHold,
canUnholdRequest: parentReportAction.childCanUnhold,
};
}
type === CONST.CONTEXT_MENU_TYPES.REPORT_ACTION && areHoldRequirementsMet && canHoldUnholdReportAction(moneyRequestAction ?? reportAction).canUnholdRequest,
...
type === CONST.CONTEXT_MENU_TYPES.REPORT_ACTION && areHoldRequirementsMet && canHoldUnholdReportAction(moneyRequestAction ?? reportAction).canHoldRequest,
const areHoldRequirementsMet =
(!isInvoiceReport &&
isMoneyRequestOrReport &&
!isArchivedNonExpenseReport(transactionThreadReportID ? childReport : parentReport, transactionThreadReportID ? childReportNameValuePairs : parentReportNameValuePairs)) ||
(!!reportAction && !moneyRequestAction); Result: Untitled.movalso i notice a problem where the backend doenst update the What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?NA What alternative solutions did you explore? (Optional)NA |
@abzokhattab, that's a good point. It reminds me that when a |
@ntdiary Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
👋 Hi, how are we going with this issue @ntdiary ? |
@jliexpensify, we need the backend to confirm and fix a few points:
With these clarifications, the FE should be able to propose a more robust solution. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Got it, thanks for the update! cc @robertjchen for this comment |
@ntdiary Eep! 4 days overdue now. Issues have feelings too... |
reviewing |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@ntdiary Still overdue 6 days?! Let's take care of this! |
this week |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
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: 9.0.19-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4845380&group_by=cases:section_id&group_order=asc&group_id=309128
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Precondition:
Steps:
Expected Result:
There should be Hold option when approver open the right click menu from expense
Actual Result:
Hold button on expense preview appears only if open the transaction thread page first
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6569910_1723470417784.Recording__3689.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @robertjchenThe text was updated successfully, but these errors were encountered: