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 2024-05-08] [HOLD for payment 2024-05-06] [$250] Track expense - Education video is displayed in public room when viewed anonymously #41148

Closed
5 of 6 tasks
m-natarajan opened this issue Apr 27, 2024 · 40 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering Weekly KSv2

Comments

@m-natarajan
Copy link

m-natarajan commented Apr 27, 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.67-0
Reproducible in staging?: y
Reproducible in production?: no, new feature
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
Expensify/Expensify Issue URL:
Issue reported by: applause internal team
Slack conversation:

Action Performed:

  1. Go to staging.new.expensify.com
  2. Log out if logged in.
  3. Navigate to public room anonymously (https://staging.new.expensify.com/r/2376199970894587).
  4. Go to FAB.
  5. Click Track expense.
  6. Click Got it.

Expected Result:

The RHP should not be distorted

image

Actual Result:

After dismissing the modal, the RHP is distorted

image

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

Bug6463788_1714232319574.20240427_233506.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01737d06f4b632dcb2
  • Upwork Job ID: 1785022453427478528
  • Last Price Increase: 2024-04-29
Issue OwnerCurrent Issue Owner: @allroundexperts
@m-natarajan m-natarajan added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 27, 2024
Copy link

melvin-bot bot commented Apr 27, 2024

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

Copy link

melvin-bot bot commented Apr 27, 2024

Triggered auto assignment to @kevinksullivan (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.

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Apr 27, 2024
@melvin-bot melvin-bot bot added the Daily KSv2 label Apr 27, 2024
Copy link
Contributor

👋 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.

@melvin-bot melvin-bot bot removed the Hourly KSv2 label Apr 27, 2024
@m-natarajan
Copy link
Author

@kevinksullivan 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.

@m-natarajan
Copy link
Author

We think this bug might be related to #vip-vsb

@gijoe0295
Copy link
Contributor

gijoe0295 commented Apr 27, 2024

Proposal

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

  1. Track expense education modal is displayed for anonymous users visiting the public room.
  2. After dismissing the modal, the RHP is distorted.

What is the root cause of that problem?

We do not check for anonymous user before opening educational modal:

if (!hasSeenTrackTraining && !isOffline) {
Navigation.navigate(ROUTES.TRACK_TRAINING_MODAL);
}

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

Put the educational modal navigation inside interceptAnonymousUser's callback above.

Fixing 1 will fix 2.

What alternative solutions did you explore? (Optional)

NA

@thienlnam
Copy link
Contributor

I don't think the issue is with showing the educational video, but why is the RHP distorted after dismissing the video. Could we address that issue?

@thienlnam
Copy link
Contributor

This also was added in #40675
cc @tienifr @rushatgabhane @srikarparsi

@francoisl
Copy link
Contributor

@tienifr any idea on this one?
Using the other options in the LHN like "Start Chat" or "Submit Expense" opens the sign-in RHP correctly, so I feel like it's really the modal with the video that makes it look distorted.

@srikarparsi
Copy link
Contributor

cc @rushatgabhane as well

@srikarparsi
Copy link
Contributor

Adding the external label since @rushatgabhane @tienifr seem to be offline.

@srikarparsi srikarparsi added the External Added to denote the issue can be worked on by a contributor label Apr 29, 2024
@melvin-bot melvin-bot bot changed the title Track expense - Education video is displayed in public room when viewed anonymously [$250] Track expense - Education video is displayed in public room when viewed anonymously Apr 29, 2024
Copy link

melvin-bot bot commented Apr 29, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01737d06f4b632dcb2

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

melvin-bot bot commented Apr 29, 2024

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

@srikarparsi srikarparsi self-assigned this Apr 29, 2024
@allgandalf
Copy link
Contributor

Loll, I thought this was going to be external for us to work on😆

@srikarparsi
Copy link
Contributor

Yeahh, I made it external to see if there's a better way to check once the animation is done instead of the setTimeout. I just deployed this fix right now since the deploy blocker is time sensitive but I still think we could explore a better way to do it since sometimes rendering the animation will take longer. I might keep this issue for @rushatgabhane and @tienifr to chime in as well since they were the original authors but I'll circle back on that.

@francoisl francoisl removed the DeployBlockerCash This issue or pull request should block deployment label Apr 29, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Apr 29, 2024
@melvin-bot melvin-bot bot changed the title [$250] Track expense - Education video is displayed in public room when viewed anonymously [HOLD for payment 2024-05-06] [$250] Track expense - Education video is displayed in public room when viewed anonymously Apr 29, 2024
Copy link

melvin-bot bot commented Apr 29, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 29, 2024
Copy link

melvin-bot bot commented Apr 29, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.67-7 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 2024-05-06. 🎊

Copy link

melvin-bot bot commented Apr 29, 2024

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:

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

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

Adding @allroundexperts for reviewing the PR

@srikarparsi
Copy link
Contributor

@tienifr and @rushatgabhane, we merged this fix here but not sure if this is the best way to go about it. Do you guys have any other ideas that are more dependent on render/animation time rather than a constant timeout?

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels May 1, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-05-06] [$250] Track expense - Education video is displayed in public room when viewed anonymously [HOLD for payment 2024-05-08] [HOLD for payment 2024-05-06] [$250] Track expense - Education video is displayed in public room when viewed anonymously May 1, 2024
Copy link

melvin-bot bot commented May 1, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.68-3 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 2024-05-08. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented May 1, 2024

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:

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

Copy link

melvin-bot bot commented May 8, 2024

Payment Summary

Upwork Job

BugZero Checklist (@kevinksullivan)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1785022453427478528/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@kevinksullivan
Copy link
Contributor

Payment summary all set for @allroundexperts . Can you finish out the steps above and then I'll close this? Thanks!

@melvin-bot melvin-bot bot added the Overdue label May 16, 2024
@kevinksullivan
Copy link
Contributor

Waiting on @allroundexperts for the steps above

@srikarparsi
Copy link
Contributor

srikarparsi commented May 21, 2024

^ (Trying to remove the overdue label)

@allroundexperts
Copy link
Contributor

I don't think if a checklist is needed here. This was a bug with no definite root cause and as such, we just used a timeout to solve it. A regression test would be an overkill here as well.

@melvin-bot melvin-bot bot removed the Overdue label May 21, 2024
@kevinksullivan
Copy link
Contributor

Payment summary:

@JmillsExpensify
Copy link

$250 approved for @allroundexperts

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. Engineering Weekly KSv2
Projects
None yet
Development

No branches or pull requests

10 participants