-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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] [$1000] After deleting an attachment, the LHN shows '[Attachment]' instead of 'No activity yet' until you delete one more message #24246
Comments
Triggered auto assignment to @kadiealexander ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~0188933d8c36eb686a |
Current assignee @kadiealexander is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
It seems this issue relate to lastMessageTranslationKey that we haven't done from BE side |
📣 @msapple0338! 📣
|
Please re-state the problem that we are trying to solve in this issue.After deleting an attachment, the LHN shows '[Attachment]' instead of 'No activity yet' until you delete one more message What is the root cause of that problem?There is an issue with
If we reset the value of lastMessageTranslationKey, still it will return the last value as [Attachment] because of the fixed return value in above mention condition What changes do you think we should make in order to solve the problem?You need to adjust
Video:https://drive.google.com/file/d/1ebi89ipx5JJg10Ju-8XyTt8bU4G7gL47/view?usp=sharing |
@msapple0338 you talking to me? |
ProposalPlease re-state the problem that we are trying to solve in this issue.After deleting an attachment, the LHN shows '[Attachment]' instead of 'No activity yet' until you delete one more message What is the root cause of that problem?App/src/libs/OptionsListUtils.js Line 381 in d7966ec
![]() in the backend whenever the previous message has the attachment lastMessageTranslationKey this key will come with value.App/src/libs/isReportMessageAttachment.js Lines 11 to 12 in d7966ec
so return true here Scenario is
this current issue was Scanrio 2 (let's do it in the reverse)
so the issue was whenever the previous messages have an attachment action done user LHN updated correctly but another user still have the What changes do you think we should make in order to solve the problem? if (translationKey && text == CONST.ATTACHMENT_MESSAGE_TEXT) {
return translationKey === CONST.TRANSLATION_KEYS.ATTACHMENT;
} this commit introduce this translationKey
|
ProposalPlease re-state the problem that we are trying to solve in this issue.After deleting an attachment, LHN still shows What is the root cause of that problem?When deleting the attachment, the report receives the following event But before deleting the attachment,
The last message is an attachment and so App/src/libs/ReportActionsUtils.js Lines 399 to 403 in fdcae9f
The updates In this function, we check the This is the root cause What changes do you think we should make in order to solve the problem?I'd solve this issue based on the assumption that attachment must have text or html. In isReportMessageAttachment function, make the following change
And add the following change here
ResultWhat alternative solutions did you explore? (Optional) |
@kadiealexander, please reassign it to a new C+. |
@kadiealexander there is no c+ member can you assign for review |
Current assignee @kadiealexander is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
@eVoloshchak thank you for picking this one up off @thesahindia! |
Hmm, I tried to add @pradeepmdk as an external contributor on this and Melvin seems to think you're the contributor @eVoloshchak |
@Li357 looks like mapping worked correctly. I got the offer |
@eVoloshchak @Li357 @pradeepmdk @kadiealexander this issue is now 4 weeks old and preventing us from maintaining WAQ, can you:
Thanks! |
Current assignee @eVoloshchak is eligible for the Internal assigner, not assigning anyone new. |
@eVoloshchak Pr is ready |
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. |
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Regression Test Proposal
Do we agree 👍 or 👎 |
The automation for this failed for some reason, instead creating a payment issue: #27374, so posting a BugZero Checklist manually here cc: @kadiealexander |
i think bot is not triggered for payment. |
Payouts due:
Eligible for 50% #urgency bonus? No Upwork job is here. |
$1,000 payment approved for @eVoloshchak based on BZ summary. |
@kadiealexander, this one can be closed I think |
@kadiealexander could you please approve the payment on upwork |
@ayazhussain79 please apply in Upwork |
@kadiealexander offer already accepted, sent you message on upwork |
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:
Expected Result:
After deleting an attachment, 'No activity yet' should be displayed in the LHN for userA
Actual Result:
After deleting a file, '[Attachment]' is shown in the LHN instead of 'No activity yet' until you delete one more message
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.48-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:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
screen-recording-2023-08-01-at-15626-am_xKx12L9W.1.mp4
Recording.5769.mp4
Expensify/Expensify Issue URL:
Issue reported by: @ayazhussain79
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690838025775809
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: