-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[Awaiting Payment 11th Jan] [$500] Chat-"Hmm... it's not here" appears after clicking Previous arrow from an attachment preview #31105
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01a232fe720233dddb |
Triggered auto assignment to @trjExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
ProposalPlease re-state the problem that we are trying to solve in this issue."Hmm... it's not here" appears after clicking Previous arrow from an attachment preview What is the root cause of that problem?We get parent report action here to compare
What changes do you think we should make in order to solve the problem?We should check here if the report is IOU or Expense report we shouldn't add this action to attachemnt list App/src/components/Attachments/AttachmentCarousel/extractAttachmentsFromReport.js Line 49 in 9862a3e
What alternative solutions did you explore? (Optional)We can remove the receipt image from carousal
App/src/components/Attachments/AttachmentCarousel/extractAttachmentsFromReport.js Line 43 in d6cef83
2. remove the compare transactionID on compareImage function
App/src/components/AttachmentModal.js Line 445 in 5e7022d
ResultScreen.Recording.2023-11-14.at.08.11.58.mov |
I think the proposal lacks a little specificity as to the root cause. Why does this only happen when the receipt is still scanning though? For example here I'm in a transaction thread on an ql9FfgDys6.mp4 |
ProposalPlease re-state the problem we are trying to solve"Hmm... it's not here" appears after clicking Previous arrow from an attachment preview What is the root cause of this problem?Parent report action transaction ID checking is done wrong here: App/src/components/Attachments/AttachmentCarousel/index.js Lines 42 to 52 in 9862a3e
Because What changes should be made to fix this?We can skip the separate checking for receipt and use the same way that other attachments are checked with their const compareImage = useCallback(
(attachment) => {
return attachment.source === source;
},
[source],
); What alternative did you explore?We can remove the receipts from the attachments altogether by the following:
|
@trjExpensify After the scan is complete we also can reproduce this issue and this issue happens on IOU report not in transaction report. |
Screen.Recording.2023-11-09.at.18.03.54.mov |
Alright, these steps in the OP can be simplified. I've updated them:
|
So @dukenv0307 why does this work fine in the transaction thread but not the IOU report? |
@trjExpensify The current check now is used for transantion report so it works fine. parent action of transaction report will be a iou action that contain transactionID in originalMessage. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat-"Hmm... it's not here" appears after clicking Previous arrow from an attachment preview What is the root cause of that problem?App/src/components/Attachments/AttachmentCarousel/index.js Lines 55 to 63 in d4a97bc
The logic of Let see the logic of App/src/components/Attachments/AttachmentCarousel/index.js Lines 42 to 49 in d4a97bc
The logic to get the current transactionID is incorrect. It is only correct in the Transaction Thread With IOU/Expense Report App/src/components/Attachments/AttachmentCarousel/index.js Lines 44 to 46 in d4a97bc
This logic is incorrect. It explains why this bug only happens in IOU report (not in Transaction Thread) Note that: If we get transactionID based on report and reportAction props, for each report type, we need a separate logic to get transactionID What changes do you think we should make in order to solve the problem?We should create new state called currentTransactionID
we will call setCurrentTransactionID(entry.item.transactionID) and use currentTransactionID instead of this logic
App/src/components/Attachments/AttachmentCarousel/index.js Lines 44 to 46 in d4a97bc
ResultScreen.Recording.2023-11-10.at.14.56.31.mov |
Checked the proposals, and @dukenv0307's proposal looks good. 🎀 👀 🎀 C+ reviewed. |
Triggered auto assignment to @mountiny, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@dukenv0307 In the yout main solution
You mean that with the IOU report, in AttachmentCarousel we will not scroll to the receipt image, we only scroll attachment cc @mananjadhav |
@DylanDylann Yes because if we don't send any attachment we don't have the way to open reciept in IOU report. If we want to show it in IOU report, I have a solution that is we will add an contextMenu action like view reciept which will show if the report action is reciept request and when click on this action, we will navigate to report attachment. And in attachment carous, we can replace |
In case, user send an attachment to IOU report. What happen? |
@DylanDylann With my main solution, when we click on any attachment, reciept image doesn't show in the list. |
@dukenv0307 Thanks for your explanation, I think that we should display the receipt in the scroll list in the IOU report like we did in transaction thread |
I don't see a reason to not allow that. We do in the transaction thread for example as illustrated here. |
So the second PR to fix the regression from the first PR is this one: #31105 (comment) That has a couple of days to still go, but @situchan you're saying there's now a new regression from that 2nd PR: #31105 (comment) If I have that correct, I think we need to remove the payment hold to await Melv adding that again on the deploy of it? |
yes correct. @dukenv0307 should take responsible for fixing it. |
@mananjadhav, @trjExpensify, @mountiny, @shubham1206agra, @dukenv0307 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@mananjadhav, @trjExpensify, @mountiny, @shubham1206agra, @dukenv0307 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
@mananjadhav, @trjExpensify, @mountiny, @shubham1206agra, @dukenv0307 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it! |
@situchan @dukenv0307 What are the next steps here please? |
The regression is merged, waiting it deploy to production to complete the payment here. |
Thanks |
@mananjadhav, @trjExpensify, @mountiny, @shubham1206agra, @dukenv0307 10 days overdue. I'm getting more depressed than Marvin. |
@trjExpensify Can you add the correct labels again for payment? It is due on 11th January. |
Sure, done! |
Okay, so confirming payments as follows:
Payment has been reduced accordingly due to the regression. Sound right? |
fyi, there were more than one regressions. I had helped with the proposal reviews and the review of the first PR that caused the first regression. Subsequently during my OOO it was assigned to @shubham1206agra. Would like to request for partial compensation for the initial effort. |
@trjExpensify didn't you agree to not to apply regression reduction of payment here? |
I imagine split compensation 1k into 3 people 😄 |
Ah, I missed Manan reviewing the first PR.
I interpreted @situchan's suggestion as not penalising for the second regression with the follow-up PR, which would result in $0 technically, which I agreed with. |
@trjExpensify Can you accommodate me ;) |
Yep! I've updated the payment summary here to add that. Go ahead and request. Drawing a line in the sand, @dukenv0307 I've paid you $250. @shubham1206agra I've sent the offer for the same. Once accepted, I'll settle and close this out. |
@trjExpensify Accepted |
Settled up! |
$250 payment approved for @mananjadhav based on this comment. |
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: 1.3.97-1
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:
Request Money >
Scan` (if you don't have one already)+
>Add attachment
<
arrow in the attachment carousalExpected Result:
The uploaded receipt can be seen in the attachment carousal modal
Actual Result:
The uploaded receipt can not be seen and "Hmm... it's not here" appears after clicking the
<
navigation arrow from an attachment previewWorkaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6269678_1699519179592.2023-11-09_09-37-40.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @trjExpensifyThe text was updated successfully, but these errors were encountered: