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

[SMARTSCAN] [$500] LOW: Web - Request Money - "Changed the date to..." message looks as a new message after refreshing the page #26683

Closed
1 of 6 tasks
kbecciv opened this issue Sep 4, 2023 · 34 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 Internal Requires API changes or must be handled by Expensify staff SmartScan Wave5-free-submitters

Comments

@kbecciv
Copy link

kbecciv commented Sep 4, 2023

Held on #30603

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. Open website
  2. Click on + > Request money > Scan > Choose file, user and continue > Reach "Receipt scan in progress…" page > Change the description and date multiple times > Reload the page

Expected Result:

"Changed the date to..." message should not look as a new message even after refreshing the page

Actual Result:

"Changed the date to..." message looks as a new message after refreshing the page

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.62.4
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-capture.-.2023-08-30T175326.879.2.webm
bandicam.2023-09-04.20-22-33-551.mp4

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

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~010b6e7b1cbb84756c
  • Upwork Job ID: 1698913876057669632
  • Last Price Increase: 2023-09-12
Issue OwnerCurrent Issue Owner: @cristipaval
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 4, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 4, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 4, 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

@kadiealexander
Copy link
Contributor

Repro:

2023-09-05_16-19-08.mp4

@kadiealexander kadiealexander added the External Added to denote the issue can be worked on by a contributor label Sep 5, 2023
@melvin-bot melvin-bot bot changed the title [Distance] - Request Money - "Changed the date to..." message looks as a new message after refreshing the page [$500] [Distance] - Request Money - "Changed the date to..." message looks as a new message after refreshing the page Sep 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 5, 2023

Job added to Upwork: https://www.upwork.com/jobs/~010b6e7b1cbb84756c

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

melvin-bot bot commented Sep 5, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 5, 2023

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

@nahid633
Copy link
Contributor

nahid633 commented Sep 5, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

Request Money - "Changed the date to..." message looks as a new message after refreshing the page

What is the root cause of that problem?

New message indicator shows when shouldDisplayNewMarker is true and in the code there is state messageManuallyMarked
if (!messageManuallyMarked.read) {
shouldDisplayNewMarker = shouldDisplayNewMarker && reportAction.actorAccountID !== Report.getCurrentUserAccountID();
}

Basically we need to set mark report as read and make it shouldDisplayNewMarker false

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

We need to add 'OR' case this part of the code
const didManuallyMarkReportAsUnread = report.lastReadTime < DateUtils.getDBTime() && ReportUtils.isUnread(report).

to check if
actionName is 'MODIFIEDEXPENSE' then mark that message as read(dont show new message indicator.).

indicator.mp4

What alternative solutions did you explore? (Optional)

none

@tienifr
Copy link
Contributor

tienifr commented Sep 5, 2023

this is BE bug since API EditMoneyRequest returns the wrong lastReadTime for report

@kbecciv kbecciv changed the title [$500] [Distance] - Request Money - "Changed the date to..." message looks as a new message after refreshing the page [$500] Web - Request Money - "Changed the date to..." message looks as a new message after refreshing the page Sep 8, 2023
@melvin-bot melvin-bot bot added the Overdue label Sep 8, 2023
@kadiealexander
Copy link
Contributor

@narefyev91 do you agree with this, that it should be marked internal?

@melvin-bot melvin-bot bot removed the Overdue label Sep 12, 2023
@narefyev91
Copy link
Contributor

@narefyev91 do you agree with this, that it should be marked internal?

Yes we should mark this as internal - we need some BE support

@melvin-bot
Copy link

melvin-bot bot commented Sep 12, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@kadiealexander kadiealexander added Internal Requires API changes or must be handled by Expensify staff and removed External Added to denote the issue can be worked on by a contributor labels Sep 13, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 13, 2023

Current assignee @narefyev91 is eligible for the Internal assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Sep 13, 2023

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

@kadiealexander
Copy link
Contributor

@flodnv I got you assigned to handle the backend changes for this bug, thanks for your help!

@flodnv
Copy link
Contributor

flodnv commented Sep 14, 2023

@mountiny I see you wrote this API command in the past couple of months, so I assume this should be assigned to you

@melvin-bot melvin-bot bot added the Overdue label Dec 4, 2023
@mountiny
Copy link
Contributor

mountiny commented Dec 5, 2023

Same as above

@mountiny
Copy link
Contributor

I think this belongs to the wave5

@melvin-bot melvin-bot bot removed the Overdue label Dec 18, 2023
@cristipaval cristipaval assigned cristipaval and unassigned mountiny Dec 18, 2023
@cristipaval cristipaval changed the title [$500] Web - Request Money - "Changed the date to..." message looks as a new message after refreshing the page [HOLD][$500] Web - Request Money - "Changed the date to..." message looks as a new message after refreshing the page Dec 18, 2023
@dylanexpensify dylanexpensify added the SmartScan Wave5-free-submitters label Dec 21, 2023
@dylanexpensify dylanexpensify changed the title [HOLD][$500] Web - Request Money - "Changed the date to..." message looks as a new message after refreshing the page [SMARTSCAN] [HOLD] [$500] LOW: Web - Request Money - "Changed the date to..." message looks as a new message after refreshing the page Dec 21, 2023
@melvin-bot melvin-bot bot added the Overdue label Dec 26, 2023
@cristipaval cristipaval added Daily KSv2 and removed Weekly KSv2 labels Jan 2, 2024
@melvin-bot melvin-bot bot removed the Overdue label Jan 2, 2024
@cristipaval cristipaval changed the title [SMARTSCAN] [HOLD] [$500] LOW: Web - Request Money - "Changed the date to..." message looks as a new message after refreshing the page [SMARTSCAN] [$500] LOW: Web - Request Money - "Changed the date to..." message looks as a new message after refreshing the page Jan 3, 2024
@cristipaval
Copy link
Contributor

PR up for review

@cristipaval cristipaval added the Reviewing Has a PR in review label Jan 5, 2024
@cristipaval
Copy link
Contributor

this should be fixed, as the PR hit production 3 days ago

@cristipaval
Copy link
Contributor

@kadiealexander do we have any payment due here?

@cristipaval cristipaval added Awaiting Payment Auto-added when associated PR is deployed to production and removed Reviewing Has a PR in review labels Jan 16, 2024
@melvin-bot melvin-bot bot added the Overdue label Jan 18, 2024
@kadiealexander
Copy link
Contributor

I don't think so!

@melvin-bot melvin-bot bot removed the Overdue label Jan 19, 2024
@github-project-automation github-project-automation bot moved this from Release 5: Best in Class to Done in [#whatsnext] Wave 05 - Deprecate Free Jan 19, 2024
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 SmartScan Wave5-free-submitters
Projects
No open projects
Development

No branches or pull requests

9 participants