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

[HOLD for payment 2023-10-25] [$1000] "This is the beginning of ..." message shows up on LHN of a new chat for a deleted thread instead of [message deleted] #19722

Closed
1 of 6 tasks
kbecciv opened this issue May 27, 2023 · 160 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review

Comments

@kbecciv
Copy link

kbecciv commented May 27, 2023

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. Post a new message in a new chat with no history (i.e. PARENT MESSAGE) and reply in thread (i.e. CHILD MESSAGE)
  2. Go back to the chat and delete the new message (i.e. PARENT MESSAGE)
  3. Notice the LHN does not say [message deleted], even though the chat states this

image

Expected Result:

In the LHN for a PARENT MESSAGE, [message deleted] should show instead of "This is the beginning of..." for

Actual Result:

In the LHN for a new chat with a deleted PARENT MESSAGE, we see "This is the beginning of..."

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.19.1

Reproducible in staging?: yes

Reproducible in production?: yes

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

2023-05-22.15.26.36.mp4
Recording.2860.mp4

Expensify/Expensify Issue URL:

Issue reported by: @Nathan-Mulugeta

Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1684758578526459

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~018360917605fa9833
  • Upwork Job ID: 1663327696563245056
  • Last Price Increase: 2023-09-22
  • Automatic offers:
    • rojiphil | Contributor | 26910081
    • Nathan-Mulugeta | Reporter | 26910082
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 27, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 27, 2023

Triggered auto assignment to @jliexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented May 27, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@jliexpensify
Copy link
Contributor

jliexpensify commented May 28, 2023

I can repro this on v1.3.18-2 (prod) and Staging.

On a chat with history, the deleted thread doesn't show in the LHN:

image

On a new chat without history, I see ___fake___ briefly, then the "This is the beginning" message:

image

@jliexpensify
Copy link
Contributor

@jliexpensify jliexpensify changed the title "This is the beginning of ..." message shows up on LHN for a deleted thread "This is the beginning of ..." message shows up on LHN for a deleted thread instead of [message deleted] May 29, 2023
@jliexpensify jliexpensify changed the title "This is the beginning of ..." message shows up on LHN for a deleted thread instead of [message deleted] "This is the beginning of ..." message shows up on LHN of a new chat for a deleted thread instead of [message deleted] May 29, 2023
@jliexpensify jliexpensify added the External Added to denote the issue can be worked on by a contributor label May 29, 2023
@melvin-bot melvin-bot bot changed the title "This is the beginning of ..." message shows up on LHN of a new chat for a deleted thread instead of [message deleted] [$1000] "This is the beginning of ..." message shows up on LHN of a new chat for a deleted thread instead of [message deleted] May 29, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 29, 2023

Job added to Upwork: https://www.upwork.com/jobs/~018360917605fa9833

@melvin-bot
Copy link

melvin-bot bot commented May 29, 2023

Current assignee @jliexpensify is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented May 29, 2023

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label May 29, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 29, 2023

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

@jliexpensify
Copy link
Contributor

@rushatgabhane @puneetlath - it looks like another contributor has proposed the solution to this issue on another GH

@jliexpensify
Copy link
Contributor

If the solution in the other GH is the same/fixes this issue, then I think we should close this out and pay @Nathan-Mulugeta for reporting.

@dukenv0307

This comment was marked as outdated.

@rushatgabhane
Copy link
Member

@dukenv0307 thanks for your proposal! I agree with the root cause.

@dukenv0307
Copy link
Contributor

@rushatgabhane I just updated a bit to be able to translate this text [message deleted] to Spanish. What do you think about my solution

@rushatgabhane
Copy link
Member

@dukenv0307 when a parent message is deleted, it's still present in reportActions and it has this flag set as true - isDeletedParentAction: true.

Could we use this information in any way to determine if it's a parent message?

image

@rushatgabhane
Copy link
Member

Optional, I also suggest we will not update lastVisibleActionCreated

@dukenv0307 could you please explain why?

@dukenv0307
Copy link
Contributor

Optional, I also suggest we will not update lastVisibleActionCreated

@rushatgabhane Because we will not hide deleted messages, [message deleted] will display instead of deleted message. The user still see [message deleted] so I think the lastVisibleActionCreated should be the last message that the user can see in the chat
Note: As in the code, lastVisibleActionCreated field is used to check isUnread and sort report in LHN

@dukenv0307
Copy link
Contributor

when a parent message is deleted, it's still present in reportActions and it has this flag set as true - isDeletedParentAction: true.

Could we use this information in any way to determine if it's a parent message?

@rushatgabhane Thanks for your comment. But this field is responded from BE after API success. So when building optimistic data for DeleteComment API, we will not receive this field

@rushatgabhane

This comment was marked as outdated.

@hoangzinh
Copy link
Contributor

If we hard set optimisticReport.lastMessageText = Localize.translateLocal('parentReportAction.deletedMessage') to chatReport, it leads to another bug that when user changes language after that, the [Deleted message] is translated in chatReport view, but in LHN, we still see [message deleted]

@melvin-bot
Copy link

melvin-bot bot commented Oct 18, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.86-5 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 2023-10-25. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

For reference, here are some details about the assignees on this issue:

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Oct 18, 2023

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:

  • [@rushatgabhane] The PR that introduced the bug has been identified. Link to the PR:
  • [@rushatgabhane] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@rushatgabhane] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@rushatgabhane] Determine if we should create a regression test for this bug.
  • [@rushatgabhane] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@jliexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels Oct 21, 2023
@jliexpensify
Copy link
Contributor

jliexpensify commented Oct 22, 2023

Payment Summary - this job is really messy so please weigh in and let me know if you have thoughts/anything's incorrect!

Upworks job

It looks like PR #28364 took 14 days to merge - normally we'd cancel payment but it looks like even as the PR was happening, there was still a lot of debate. @chiragsalian what are you thoughts? Should we keep payment at $1000?

Also @dukenv0307 was assigned early onwards but didn't submit a PR to resolve this issue, right?

@rojiphil
Copy link
Contributor

rojiphil commented Oct 22, 2023

It looks like PR #28364 took 14 days to merge - normally we'd cancel payment but it looks like even as the PR was happening, there was still a lot of debate. @chiragsalian what are you thoughts? Should we keep payment at $1000?

@chiragsalian @rushatgabhane

Considering that there was a gap of about 7 days (this minus this) when @rushatgabhane was not available to work on this issue, can we consider the total time taken to work on this issue as 7 days [14 - 7(gap)]?

Further, there was one extended fix added here in the same PR.
So, would it be reasonable to consider $1500 [i.e. $1000(this fix) + $500(extended fix)] as compensation here?

In addition, there is another extended fix mentioned here. I am fine to include this extended fix too within the compensation of $1500 as mentioned above.
Does this overall approach sound fair?

@chiragsalian
Copy link
Contributor

can we consider the total time taken to work on this issue as 7 days [https://github.com//issues/19722#issuecomment-1767066579 - 7(gap)]?

Yeah I'm fine with that.

Yeah i think 1500 is fair for your work here.

@jliexpensify
Copy link
Contributor

Great thanks @chiragsalian - will adjust the payments and make a new Upworks job.

@Nathan-Mulugeta
Copy link

Nathan-Mulugeta commented Oct 24, 2023

There is one other job open on upwork with this issue linked, it would be great if you close that one after processing payment for this issue as well, @jliexpensify

@jliexpensify
Copy link
Contributor

Hmm can you link me the Upworks link @Nathan-Mulugeta ? I looked at the links in this GH and the jobs were all closed. Cheers!

@Nathan-Mulugeta
Copy link

I couldn't find a way to copy the link of an already hired contract from upwork.

@jliexpensify
Copy link
Contributor

Is it a closed job though? Because what I'm finding is that Upworks randomly closes jobs after a month of inactivity (even if people are hired) which means we need to create new ones. There isn't an option to "re-open" a job.

@Nathan-Mulugeta
Copy link

It is not closed yet, it was open on Sep 27, so I think we can wait until it gets closed by upwork.

@rojiphil
Copy link
Contributor

@jliexpensify
Just checked in my Upwork account and noticed a duplicate offer for me.
I have just sent a message via Upwork.
You can close that one.

@rojiphil

This comment was marked as outdated.

@rojiphil
Copy link
Contributor

@jliexpensify Just checked in my Upwork account and noticed a duplicate offer for me. I have just sent a message via Upwork. You can close that one.

Here is the link. Hope this helps

@jliexpensify
Copy link
Contributor

Right @rojiphil and @Nathan-Mulugeta this is a closed job in Upworks:

image

I also don't have an option to cancel these contracts, since it's closed:

image

@jliexpensify
Copy link
Contributor

@Nathan-Mulugeta Can you help me understand what the issue is if there's an outstanding contract on a closed job? Does it affect your Upworks score or something?

You're the first Contributor who has reached out to me regarding this, so I want to understand what the issue is.

@jliexpensify
Copy link
Contributor

Also bumping @rushatgabhane to complete the checklist!

@Nathan-Mulugeta
Copy link

Hey @jliexpensify the upwork Job that I was referring to is not the one you linked. I'll attach a screenshot of it below. But having an outstanding contract which upwork automatically closes might have an impact on the JSS (Job success score) of that account, but the impact might be low so we can ignore it. I just asked if it was possible for you to close it out before it manually gets closed.

The job is this one:

Screenshot_20231025-073654_Upwork Talent.png

@jliexpensify
Copy link
Contributor

It looks like this is the Upworks job:

image

I'm a day ahead in Australia, so that's why it's showing as the 28th in the screenshot.

However, this job is closed, and I can't re-open it - that's why I had to make a new job. This seems like a super annoying quirk of Upworks, so I'll surface this with our team to see if we can disable the auto-close!

@jliexpensify
Copy link
Contributor

jliexpensify commented Oct 26, 2023

Just circling back here @Nathan-Mulugeta and @rojiphil - I raised this with our team and someone discovered a workaround: anytime before the 4-week period is up, you can manually edit one letter in the Upworks description to extend the contract another 4 weeks. So Jack is going to look into a way to automatically edit these Upworks jobs before the 4 week period.

@jliexpensify
Copy link
Contributor

@jliexpensify
Copy link
Contributor

Paid and job closed!

@rojiphil
Copy link
Contributor

Received the payment. Thanks @jliexpensify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests