Skip to content
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

[$250] Web - Attachment - Attachment tag displayed in LHN after refresh #9539

Closed
kavimuru opened this issue Jun 22, 2022 · 21 comments
Closed
Assignees
Labels
Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@kavimuru
Copy link

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Go to staging.new.expensify.com
  2. Log in with any account
  3. Go to any user and click on Plus button
  4. Attach any jpg file
  5. Click Send button
  6. Check the Attachment tag under LHN
  7. Refresh the page

Expected Result:

Attachment tag displayed in LHN after sent the file

Actual Result:

User's email address is displayed

Workaround:

Unknown

Platform:

Where is this issue occurring?

  • Web

Version Number: 1.1.78.7
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): applausetester+0901abb@applause.expensifail.com / Feya87Katya
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:

Bug5619702_Bug5612401_Recording__603.mp4

Expensify/Expensify Issue URL:
Issue reported by: Applause internal team

Slack conversation:

View all open jobs on GitHub

@melvin-bot
Copy link

melvin-bot bot commented Jun 22, 2022

Triggered auto assignment to @roryabraham (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@roryabraham roryabraham added Monthly KSv2 External Added to denote the issue can be worked on by a contributor Daily KSv2 and removed Daily KSv2 labels Jun 23, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jun 23, 2022

Triggered auto assignment to @MitchExpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@melvin-bot melvin-bot bot removed the Monthly KSv2 label Jun 23, 2022
@MitchExpensify
Copy link
Contributor

Upwork Issue

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Jun 23, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jun 23, 2022

Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav (Exported)

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 23, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jun 23, 2022

Current assignee @roryabraham is eligible for the Exported assigner, not assigning anyone new.

@melvin-bot melvin-bot bot changed the title Web - Attachment - Attachment tag displayed in LHN after refresh [$250] Web - Attachment - Attachment tag displayed in LHN after refresh Jun 23, 2022
@JosueEchandiaAsto
Copy link
Contributor

JosueEchandiaAsto commented Jun 24, 2022

Proposal

Issue

User's email address is displayed after sent the file

Fix

After uploading the attached file, it is updating lastMessageText, ignoring that it is an attached file, that is why the text is wrong.

const messageText = parser.htmlToText(messageHtml);

We need to add the missing logic so that when it is an attachment it updates the text correctly.
const messageText = isAttachment ? `[${Localize.translateLocal('common.attachment')}]` : parser.htmlToText(messageHtml);

Commit: 1761614

Result

Grabacion.de.pantalla.2022-06-24.a.la.s.08.21.53.mov

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jun 24, 2022
@mananjadhav
Copy link
Collaborator

I thought this was a regression and I tried finding the root cause. It seems this happens to the current chat when the attachment is added. If we refresh then it shows up properly.

@roryabraham, @JosueEchandiaAsto's proposal looks good.

🎀 👀 🎀
C+ reviewed

@roryabraham
Copy link
Contributor

Okay, LGTM 👍

Long-term, I would like to see some unit tests added for the title and subtitle of items in the LHN.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Help Wanted Apply this label when an issue is open to proposals by contributors Daily KSv2 labels Jun 27, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jun 27, 2022

📣 @JosueEchandiaAsto You have been assigned to this job by @roryabraham!
Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@MitchExpensify
Copy link
Contributor

Nice! Invited both @JosueEchandiaAsto & @mananjadhav to the Upwork job for eventual payment.

@JosueEchandiaAsto
Copy link
Contributor

PR Created 🎉 #9603

@marcaaron
Copy link
Contributor

marcaaron commented Jun 29, 2022

This issue will need to be fixed on the server as the method where the fix is happening is getting removed. Let's avoid doing duplicate work here and maybe close this one out or make it internal and HOLD on changes here -> #9350

@roryabraham
Copy link
Contributor

Okay, my mistake. Going to put this on HOLD pending #9350. @MitchExpensify Can we please pay out @JosueEchandiaAsto for their work so far?

@MitchExpensify
Copy link
Contributor

Will do! @JosueEchandiaAsto just waiting for the offer to be accepted

@mananjadhav
Copy link
Collaborator

@roryabraham @MitchExpensify Is this eligible for C+ payout?

@JosueEchandiaAsto
Copy link
Contributor

@MitchExpensify, Offer accepted 👨🏻‍💻

@MitchExpensify
Copy link
Contributor

Thanks! Paid

@MitchExpensify
Copy link
Contributor

Are we good to close this out then?

@mananjadhav
Copy link
Collaborator

@roryabraham @MitchExpensify Is this eligible for C+ payout?

@MitchExpensify bump

@MitchExpensify
Copy link
Contributor

Thanks for the bump @mananjadhav ! We're chatting internally and will have an update very soon

@MitchExpensify
Copy link
Contributor

Paid @mananjadhav, thanks so much for your patience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
None yet
Development

No branches or pull requests

6 participants