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-11-20] [$250] FAB - Track expense option is not present in FAB for Expensifail account #51242

Closed
3 of 8 tasks
IuliiaHerets opened this issue Oct 22, 2024 · 39 comments · Fixed by #51245
Closed
3 of 8 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 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Oct 22, 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: 9.0.52-1
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): applausetester+kh081006@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Log in with a new Expensifail account.
  3. Open FAB.

Expected Result:

Track expense option will be present.

Actual Result:

Track expense option is not present in FAB for Expensifail account.
This issue is not reproducible on Gmail.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6641966_1729596849447.20241022_193129.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021855906845087708354
  • Upwork Job ID: 1855906845087708354
  • Last Price Increase: 2024-11-11
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @johncschuster
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Oct 22, 2024
Copy link

melvin-bot bot commented Oct 22, 2024

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

Copy link

melvin-bot bot commented Oct 22, 2024

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Oct 22, 2024
Copy link

melvin-bot bot commented Oct 22, 2024

💬 A slack conversation has been started in #expensify-open-source

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Oct 22, 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.

@Julesssss
Copy link
Contributor

Occurring because the selfDM is not being detected. Checking to see if this is intentional.

@Julesssss
Copy link
Contributor

Checking to see if reverting this PR resolves the issue.

@Julesssss
Copy link
Contributor

Yeah, my revert PR resolves the bug.

@fabioh8010
Copy link
Contributor

I made a Draft PR to migrate the remaining components again. @Julesssss @mountiny How can I test this? Is only possible to test with Expensifail accounts?

@mountiny mountiny removed the DeployBlockerCash This issue or pull request should block deployment label Oct 30, 2024
@mountiny
Copy link
Contributor

Created an adhoc build and we can test internally

Copy link

melvin-bot bot commented Nov 4, 2024

@johncschuster, @Julesssss Huh... This is 4 days overdue. Who can take care of this?

@johncschuster
Copy link
Contributor

How's this one going, @mountiny?

@melvin-bot melvin-bot bot removed the Overdue label Nov 4, 2024
@Julesssss Julesssss added the External Added to denote the issue can be worked on by a contributor label Nov 11, 2024
@melvin-bot melvin-bot bot changed the title FAB - Track expense option is not present in FAB for Expensifail account [$250] FAB - Track expense option is not present in FAB for Expensifail account Nov 11, 2024
Copy link

melvin-bot bot commented Nov 11, 2024

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

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

melvin-bot bot commented Nov 11, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Nov 11, 2024
@Pholenk
Copy link

Pholenk commented Nov 11, 2024

Proposal

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

FAB - Track expense option is not present in FAB for Expensifail account

What is the root cause of that problem?

The root cause is located on here:

and here:

function canUseCombinedTrackSubmit(): boolean {

I don't know why we have to determine it by checking whether the user id is equal to 0 after being modulated by 2.
Because of that user, with user id that equal to 0 after being modulated by 2, can not see the Track Expense button .

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

We need to change this:

to be this:
if (canUseCombinedTrackSubmit && !!canUseAllBetas) {

simplescreenrecorder-2024-11-11_18.02.49.mp4

What alternative solutions did you explore? (Optional)

we need to change the logic stated in here if necessary:

function canUseCombinedTrackSubmit(): boolean {

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

Copy link

melvin-bot bot commented Nov 11, 2024

📣 @Pholenk! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@Pholenk
Copy link

Pholenk commented Nov 11, 2024

Contributor details
Your Expensify account email: pholenk.user@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~01fb38b8e3c0567f3c

Copy link

melvin-bot bot commented Nov 11, 2024

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Nov 13, 2024
@melvin-bot melvin-bot bot changed the title [$250] FAB - Track expense option is not present in FAB for Expensifail account [HOLD for payment 2024-11-20] [$250] FAB - Track expense option is not present in FAB for Expensifail account Nov 13, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 13, 2024
Copy link

melvin-bot bot commented Nov 13, 2024

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

Copy link

melvin-bot bot commented Nov 13, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.60-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-11-20. 🎊

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

  • @brunovjk requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Nov 13, 2024

@brunovjk @johncschuster @brunovjk The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@johncschuster
Copy link
Contributor

BugZero Checklist:

  • [Contributor] Classify the bug:
Bug classification

Source of bug:

  • 1a. Result of the original design (eg. a case wasn't considered)
  • 1b. Mistake during implementation
  • 1c. Backend bug
  • 1z. Other:

Where bug was reported:

  • 2a. Reported on production
  • 2b. Reported on staging (deploy blocker)
  • 2c. Reported on a PR
  • 2z. Other:

Who reported the bug:

  • 3a. Expensify user
  • 3b. Expensify employee
  • 3c. Contributor
  • 3d. QA
  • 3z. Other:
  • [Contributor] 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:

  • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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:

  • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

Regression Test Proposal Template
  • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

    Link to issue:

Regression Test Proposal

Precondition:

Test:

Do we agree 👍 or 👎

@quinthar
Copy link
Contributor

Fixed for me, thanks!

@johncschuster
Copy link
Contributor

Payment Summary:

Contributor: @brunovjk paid $250 via Upwork following regression threshold

Upwork job here! Please apply

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Nov 19, 2024
@brunovjk
Copy link
Contributor

@johncschuster should I complete the BugZero checklist here? Thanks.

@johncschuster
Copy link
Contributor

@brunovjk, yes, please!

@brunovjk
Copy link
Contributor

BugZero Checklist:

  • [Contributor] Classify the bug:
Bug classification

Source of bug:

  • 1a. Result of the original design (eg. a case wasn't considered)
  • 1b. Mistake during implementation
  • 1c. Backend bug
  • 1z. Other: The bug occurred due to rendering race conditions when migrating FloatingActionButtonAndPopover to useOnyx. The memoization dependencies were incomplete, causing selfDMReportID to return undefined. A fix was implemented to update dependencies by adding isCreateMenuActive.

Where bug was reported:

  • 2a. Reported on production
  • 2b. Reported on staging (deploy blocker)
  • 2c. Reported on both staging and production
  • 2d. Reported on a PR
  • 2z. Other:

Who reported the bug:

  • 3a. Expensify user
  • 3b. Expensify employee
  • 3c. Contributor
  • 3d. QA
  • 3z. Other: Applause Internal Team
  • [Contributor] 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: No PR directly introduced this bug.

  • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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:

  • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

Regression Test Proposal

Test:

  1. Sign in with an existing account.
  2. Open the Global Create menu and verify that the Track Expense option is present.
  3. Refresh the browser or relaunch the app.
  4. Reopen the Global Create menu and confirm the Track Expense option is still present.

Do we agree 👍 or 👎

Copy link

melvin-bot bot commented Nov 20, 2024

Payment Summary

Upwork Job

BugZero Checklist (@johncschuster)

  • 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/1855906845087708354/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@johncschuster
Copy link
Contributor

Paid! Thanks for your contributions, @brunovjk!

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 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
9 participants