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-08-02] [$125] Web - Workspace - Screen blinks when opening member profile #44192

Closed
2 of 6 tasks
lanitochka17 opened this issue Jun 22, 2024 · 27 comments
Closed
2 of 6 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

Comments

@lanitochka17
Copy link

lanitochka17 commented Jun 22, 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: 9.0.1-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

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to Account settings > Workspaces
  3. Go to any workspace
  4. Go to Members
  5. Click on any member

Expected Result:

The screen will not blink when opening member profile

Actual Result:

The screen blinks when opening member profile

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

Bug6521352_1719047081090.blink_blink.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~013a107b5b6f0f348e
  • Upwork Job ID: 1805160170118380262
  • Last Price Increase: 2024-06-24
Issue OwnerCurrent Issue Owner: @jayeshmangwani
@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Jun 22, 2024
Copy link

melvin-bot bot commented Jun 22, 2024

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

@lanitochka17
Copy link
Author

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

@mountiny mountiny added External Added to denote the issue can be worked on by a contributor Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 DeployBlocker Indicates it should block deploying the API labels Jun 24, 2024
Copy link

melvin-bot bot commented Jun 24, 2024

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

@melvin-bot melvin-bot bot changed the title Web - Workspace - Screen blinks when opening member profile [$250] Web - Workspace - Screen blinks when opening member profile 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 - @jayeshmangwani (External)

@mountiny
Copy link
Contributor

this is minor, I dont think it has to be a blocker

@mountiny mountiny changed the title [$250] Web - Workspace - Screen blinks when opening member profile [$125] Web - Workspace - Screen blinks when opening member profile Jun 24, 2024
Copy link

melvin-bot bot commented Jun 24, 2024

Upwork job price has been updated to $125

@jnowakow
Copy link
Contributor

jnowakow commented Jun 25, 2024

Hello, I'm from SoftwareMansion, an expert agency, and I can work on this.
It seems that the problem is cause by Member.clearWorkspaceOwnerChangeFlow(policyID); being called right before opening modal. Probably this causes page to re-render

@jnowakow
Copy link
Contributor

I commented it out and it help on one workspace but when I navigate to other report I still can observe the problem. I'm looking for other cause

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

Thanks Jan, can you please write the proposal once you find the root cause?

@jnowakow
Copy link
Contributor

@mountiny it seems that the root cause is that the WorkspaceMembersPage is being unmounted and re-rendered when RHP is opened. First render of SelectionList seems to be heavy operation because when you navigate there for the first time there's also slight lag before list is rendered (it's better visible when watching frame by frame 😅 ):

first-navigation.mov

I'm still looking for possible solution so I'm not able to write detailed proposal. I'll try to figure out why in this case whole page is re-rendered and how to prevent it.

@mountiny
Copy link
Contributor

Thanks!

@jnowakow
Copy link
Contributor

Okey, with huge help of @adamgrzybowski I manage to find out the root cause. The screens are unmounted and re-rendered because query params are added when RHP is opened. On the members screens the accountID is pushed to query params:
image

It's because getMatchingRootRouteForRHPRoute "thinks" that if RHP is aware of accountID then screens in the FullScreenNavigator also should know about it.

The best solution is to have strictly defined what screens accepts what params and don't pass anything more. It can be achieved either by parsing routes and pull params names from them or by defining constants with mapping between screen and params

@jayeshmangwani
Copy link
Contributor

Not Overdue, PR is in Draft

@melvin-bot melvin-bot bot removed the Overdue label Jun 29, 2024
@adamgrzybowski
Copy link
Contributor

Hi! I reviewed the PR and it look good 🟢

@melvin-bot melvin-bot bot added Overdue Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 Overdue labels Jul 1, 2024
@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Jul 24, 2024
Copy link

melvin-bot bot commented Jul 24, 2024

This issue has not been updated in over 15 days. @jayeshmangwani, @mountiny, @jnowakow eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@mountiny mountiny added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 and removed Monthly KSv2 labels Jul 25, 2024
Copy link

melvin-bot bot commented Jul 25, 2024

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

@mountiny mountiny added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Reviewing Has a PR in review Daily KSv2 labels Jul 25, 2024
@mountiny mountiny changed the title [$125] Web - Workspace - Screen blinks when opening member profile [HOLD for payment 2024-08-02] [$125] Web - Workspace - Screen blinks when opening member profile Jul 25, 2024
@jayeshmangwani
Copy link
Contributor

  • [@jayeshmangwani] The PR that introduced the bug has been identified. Link to the PR: I'm not exactly able to find the lines of code that caused this issue, but I think the issue is coming from the Ideal nav PR.
  • [@jayeshmangwani] 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:
  • [@jayeshmangwani] 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: N/A
  • [@jayeshmangwani] Determine if we should create a regression test for this bug. Yes
  • [@jayeshmangwani] 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.

Regression Test Proposal

  1. Open App in Web/Desktop
  2. Go to Account settings -> Workspaces
  3. Go to any workspace -> Members
  4. Click on any member
  5. Verify that members list doesn't blink

Do we agree 👍 or 👎

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Aug 1, 2024
Copy link

melvin-bot bot commented Aug 2, 2024

Payment Summary

Upwork Job

  • Reviewer: @jayeshmangwani owed $125 via NewDot
  • Contributor: @jnowakow is from an agency-contributor and not due payment

BugZero Checklist (@JmillsExpensify)

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

@JmillsExpensify
Copy link

Payment summary of $125 is correct. @jayeshmangwani can you submit an expense via NewDot?

@jayeshmangwani
Copy link
Contributor

Requested as per #44192 (comment)

@mallenexpensify
Copy link
Contributor

Contributor+: @jayeshmangwani due $125 via NewDot

test case GH

@JmillsExpensify
Copy link

$125 approved for @jayeshmangwani

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

No branches or pull requests

7 participants