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][$2000] "report no longer exists" message appears when try to edit message #19707

Closed
5 of 6 tasks
kavimuru opened this issue May 26, 2023 · 75 comments
Closed
5 of 6 tasks
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 Internal Requires API changes or must be handled by Expensify staff

Comments

@kavimuru
Copy link

kavimuru commented May 26, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. go to any chat
  2. send any message
  3. Hover over your sent message and click "Reply in Thread"
  4. Go to thread
  5. Click your profile icon in the new chat thread > click "Leave thread"
  6. Find previous chat
  7. Hover over the last sent message and click the edit pencil
  8. Type an edit to your previously sent message > enter
  9. Get a "Report no longer exists" error

Expected Result:

user should be able to edit the message

Actual Result:

report no longer exists message appears when try to edit message

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

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-2
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-05-24.at.7.25.07.PM.mov
Recording.779.mp4

Expensify/Expensify Issue URL:
Issue reported by: @gadhiyamanan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1684936594996169

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01d37108580b2e2ecb
  • Upwork Job ID: 1692659620193611776
  • Last Price Increase: 2023-09-07
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 26, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented May 26, 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

@melvin-bot melvin-bot bot added the Overdue label May 29, 2023
@c3024
Copy link
Contributor

c3024 commented May 29, 2023

Proposal

User is not able to edit message. Presently, on clicking the tick nothing happens.

What is the root cause of the problem?

Here at line 936, parser.getRemovedMarkdownLinks is called.

const markdownOriginalComment = parser.htmlToMarkdown(originalHtml).trim();
const htmlForNewComment = parser.replace(newCommentText);
const removedLinks = parser.getRemovedMarkdownLinks(markdownOriginalComment, newCommentText);
return removeLinksFromHtml(htmlForNewComment, removedLinks);

It comes from

https://github.com/Expensify/expensify-common/blob/68abe48ad71a98604fdbf5e8e960023ed5807ec2/lib/ExpensiMark.js#L10-L11

and none of the functions were bind here so the functions are unrecognized.

What changes do you think we should make in order to solve the problem?

For each function in this ExpensiMark, add
this.function = this.function.bind(this);

What alternative solutions did you explore? (Optional)

None.

@Christinadobrzyn
Copy link
Contributor

I can reproduce this but I think it might be the same fix as this - #19559 (comment) asking

@melvin-bot melvin-bot bot removed the Overdue label May 30, 2023
@c3024
Copy link
Contributor

c3024 commented May 30, 2023

What does Leave Thread do exactly? Is it same as clicking on Conceirge chat with the thread continuing to exist or does it mean deleting the thread altogether?

@Christinadobrzyn Christinadobrzyn changed the title report no longer exists message appears when try to edit message [HOLD for #19078] report no longer exists message appears when try to edit message May 30, 2023
@Christinadobrzyn Christinadobrzyn added Weekly KSv2 and removed Daily KSv2 labels May 30, 2023
@Christinadobrzyn
Copy link
Contributor

Christinadobrzyn commented May 30, 2023

Great questions - @c3024!

What does Leave Thread do exactly?

My understanding is it allows a user to 'unsubscribe' from a chat thread (generally a group thread) where they no longer need to participate. V2 should have a mute option

Is it same as clicking on Conceirge chat with the thread continuing to exist or does it mean deleting the thread altogether?

So the thread will exist, you just can choose to exit it to no longer be part of it

cc @stitesExpensify - just in case I'm wrong

I've added a Hold label as we'll wait to see if this root issue is similar to #19559 (comment)

@Christinadobrzyn
Copy link
Contributor

Still on hold

@Christinadobrzyn
Copy link
Contributor

Still on hold for - #19559 (comment)

@melvin-bot melvin-bot bot added the Overdue label Jun 21, 2023
@Christinadobrzyn
Copy link
Contributor

Still on hold for - #19559 (comment)

@melvin-bot melvin-bot bot removed the Overdue label Jun 21, 2023
@melvin-bot melvin-bot bot added the Overdue label Jun 30, 2023
@Christinadobrzyn
Copy link
Contributor

Still on hold for - #19559 (comment)

@melvin-bot melvin-bot bot removed the Overdue label Jul 3, 2023
@Christinadobrzyn Christinadobrzyn changed the title [HOLD for #19078] report no longer exists message appears when try to edit message [HOLD for #19559] report no longer exists message appears when try to edit message Jul 10, 2023
@melvin-bot melvin-bot bot added the Overdue label Jul 12, 2023
@Christinadobrzyn
Copy link
Contributor

hold for - #19559 (comment)

@melvin-bot melvin-bot bot removed the Overdue label Jul 12, 2023
@Christinadobrzyn
Copy link
Contributor

Christinadobrzyn commented Jul 14, 2023

I'm going to be ooo until July 31st so going to unassign and assign a new teammate.

At this time, we're on hold for #19559 (comment)

I'll take this back if it's still on hold when I return

@Christinadobrzyn Christinadobrzyn removed the Bug Something is broken. Auto assigns a BugZero manager. label Jul 14, 2023
@Christinadobrzyn Christinadobrzyn removed their assignment Jul 14, 2023
@melvin-bot melvin-bot bot removed the Overdue label Sep 26, 2023
@tylerkaraszewski
Copy link
Contributor

The auth PR above is waiting on updates based on @chiragsalian's review feedback. The Web-E PR is waiting on the auth PR.

@johncschuster johncschuster removed their assignment Sep 26, 2023
@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@melvin-bot melvin-bot bot added the Overdue label Sep 29, 2023
@Christinadobrzyn
Copy link
Contributor

keeping a watch on KI retests!

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 29, 2023
@cristipaval
Copy link
Contributor

Issue not reproducible during KI retests. (First week)

Interesting.
A fix was merged and will hit staging with the next Web-E deployment.

@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 2023

@tylerkaraszewski, @Christinadobrzyn, @aimane-chnaif Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@Christinadobrzyn
Copy link
Contributor

Christinadobrzyn commented Oct 3, 2023

If this is not reproducible in KI retests, I'm assuming we'll still pay this out? @cristipaval

If payment is happening that looks like it will be

Payouts due:

Issue Reporter: $250 @gadhiyamanan (paid in upwork)
Contributor: NA
Contributor+: NA

Eligible for 50% #urgency bonus? N - since it's internal

Upwork job https://www.upwork.com/jobs/~01ea964ec786dd78e1

@melvin-bot melvin-bot bot removed the Overdue label Oct 3, 2023
@cristipaval cristipaval self-assigned this Oct 4, 2023
@cristipaval
Copy link
Contributor

cristipaval commented Oct 4, 2023

@Christinadobrzyn The fix is now in production, and this issue can be closed after the payments. The fix was implemented completely internally in Auth and Web-E. No C+ did a code review. We're paying the reporting bonus only in the other issue with the same root cause.

@cristipaval cristipaval added Awaiting Payment Auto-added when associated PR is deployed to production and removed Help Wanted Apply this label when an issue is open to proposals by contributors labels Oct 4, 2023
@cristipaval cristipaval changed the title [$2000] "report no longer exists" message appears when try to edit message [HOLD for payment][$2000] "report no longer exists" message appears when try to edit message Oct 4, 2023
@Christinadobrzyn
Copy link
Contributor

Thanks @cristipaval it looks like this reporter is different from the one in #19559

So I could add this reporter to that other issue to ensure they are paid, or I could just pay them here. I think it might be better to combine the reporter payments into one GH.

If that's the case then there would be no payments issued through this Upwork job. What do you think?

@cristipaval
Copy link
Contributor

Thanks @cristipaval it looks like this reporter is different from the one in #19559

So I could add this reporter to that other issue to ensure they are paid, or I could just pay them here. I think it might be better to combine the reporter payments into one GH.

If that's the case then there would be no payments issued through this Upwork job. What do you think?

I don't know how the payment process works. You can pay them the easier it is for you.

@mvtglobally
Copy link

Issue not reproducible during KI retests. (Second week)

@Christinadobrzyn
Copy link
Contributor

I'm going to pay @gadhiyamanan for reporting this in this GH.

@gadhiyamanan can you accept my job here - https://www.upwork.com/jobs/~01ea964ec786dd78e1

@gadhiyamanan
Copy link
Contributor

@Christinadobrzyn offer accepted, thanks

@melvin-bot melvin-bot bot added the Overdue label Oct 9, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 9, 2023

@tylerkaraszewski, @cristipaval, @Christinadobrzyn, @aimane-chnaif Whoops! This issue is 2 days overdue. Let's get this updated quick!

@cristipaval
Copy link
Contributor

What's the payment status here? Can we close the issue?

@melvin-bot melvin-bot bot added Daily KSv2 and removed Overdue Daily KSv2 labels Oct 9, 2023
@Christinadobrzyn
Copy link
Contributor

Sorry for the delay- paid out based on #19707 (comment)

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 Internal Requires API changes or must be handled by Expensify staff
Projects
None yet
Development

No branches or pull requests