-
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
[HOLD for payment 2024-12-30] [HOLD on #53914] [$250] Invoices - Invoice title is not changed after it is renamed #53694
Comments
Triggered auto assignment to @twisterdotcom ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Invoice title is not changed after it is renamed What is the root cause of that problem?We call Lines 4051 to 4053 in 2dcfd50
This results in sending the Lines 3086 to 3088 in 2dcfd50
Which is why even when we update the report name it doesn't reflect What changes do you think we should make in order to solve the problem?We should always return if (isInvoiceReport(report)) {
formattedName = report?.reportName;
} What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We should write a unit test to render the header and report details page for a invoice report. And render the text to be matched with the reportName of the invoice. What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Invoice title doesn't change when renamed. What is the root cause of that problem?I believe the real issue here is that we let the user rename the report title field. The title field menu will show if there exists a report field with the type of title. App/src/pages/ReportDetailsPage.tsx Lines 752 to 755 in 36b9b44
The invoice report itself doesn't have any report field, but the policy linked to the invoice has. If we see the logic in MoneyReportView, we will only render the report field if it's an expense report in a paid policy. App/src/components/ReportActionItem/MoneyReportView.tsx Lines 107 to 116 in 36b9b44
The Lines 3047 to 3049 in 36b9b44
What changes do you think we should make in order to solve the problem?So, I think the solution here is to not show the report field if it's not an expense report in a paid policy. We can do that by early return here. App/src/pages/ReportDetailsPage.tsx Lines 752 to 755 in 36b9b44
And since the report field title is now undefined, App/src/pages/ReportDetailsPage.tsx Line 878 in 36b9b44
which shows the report name for report with What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?I think we can merge the invoice report to Onyx and render the ReportDetailsPage. Then, verify that the App/src/pages/ReportDetailsPage.tsx Line 687 in 36b9b44
|
Job added to Upwork: https://www.upwork.com/jobs/~021865017078260739311 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hungvu193 ( |
I remember reviewing a similar issue in the past with editing the report title field, and we ended up deciding to disable editing (I can't find the issue at the moment :/). @twisterdotcom Can you confirm the expected behavior here? Should we allow user to edit the title field of an Invoice request? |
@twisterdotcom, @hungvu193 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
little bump @twisterdotcom |
Do you know where that other issue is? I can sort of see the logic in not allowing edits to avoid somebody changing it from say "Services - July 2024" to "Services - December 2024", because you'd expect a new invoice. But we would want them to be able to edit it from "Services Jluy 2023" to "Services - July 2024" - basically fix mistakes, not block improper actions. On balance, I think allowing the former will resolve more confusion and customer cases than blocking the latter, so let's go ahead with allowing edits. |
hey, there is a issue to fix the invoice title #53914, I think we should close that issue and merge it into this one |
Asked @rezkiy37 in there. |
Hi, I am Michael (Mykhailo) from Callstack, an expert agency and I can work on this issue. |
Preparing a PR - #54031. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.77-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-12-30. 🎊 For reference, here are some details about the assignees on this issue:
|
@hungvu193 @twisterdotcom @hungvu193 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
Payment Summary
BugZero Checklist (@twisterdotcom)
|
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Test:Precondition: Invoices feature must be enabled. Invoices are enabled.
Do we agree 👍 or 👎 |
@twisterdotcom, @hungvu193, @cristipaval, @rezkiy37 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@twisterdotcom, @hungvu193, @cristipaval, @rezkiy37 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
Payment Summary:
|
$250 approved for @hungvu193 |
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.72-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp https://expensify.testrail.io/index.php?/tests/view/5310233
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Precondtion:
Expected Result:
The invoice title should be changed.
Actual Result:
The invoice title is not changed after it is renamed.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6686201_1733478013504.bandicam_2024-12-06_17-33-11-641.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @twisterdotcomThe text was updated successfully, but these errors were encountered: