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] Distance - Expense report turns blank when distance is requested offline and returning online #39461

Closed
6 tasks done
kbecciv opened this issue Apr 2, 2024 · 31 comments
Closed
6 tasks done
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Internal Requires API changes or must be handled by Expensify staff Weekly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Apr 2, 2024

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


Version Number: 1.4.59-0
Reproducible in staging?: y
Reproducible in production?: n
If this was caught during regression testing, add the test name, ID and link from TestRail: exploratory around https://expensify.testrail.io/index.php?/tests/view/4470385
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace chat with no unsettled request.
  3. Create a distance request.
  4. Go to one transaction report view.
  5. Go offline.
  6. Create another request.
  7. Go to expense report.
  8. Go online.

Expected Result:

The expense report will not turn blank after the request is generated online.

Actual Result:

The expense report turns blank after the request is generated online.

Workaround:

n/a

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6436029_1712089068819.20240403_041341.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01931d3dd62fc4be98
  • Upwork Job ID: 1775660164545712128
  • Last Price Increase: 2024-04-04
@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Apr 2, 2024
@kbecciv
Copy link
Author

kbecciv commented Apr 2, 2024

We think that this bug might be related to #wave-collect - Release 1

Copy link

melvin-bot bot commented Apr 2, 2024

Triggered auto assignment to @NikkiWines (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link
Contributor

github-actions bot commented Apr 2, 2024

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@NikkiWines
Copy link
Contributor

NikkiWines commented Apr 3, 2024

this behaviour looks fine to me? @kbecciv can you expand on what expense report turns blank means in this context?

Edit: Ah, nvm - i see from the video now 👍

@NikkiWines
Copy link
Contributor

NikkiWines commented Apr 3, 2024

Weird, this seems to occur regardless of how many expenses are on the report so I don't think it's tied to the recent one-transaction view changes 🤔

And I can reproduce this error simply by refreshing the page

Untitled.mov

Oh but maybe only after experiencing the bug the first time. Also seems to be reproducible on non-distance expenses

@NikkiWines
Copy link
Contributor

I'm unable to reproduce this on dev - going to see if there's any sort of reconnect request that could be causing issues 🤔

@NikkiWines
Copy link
Contributor

OK, yeah I can reproduce this on staging only with the following steps:

  1. Create an money request on a workspace chat
  2. Create a second money request on a workspace chat
  3. Navigate to to expense report
  4. Go offline
  5. Go back online
  6. Wait a few seconds and see the report page lose all content

Not sure why this is failing on staging specifically but will continue to investigate tomorrow

@jasperhuangg
Copy link
Contributor

This isn't happening for me on staging. @NikkiWines can you verify if I'm following the reproduction steps correctly?

repro.mov

@NikkiWines
Copy link
Contributor

Hmm, yeah definitely still reproducible for me 😞

Screen.Recording.2024-04-03.at.11.49.52.mov

@jasperhuangg jasperhuangg added External Added to denote the issue can be worked on by a contributor Bug Something is broken. Auto assigns a BugZero manager. labels Apr 3, 2024
@melvin-bot melvin-bot bot changed the title Distance - Expense report turns blank when distance is requested offline and returning online [$500] Distance - Expense report turns blank when distance is requested offline and returning online Apr 3, 2024
Copy link

melvin-bot bot commented Apr 3, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01931d3dd62fc4be98

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 3, 2024
@jasperhuangg
Copy link
Contributor

Looping in external contributors to help out

Copy link

melvin-bot bot commented Apr 3, 2024

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

Copy link

melvin-bot bot commented Apr 3, 2024

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

@jasperhuangg
Copy link
Contributor

After some additional investigation with @NikkiWines and @roryabraham we were able to find that the report actions view is empty because the previousReportActionIDs returned from the back-end are malformed.

This points to the issue being a back-end bug and not something that we should block the NewDot deploy on.

@jasperhuangg jasperhuangg added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Apr 4, 2024
@Expensify Expensify deleted a comment from melvin-bot bot Apr 4, 2024
@jasperhuangg jasperhuangg added Internal Requires API changes or must be handled by Expensify staff and removed Engineering labels Apr 4, 2024
@melvin-bot melvin-bot bot changed the title [$500] Distance - Expense report turns blank when distance is requested offline and returning online [$250] Distance - Expense report turns blank when distance is requested offline and returning online Apr 4, 2024
Copy link

melvin-bot bot commented Apr 4, 2024

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

@jasperhuangg
Copy link
Contributor

@jliexpensify ah yup, thanks for checking in on that, updated the issue

@jasperhuangg jasperhuangg added Engineering and removed Help Wanted Apply this label when an issue is open to proposals by contributors labels Apr 4, 2024
@luacmartins
Copy link
Contributor

Looking at this now

@luacmartins
Copy link
Contributor

Ok, managed to reproduce in staging and dev. It seems to only happens when we do a full reconnect, so to reproduce in dev we can comment out this code

@luacmartins
Copy link
Contributor

I see that we're setting the previousReportActionID to 0
2

@luacmartins
Copy link
Contributor

luacmartins commented Apr 5, 2024

Hmm $report['parentReportAction'] doesn't have the previousReportActionID set here. Looking in Auth now.

@luacmartins
Copy link
Contributor

luacmartins commented Apr 5, 2024

jsonResponse["reportList"] comes from getChats and we're getting the parentAction here but never seem to add the previousReportActionID key there

@luacmartins
Copy link
Contributor

Hmm I can't find any methods to retrieve the previousParentReportActionID for a single action. Do we have one @roryabraham? Or do we need to use Report::getActionList to get the whole list and then filter out by that single action?

@luacmartins
Copy link
Contributor

Oh nvm it looks like we have an overload of getActionList that takes in the reportActionID

@roryabraham
Copy link
Contributor

This should be fixed now. requested retest: https://expensify.slack.com/archives/C9YU7BX5M/p1713202683220999

Copy link

melvin-bot bot commented Apr 15, 2024

@NikkiWines, @jliexpensify, @dukenv0307 Eep! 4 days overdue now. Issues have feelings too...

@kavimuru
Copy link

Still reproduced in mweb

Record_2024-04-15-21-55-37.mp4

Copy link

melvin-bot bot commented Apr 17, 2024

@NikkiWines, @jliexpensify, @dukenv0307 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@jliexpensify
Copy link
Contributor

@NikkiWines since this is a Polish issue, should we change the priority?

@NikkiWines NikkiWines added Weekly KSv2 and removed Daily KSv2 labels Apr 18, 2024
@roryabraham roryabraham removed the Reviewing Has a PR in review label Apr 18, 2024
@melvin-bot melvin-bot bot added the Overdue label Apr 26, 2024
@NikkiWines
Copy link
Contributor

I'm unable to reproduce on staging or prod for mweb or web - let's close this out and if this resurfaces we can reopen or handle it in a fresh issue.

Videos

Web - Prod

Screen.Recording.2024-04-26.at.18.11.31.mov

Web - Staging

Screen.Recording.2024-04-26.at.18.17.43.mov

mWeb - Staging

RPReplay_Final1714180979.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Internal Requires API changes or must be handled by Expensify staff Weekly KSv2
Projects
No open projects
Archived in project
Development

No branches or pull requests

8 participants