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-06-28] [HOLD for payment 2024-06-24] Workspace - Workspace list reloads when returning online #43799

Closed
6 tasks done
lanitochka17 opened this issue Jun 15, 2024 · 18 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering

Comments

@lanitochka17
Copy link

lanitochka17 commented Jun 15, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


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

Issue found when executing PR #42069

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to Account settings > Workspaces
  3. Go offline
  4. Go online

Expected Result:

Workspace list will not reload when returning online (production behavior)

Actual Result:

Workspace list reloads when returning online

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

workspace.reload.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @kevinksullivan
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 15, 2024
Copy link

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

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

@lanitochka17
Copy link
Author

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

@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API and removed Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 15, 2024
Copy link

melvin-bot bot commented Jun 15, 2024

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

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.

@bernhardoj
Copy link
Contributor

Proposal

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

The workspace list page shows loading indicator every time we come back online.

What is the root cause of that problem?

The workspace list page is wrapped with a withPolicyAndFullscreenLoading HOC which shows a loading indicator if the app is loading and the policy and policyDraft objects are empty.

if (isLoadingReportData && isEmpty(policy) && isEmpty(policyDraft)) {
return <FullscreenLoadingIndicator />;
}

The policy object is from the withPolicy hook which gets the current policy data based on the policy ID route params. However, the workspace list page is a page to show the list of workspaces, so the current policy is always empty.

Why this happens now? It happens after this PR. In that PR, we update the default value to -1. So, when the policy ID param is empty, the value is -1. policy_-1.

function getPolicyIDFromRoute(route: PolicyRoute): string {
return route?.params?.policyID ?? '-1';
}

Previously, it would fallback to an empty string, policy_ which would fetch the whole policy collection, which is definitely not what we want. So, that PR allows us to discover this hidden issue.

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

We don't need withPolicyAndFullscreenLoading in WorkspacesListPage, so let's remove it.

@mountiny
Copy link
Contributor

I can take over as its coming from a PR I have reviewed

@mountiny
Copy link
Contributor

Thanks @bernhardoj, you will get partial compensation for helping identify the root cause!

@AndrewGable AndrewGable removed the DeployBlockerCash This issue or pull request should block deployment label Jun 17, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jun 17, 2024
@melvin-bot melvin-bot bot added the Awaiting Payment Auto-added when associated PR is deployed to production label Jun 17, 2024
@melvin-bot melvin-bot bot changed the title Workspace - Workspace list reloads when returning online [HOLD for payment 2024-06-24] Workspace - Workspace list reloads when returning online Jun 17, 2024
Copy link

melvin-bot bot commented Jun 17, 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 Jun 17, 2024
Copy link

melvin-bot bot commented Jun 17, 2024

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

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jun 21, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-06-24] Workspace - Workspace list reloads when returning online [HOLD for payment 2024-06-28] [HOLD for payment 2024-06-24] Workspace - Workspace list reloads when returning online Jun 21, 2024
Copy link

melvin-bot bot commented Jun 21, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Jun 24, 2024
@mountiny
Copy link
Contributor

For helping to identify the root cause and fix it, I propose a $50 reward to @bernhardoj, in line with similar cases elsewhere.

@kevinksullivan
Copy link
Contributor

Payment summary:

@bernhardoj
Copy link
Contributor

@kevinksullivan hi, I think I need to get paid in Upwork.

@mountiny mountiny reopened this Jul 5, 2024
@bernhardoj
Copy link
Contributor

Requested in ND.

@melvin-bot melvin-bot bot added the Overdue label Jul 8, 2024
@JmillsExpensify
Copy link

$50 approved for @bernhardoj

Copy link

melvin-bot bot commented Jul 8, 2024

@kevinksullivan, @mountiny Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

Copy link

melvin-bot bot commented Jul 10, 2024

@kevinksullivan, @mountiny Eep! 4 days overdue now. Issues have feelings too...

@melvin-bot melvin-bot bot removed the Overdue label Jul 10, 2024
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 Daily KSv2 Engineering
Projects
None yet
Development

No branches or pull requests

7 participants