-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$500] Workspace - Infinite skeleton loading when member is removed from Workspace #35751
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01562b797682c4ff91 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Triggered auto assignment to @dylanexpensify ( |
We think that this bug might be related to #wave6 |
ProposalPlease re-state the problem that we are trying to solve in this issue.The issue at hand revolves around the persistence of wasReportAccessibleRef.current as true despite the modification of the report's state. What is the root cause of that problem?The core problem stems from the oversight of not updating wasReportAccessibleRef.current to false when the specified condition indicates that the report is inaccessible. What changes do you think we should make in order to solve the problem?To resolve this issue, I propose implementing a correction in the code. Specifically, by introducing the following adjustment in the useEffect block: useEffect(() => {
if (!report || !report.reportID || shouldHideReport) {
wasReportAccessibleRef.current = false;
return;
}
wasReportAccessibleRef.current = true;
}, [shouldHideReport, report]); This change ensures that wasReportAccessibleRef.current accurately reflects the accessibility state based on the specified conditions. What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
const shouldShowNotFoundPage = useMemo(
() =>
(!wasReportAccessibleRef.current &&
!firstRenderRef.current &&
!report.reportID &&
!isOptimisticDelete &&
!reportMetadata.isLoadingInitialReportActions &&
!isLoading &&
!userLeavingStatus) ||
shouldHideReport ||
+ wasPolicyAnnounceAccessibleButNotNowRef.current,
[report, reportMetadata, isLoading, shouldHideReport, isOptimisticDelete, userLeavingStatus],
);
What alternative solutions did you explore? (Optional)
|
@parasharrajat can you review proposals? |
@zanyrenney curious what you think of this for wave8? |
@Amoralchik Could you please explain your proposal? |
Okay, I have reconsidered my decision. The primary issue lies in the fact that Previously, we did not set the value to useEffect(() => {
if (!report || !report.reportID || shouldHideReport) {
wasReportAccessibleRef.current = false;
return;
}
wasReportAccessibleRef.current = true;
}, [shouldHideReport, report]); Now, this adjustment ensures that the |
@parasharrajat I just updated my proposal |
@parasharrajat can you re-review? |
Taking this over |
@aimane-chnaif will be helping here as C+ while I am unavailable. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
The expected result is wrong. It should be not found page. @dylanexpensify can you please check? And assign me here. |
@dukenv0307 I am confused about your RCA and solution which made things unnecessarily complex. You meant to show loading indicator instead of not found page? |
I agree with @Amoralchik's proposal. The RCA is correct and solution just fixes that root cause. |
@aimane-chnaif No. I mean that we should show not found page in this case |
@aimane-chnaif The solution #35751 (comment) need to make sure that it does not lead to the regression here |
Thanks. I already tested various cases with that solution but not found issue. |
NICE! |
Woot! Merged! |
The pull request has been reviewed, merged, and deployed. However, it is still labeled as "Reviewing." Is this correct? |
mention @dylanexpensify @MonilBhavsar |
PR was deployed to production on Feb 26 |
ah apologies, I've been out sick, but yes agree will work on payout |
Payment summary:
Please apply or request! |
Accepted this offer already |
I already applied to the Upwork job |
@Amoralchik, @MonilBhavsar, @dylanexpensify, @aimane-chnaif Eep! 4 days overdue now. Issues have feelings too... |
@dylanexpensify |
Ahh I see! Let me get a new link @Amoralchik! |
@Amoralchik sent offer again! |
Done! |
@dylanexpensify Thank you |
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.36-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers): [email protected]
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
Announce room should be archived
Actual Result:
Infinite skeleton loading when member is removed from Workspace
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6365844_1706961916414.Gravar__2034.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: