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-07-24] [$250] mWeb-In new WS, for distance rate selecting a category & opening it directs to hmm not here #44206

Closed
1 of 6 tasks
lanitochka17 opened this issue Jun 22, 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. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Jun 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.1
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/

  2. Tap profile icon -- Workspace -- New Workspace

  3. Tap more features -- Enable distance rate

  4. Tap Distance rates

  5. Tap settings

  6. Select a default category

  7. Open the selected default category

Expected Result:

In new workspace, for distance rate selecting a default category and opening it must show the selected category

Actual Result:

In new workspace, for distance rate selecting a default category and opening it directs to hmm it's not here page

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

Bug6521421_1719053584567.hmm.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01bf4b3c18873471ae
  • Upwork Job ID: 1805141403738762533
  • Last Price Increase: 2024-07-08
  • Automatic offers:
    • situchan | Reviewer | 103065121
    • wildan-m | Contributor | 103065123
Issue OwnerCurrent Issue Owner: @kadiealexander
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 22, 2024
Copy link

melvin-bot bot commented Jun 22, 2024

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

@lanitochka17
Copy link
Author

@kadiealexander 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

@lanitochka17
Copy link
Author

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

@kadiealexander kadiealexander added the External Added to denote the issue can be worked on by a contributor label Jun 24, 2024
Copy link

melvin-bot bot commented Jun 24, 2024

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

@melvin-bot melvin-bot bot changed the title mWeb-In new WS, for distance rate selecting a category & opening it directs to hmm not here [$250] mWeb-In new WS, for distance rate selecting a category & opening it directs to hmm not here Jun 24, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 24, 2024
Copy link

melvin-bot bot commented Jun 24, 2024

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

@Muhammad-UmairAli
Copy link

Clone the Expensify/App repository and create a new branch from the latest main.
Reproduce the issue and start debugging the navigation logic in the affected components.
Identify and fix the navigation issue, ensuring the selected category is correctly passed and displayed.
Write and run tests to confirm the fix works as expected.
Submit the pull request for review, including all necessary details and test evidence.

Copy link

melvin-bot bot commented Jun 24, 2024

📣 @Muhammad-UmairAli! 📣
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>

@Muhammad-UmairAli
Copy link

Contributor details
Your Expensify account email: motivizor.hintsforlife@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~0145449b71231ec7db

Copy link

melvin-bot bot commented Jun 24, 2024

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

@isogit123
Copy link
Contributor

I can't reproduce the issue.

Copy link

melvin-bot bot commented Jun 24, 2024

📣 @isogit123! 📣
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>

@isogit123
Copy link
Contributor

Contributor details
Your Expensify account email: aboutabl6@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~011b9b21b42a676c99

Copy link

melvin-bot bot commented Jun 24, 2024

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

@situchan
Copy link
Contributor

No proposals to review

@jriyyya
Copy link

jriyyya commented Jun 26, 2024

Hi @situchan , I am working on the proposal, I will soon come up with it.
I did find out that the issue is not related to selecting a default category, but to reproduce, If you just enable the distance rate and wait there for a few seconds, the Hmm not here shows up for about 1-2 seconds.

Edit: Similar behavior observed when enabling any of the more features

Untitled.video.-.Made.with.Clipchamp.4.mp4

Copy link

melvin-bot bot commented Jun 26, 2024

📣 @jriyyya! 📣
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>

@jriyyya
Copy link

jriyyya commented Jun 26, 2024

Contributor details
Your Expensify account email: riya1jain567@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~01a88295f6ba1ce1bc?mp_source=share

Copy link

melvin-bot bot commented Jun 26, 2024

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

Copy link

melvin-bot bot commented Jul 1, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Jul 1, 2024
@situchan
Copy link
Contributor

situchan commented Jul 1, 2024

No satisfactory proposals yet

@melvin-bot melvin-bot bot removed the Overdue label Jul 1, 2024
@wildan-m
Copy link
Contributor

wildan-m commented Jul 2, 2024

Proposal

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

mWeb-In new WS, for distance rate selecting a category & opening it directs to hmm not here

What is the root cause of that problem?

We attempted to address this issue with this PR, but some of the code modifications unintentionally led to removal. The modification involved changing the name from FeatureEnabledAccessOrNotFoundWrapper to AccessOrNotFoundWrapper, but after the refactoring, the fix was only partially applied.

why this happens only on mWeb in root cause?

It happens on all platforms, but mobile internet may be slower than desktop. To effectively reproduce the issue, follow these steps:

  1. Log in
  2. Turn off the network connection
  3. Click on the account icon
  4. Navigate to workspaces
  5. Create a new workspace
  6. Click on More Features
  7. Enable a feature (Distance rate/Workflow)
  8. Click on the enabled feature section
  9. Reconnect to the network
  10. Wait until the "not found" page briefly appears.

Native android reproduction steps:

Kapture.2024-07-04.at.05.20.08.mp4

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

Re-apply the changes that were missing from this PR. The updated code will be in the AccessOrNotFoundWrapper.tsx file.

    const isFeatureEnabled = featureName ? PolicyUtils.isPolicyFeatureEnabled(policy, featureName) : true;
    const [isPolicyFeatureEnabled, setIsPolicyFeatureEnabled] = useState(isFeatureEnabled);
    const {isOffline} = useNetwork();

    const isPageAccessible = accessVariants.reduce((acc, variant) => {
        const accessFunction = ACCESS_VARIANTS[variant];
        return acc && accessFunction(policy, login, report, allPolicies ?? null, iouType);
    }, true);

    const isPolicyNotAccessible = isEmptyObject(policy) || (Object.keys(policy).length === 1 && !isEmptyObject(policy.errors)) || !policy?.id;
    const shouldShowNotFoundPage = (!isMoneyRequest && !isFromGlobalCreate && isPolicyNotAccessible) || !isPageAccessible || !isPolicyFeatureEnabled || shouldBeBlocked;

    // We only update the feature state if it isn't pending.
    // This is because the feature state changes several times during the creation of a workspace, while we are waiting for a response from the backend.
    // Without this, we can have unexpectedly have 'Not Found' be shown.
    useEffect(() => {
        if (pendingField && !isOffline && !isFeatureEnabled) {
            return;
        }
        setIsPolicyFeatureEnabled(isFeatureEnabled);
    }, [pendingField, isOffline, isFeatureEnabled]);

Branch for this solution.

What alternative solutions did you explore? (Optional)

@situchan
Copy link
Contributor

situchan commented Jul 9, 2024

@wildan-m's proposal LGTM!
🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Jul 9, 2024

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

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

melvin-bot bot commented Jul 10, 2024

📣 @situchan 🎉 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 Jul 10, 2024

📣 @wildan-m 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@mvtglobally
Copy link

Issue not reproducible during KI retests. (Second week)

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jul 11, 2024
@wildan-m
Copy link
Contributor

@situchan The pull request is prepared for review.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jul 17, 2024
@melvin-bot melvin-bot bot changed the title [$250] mWeb-In new WS, for distance rate selecting a category & opening it directs to hmm not here [HOLD for payment 2024-07-24] [$250] mWeb-In new WS, for distance rate selecting a category & opening it directs to hmm not here Jul 17, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 17, 2024
Copy link

melvin-bot bot commented Jul 17, 2024

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

Copy link

melvin-bot bot commented Jul 17, 2024

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

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

Copy link

melvin-bot bot commented Jul 17, 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:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 23, 2024
@kadiealexander
Copy link
Contributor

kadiealexander commented Jul 24, 2024

Payouts due:

Upwork job is here.

@kadiealexander
Copy link
Contributor

@situchan bump on the checklist!

@situchan
Copy link
Contributor

Regression Test Proposal

  1. Disable network
  2. Navigate to settings / workspaces
  3. Create a new workspace
  4. Click on More Features
  5. Enable a feature (Distance rate/Workflow/Tax, etc)
  6. Click on the enabled feature section
  7. Enable network
  8. Verify there is no "not found" page appears

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
No open projects
Archived in project
Development

No branches or pull requests

9 participants