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

[$500] Share code - Tapping reply in thread share code URL directs to page loading infinitely #39415

Closed
4 of 6 tasks
lanitochka17 opened this issue Apr 2, 2024 · 34 comments
Closed
4 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 External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review

Comments

@lanitochka17
Copy link

lanitochka17 commented Apr 2, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 1.4.59
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to https://staging.new.expensify.com/home
  2. Open a report
  3. Send a message
  4. Long press the message and select reply in thread
  5. Send a message
  6. Tap header
  7. Copy share code
  8. Login app with different account
  9. Open a report
  10. Paste copied URL and send the message
  11. Tap URL link

Expected Result:

Tapping reply in thread share code URL must not direct to page loading infinitely

Actual Result:

Tapping reply in thread share code URL directs to page loading infinitely

Workaround:

Unknown

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

Bug6435622_1712066286508.repl.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~012acca0fb0a485001
  • Upwork Job ID: 1775461423696654336
  • Last Price Increase: 2024-04-03
  • Automatic offers:
    • hungvu193 | Reviewer | 0
Issue OwnerCurrent Issue Owner: @laurenreidexpensify
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 2, 2024
Copy link

melvin-bot bot commented Apr 2, 2024

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

@lanitochka17
Copy link
Author

We think that this bug might be related to #vip-vsp

@lanitochka17
Copy link
Author

@laurenreidexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@nkdengineer
Copy link
Contributor

Proposal

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

Tapping reply in thread share code URL directs to page loading infinitely

What is the root cause of that problem?

We wrap the condition to show not found page with the check !shouldShowSkeleton so the not found page will not show if shouldShowSkeleton is true.

!shouldShowSkeleton &&

When we open the report which we cannot access, OpenReport API only returns the errorFields so isCurrentReportLoadedFromOnyx is false that leads shouldShowSkeleton is always true and then infinite skeleton appears

const isCurrentReportLoadedFromOnyx = useMemo((): boolean => {

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

We should remove !shouldShowSkeleton from this check

!shouldShowSkeleton &&

and to fix the issue not found page appears briefly after signing, we can replace reportActionIDFromRoute here to the current reportID param of the route

currentReportIDFormRoute = route.params?.reportID
(!! currentReportIDFormRoute && !ReportUtils.isValidReportIDFromPath(currentReportIDFormRoute))), 

(!!reportIDFromRoute && !ReportUtils.isValidReportIDFromPath(reportIDFromRoute))),

What alternative solutions did you explore? (Optional)

NA

@laurenreidexpensify laurenreidexpensify added the External Added to denote the issue can be worked on by a contributor label Apr 3, 2024
@melvin-bot melvin-bot bot changed the title Share code - Tapping reply in thread share code URL directs to page loading infinitely [$500] Share code - Tapping reply in thread share code URL directs to page loading infinitely Apr 3, 2024
Copy link

melvin-bot bot commented Apr 3, 2024

Job added to Upwork: https://www.upwork.com/jobs/~012acca0fb0a485001

@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
Copy link

melvin-bot bot commented Apr 3, 2024

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

@hungvu193
Copy link
Contributor

It was originally fixed here, however it caused this DB, so it was revert here

Ideally, we should implement #38955 again with the suggestion fix in this discussion

cc @roryabraham @ishpaul777

@hungvu193
Copy link
Contributor

🎀 👀 🎀

Copy link

melvin-bot bot commented Apr 5, 2024

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

@hungvu193
Copy link
Contributor

@cristipaval Can you take a look at my comment here, if this issue is not treated as regression, I think we can go with @nkdengineer's proposal

@cristipaval
Copy link
Contributor

Let's wait for the resolution of the issue where the fix was reverted. Asked about it here.

@ishpaul777
Copy link
Contributor

Sorry i missed the ping here Tomorrow I'll create a new PR as author of closed issue.

@ishpaul777 ishpaul777 mentioned this issue Apr 7, 2024
50 tasks
@melvin-bot melvin-bot bot added the Overdue label Apr 8, 2024
@cristipaval
Copy link
Contributor

WIP.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Apr 8, 2024
@ishpaul777
Copy link
Contributor

Hey all! i did invested sometime but i couldn't get to satisfactory solution, suggested fix in #38955 (comment) causing a weird bug to show Not-found page when chat is swiched, can we please keep it open for more proposals, i really apologize and will continue my investigation but letting you all know so we aren't blocked by me.

@nkdengineer
Copy link
Contributor

@cristipaval My proposal here #39415 (comment) can fix the issue without regression and C+ was approved it.

@hungvu193
Copy link
Contributor

@cristipaval My proposal here #39415 (comment) can fix the issue without regression and C+ was approved it.

I think we will need to confirm #39415 (comment) first then I will need to test your proposal again carefully before processing any further step 😄

@cristipaval
Copy link
Contributor

Let me know when you're done with the re-evaluation, @hungvu193

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

melvin-bot bot commented Apr 15, 2024

📣 @hungvu193 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Apr 15, 2024

📣 @nkdengineer You have been assigned to this job!
Please apply to the Upwork job and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Once you apply to this job, your Upwork ID will be stored and you will be automatically hired for future jobs!
Keep in mind: Code of Conduct | Contributing 📖

@nkdengineer
Copy link
Contributor

@hungvu193 The PR is here.

@laurenreidexpensify
Copy link
Contributor

Deployed to Prod a week ago on 22 April and no regressions, eligible for payment

@laurenreidexpensify laurenreidexpensify added Daily KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Apr 29, 2024
@laurenreidexpensify
Copy link
Contributor

Payment Summary:

C+ @hungvu193 $500 - payment issued in upwork
Contributor @nkdengineer $500 - please accept offer in upwork

@laurenreidexpensify
Copy link
Contributor

@hungvu193 pls advise on any regression steps etc here thanks

@hungvu193
Copy link
Contributor

As I mentioned above:

It was originally fixed here, however it caused this DB, so it was revert here

Regression test:

  1. Open a report
  2. Send an invalid report url and click on it.
  3. Verify that NotFoundPage will show.

Do we 👍 or 👎 ?

@nkdengineer
Copy link
Contributor

Contributor @nkdengineer $500 - please accept offer in upwork

@laurenreidexpensify Offer accepted, thanks!

@nkdengineer
Copy link
Contributor

Sorry @laurenreidexpensify It seems I wasn't paid here, could you please reopen the issue to help with this?

TIA

@cristipaval cristipaval added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Jul 1, 2024
Copy link

melvin-bot bot commented Jul 1, 2024

Triggered auto assignment to @slafortune (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@cristipaval
Copy link
Contributor

Applied the Bug label again to get another bug-zero member, since @laurenreidexpensify is OOO

@cristipaval cristipaval reopened this Jul 1, 2024
@cristipaval
Copy link
Contributor

@slafortune could you please verify whether @nkdengineer was paid? 🙏

@slafortune
Copy link
Contributor

@nkdengineer sorry that happened! Paid now ✅

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 External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review
Projects
No open projects
Archived in project
Development

No branches or pull requests

7 participants