-
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 #45408] Expense - Currently opened expense report is not displayed in LHN after returning from Search #46192
Comments
Triggered auto assignment to @trjExpensify ( |
@trjExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
ProposalPlease re-state the problem that we are trying to solve in this issue.Expense - Currently opened expense report is not displayed in LHN after returning from Search What is the root cause of that problem?When we have an iou report with one transaction the item in search is a transaction type and for transaction case we are opening the App/src/components/Search/index.tsx Lines 134 to 135 in b0f810d
But there is a code here that returns falsey when the report is isOneTransactionThread to exclude it from lhnLines 127 to 129 in b0f810d
This is to avoid having two lhn items for the same transaction thread because in the case of one transaction in an iou pressing on the iou report opens the only transaction thread as it is the only one ( What alternative solutions did you explore? (Optional)This issue doesn't occur when we open a report via report preview because in that case we open the iou report (with one transaction) not the transactionThreadReport therefore we should be consistent and follow the same logic in search page here too. App/src/components/Search/index.tsx Lines 134 to 135 in b0f810d
change it to
What changes do you think we should make in order to solve the problem? |
ProposalPlease re-state the problem that we are trying to solve in this issue.The currently opened expense thread is not displayed in LHN What is the root cause of that problem?When we open the report from the search, we open the transaction thread report. Then after we return from Search, this report is opened but we hide this in LHN if the expense report is the combine report Line 127 in 4adf0c5
What changes do you think we should make in order to solve the problem?We should remove this condition here Line 127 in 4adf0c5
And in What alternative solutions did you explore? (Optional)For snapshot transaction item, BE should return an extra field
App/src/components/Search/index.tsx Lines 134 to 135 in b0f810d
|
Updated only to add more explanation to my first solution. |
@lanitochka17, I really don't understand this bug report as written in the OP. @luacmartins does this make sense to you? 🤔 |
@trjExpensify Whenever you open a report it is included in LHN (highlighted lhn item representing it) but in this case if you create an expense where it is the only expense in iou report then when you open it from search the report will not be any lhn item corresponding to it (which was supposed to be the highlighted one in normal cases) 👍 |
Hmm I think this has the same root cause as #45408. Because we are opening the transaction thread in the RHP, we record the last visited report as the thread. Then when we navigate to the LHN we don't see it because we hide the thread if it's a one expense report. |
I think we can put this issue on hold for #45408. |
Makes sense! |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
This issue has not been updated in over 15 days. @trjExpensify, @luacmartins eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
This is on hold, Melv. |
Oh, why is there a |
@trjExpensify I believe that I fixed #45408 and this issue with this PR. Can we retest to confirm that's indeed fixed and then close this issue? We'd handle payment via #45408. |
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.12-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: N/A
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The currently opened expense thread will be displayed in LHN
Actual Result:
The currently opened expense thread is not displayed in LHN
This issue only happens when there is only one expense in the report
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6552332_1721892704989.bandicam_2024-07-25_15-28-17-666.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: