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-07-10] [$1000] Web - random QR code is generated on opening share code of room using URL #21157

Closed
1 of 6 tasks
kbecciv opened this issue Jun 20, 2023 · 35 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 External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented Jun 20, 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. From userA, click on + button and select New room option
  2. Fill the details and click on create room option
  3. Click on header of room report screen
  4. Go to share code and copy the URL
  5. From userB (who is not part of room), go to share code using URL ( https://new.expensify.com/r/5701471373675426 )

Expected Result:

Should show 'hmm it's not there...' as user is not part of room

Actual Result:

Users share code shows if user is logged in and if user is not logged in it shows random share code

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.29-6

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

Screen.Recording.2023-06-14.at.11.15.27.AM.1.mov
Recording.787.mp4

Expensify/Expensify Issue URL:

Issue reported by: @gadhiyamanan

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

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~018651b89a2a819106
  • Upwork Job ID: 1673303498370383872
  • Last Price Increase: 2023-06-26
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 20, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jun 20, 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

@Pujan92
Copy link
Contributor

Pujan92 commented Jun 20, 2023

Proposal

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

shows QR code screen for restricted room to non member while using direct url

What is the root cause of that problem?

In the shareCodePage we haven't used FullPageNotFoundView to restrict the user when the report is not available for them.

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

Use FullPageNotFoundView component to wrap here which will show 'hmm it's not there...' page while accessing the invalid room for the user. We can also pass the prop shouldShowLink if we want to show Go back to home page link for the Not Found page.

<ScreenWrapper>
<HeaderWithBackButton

<ScreenWrapper>
      <FullPageNotFoundView shouldShow={!isReport}>
            <HeaderWithBackButton
Result Screenshot 2023-06-21 at 1 35 32 AM

@dukenv0307
Copy link
Contributor

Proposal

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

show users QR code on opening share code of restricted room using URL

What is the root cause of that problem?

We have a check isReport but we don't use it to display not found page if isReport is false.

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

  1. Subscrible isLoadingReportData from Onyx with key ONYXKEYS.IS_LOADING_REPORT_DATA
  2. We could use FullPageNotFoundView component here to display not found page if the user cannot access the report that has reportID is provided from route.
    <HeaderWithBackButton
<FullPageNotFoundView shouldShow={!isLoadingReportData && !isReport} shouldShowLink>

shouldShow prop should be !isLoadingReportData && !isReport because when we open with the deep link before signing in we need to wait to report data loads completely to check isReport correctly.

And if isLoadingReportData is true we should display the loading screen to wait to report data loads completely.

What alternative solutions did you explore? (Optional)

@melvin-bot melvin-bot bot added the Overdue label Jun 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 23, 2023

@muttmuure Whoops! This issue is 2 days overdue. Let's get this updated quick!

@muttmuure
Copy link
Contributor

Will handle first thing Monday

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jun 23, 2023
@muttmuure muttmuure added the Needs Reproduction Reproducible steps needed label Jun 26, 2023
@melvin-bot melvin-bot bot removed the Overdue label Jun 26, 2023
@muttmuure
Copy link
Contributor

Looks like this one is fixed:

image

@gadhiyamanan
Copy link
Contributor

@muttmuure still able to reproduce

Screen.Recording.2023-06-26.at.5.39.05.PM.mov

@muttmuure muttmuure reopened this Jun 26, 2023
@muttmuure
Copy link
Contributor

Updated the reproduction steps because they didn't explicitly mention copying the URL in step 4

@muttmuure muttmuure added External Added to denote the issue can be worked on by a contributor and removed Needs Reproduction Reproducible steps needed labels Jun 26, 2023
@melvin-bot melvin-bot bot changed the title Web - show users QR code on opening share code of room using URL [$1000] Web - show users QR code on opening share code of room using URL Jun 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 26, 2023

Job added to Upwork: https://www.upwork.com/jobs/~018651b89a2a819106

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

melvin-bot bot commented Jun 26, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jun 26, 2023

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

@muttmuure muttmuure changed the title [$1000] Web - show users QR code on opening share code of room using URL [$1000] Web - random QR code is generated on opening share code of room using URL Jun 26, 2023
@sobitneupane
Copy link
Contributor

shouldShow prop should be !isLoadingReportData && !isReport because when we open with the deep link before signing in we need to wait to report data loads completely to check isReport correctly.

And if isLoadingReportData is true we should display the loading screen to wait to report data loads completely.

@dukenv0307 Can you please explain a bit about the need of isLoadingReportData. If you can attach an example of the issue that can occur if we don't add isLoadingReportData, it will be very helpful.

@dukenv0307
Copy link
Contributor

dukenv0307 commented Jun 28, 2023

shouldShow prop should be !isLoadingReportData && !isReport because when we open with the deep link before signing in we need to wait to report data loads completely to check isReport correctly.

@sobitneupane If we don't use isLoadingReportData, there is an issue occurs when we open a shareCode page that is valid for current user by deep link before signing. Like this video below, not found page will display briefly because the report data doesn't load completely.

Screencast.from.28-06-2023.19.54.58.webm

And if isLoadingReportData is true we should display the loading screen to wait to report data loads completely.

And I think we should display loadingPage while report data is loading.

@melvin-bot melvin-bot bot changed the title [$1000] Web - random QR code is generated on opening share code of room using URL [HOLD for payment 2023-07-10] [$1000] Web - random QR code is generated on opening share code of room using URL Jul 3, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 3, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 3, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot
Copy link

melvin-bot bot commented Jul 3, 2023

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

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

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 Jul 3, 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:

  • [@sobitneupane] The PR that introduced the bug has been identified. Link to the PR:
  • [@sobitneupane] 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:
  • [@sobitneupane] 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:
  • [@sobitneupane] Determine if we should create a regression test for this bug.
  • [@sobitneupane] 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.
  • [@muttmuure] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 9, 2023
@sobitneupane sobitneupane mentioned this issue Jul 10, 2023
57 tasks
@sobitneupane
Copy link
Contributor

sobitneupane commented Jul 10, 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:

  • [@sobitneupane] The PR that introduced the bug has been identified. Link to the PR:

#18636

  • [@sobitneupane] 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:

#18636 (comment)

  • [@sobitneupane] 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:

https://expensify.slack.com/archives/C049HHMV9SM/p1688979049764729

  • [@sobitneupane] Determine if we should create a regression test for this bug.

Yes.

  • [@sobitneupane] 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.

#21157 (comment)

@sobitneupane
Copy link
Contributor

Regression Test Proposal

  1. Login with user A
  2. On another device, login with user B
  3. From user B, open a room where user A isn't a member
  4. Click on the header of the report
  5. Go to share code and copy the URL
  6. From user A, go to share code with the URL copied above
  7. Verify that "Not Found Page" is displayed.

Do we agree 👍 or 👎

@sobitneupane
Copy link
Contributor

Payment Requested on Expensify.

@melvin-bot melvin-bot bot added the Overdue label Jul 12, 2023
@muttmuure
Copy link
Contributor

Looks like @sobitneupane has been paid.

@dukenv0307 I've invited you to apply to the Upwork job

@melvin-bot melvin-bot bot removed the Overdue label Jul 13, 2023
@gadhiyamanan
Copy link
Contributor

@muttmuure offer accepted, thanks!

@dukenv0307
Copy link
Contributor

@muttmuure I applied, thank you!

@melvin-bot melvin-bot bot added the Overdue label Jul 17, 2023
@muttmuure
Copy link
Contributor

@gadhiyamanan paid

@dukenv0307 offer sent

@melvin-bot melvin-bot bot removed the Overdue label Jul 17, 2023
@dukenv0307
Copy link
Contributor

@muttmuure I accepted, thank you!

@melvin-bot melvin-bot bot added the Overdue label Jul 20, 2023
@muttmuure
Copy link
Contributor

@dukenv0307 paid

@sobitneupane invited

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jul 21, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

@arosiclair, @sobitneupane, @muttmuure, @dukenv0307 Whoops! This issue is 2 days overdue. Let's get this updated quick!

@sobitneupane
Copy link
Contributor

@muttmuure I already received payment through newDot.

@melvin-bot melvin-bot bot removed the Overdue label Jul 25, 2023
@muttmuure
Copy link
Contributor

OK, no worries!

@muttmuure
Copy link
Contributor

muttmuure commented Jul 27, 2023

@gadhiyamanan - $250.00 (paid in Upwork)

@dukenv0307 - $1,500.00 (paid in Upwork)

@sobitneupane - $1,500.00 (paid in Expensify)

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
Projects
None yet
Development

No branches or pull requests

7 participants