-
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
Expense - Category RHP loads infinitely when opening category page in 1:1 expense flow #54586
Comments
Triggered auto assignment to @slafortune ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Category RHP loads indefinitely in 1:1 flow What is the root cause of that problem?We do not show not found page in category RHP when report does not have a policy. Same issue could occur if the categories are disabled for the workspace.
What changes do you think we should make in order to solve the problem?Add condition to show not found page if Current code:
Updated codeif we only check that report is in workspace: const shouldShowNotFoundPage = !report?.policyId || (isEditing && (isSplitBill ? !canEditSplitBill : !ReportActionsUtils.isMoneyRequestAction(reportAction) || !ReportUtils.canEditMoneyRequest(reportAction))); if we also want to check that categories are enabled: const shouldShowNotFoundPage = !policy?.areCategoriesEnabled || (isEditing && (isSplitBill ? !canEditSplitBill : !ReportActionsUtils.isMoneyRequestAction(reportAction) || !ReportUtils.canEditMoneyRequest(reportAction))); What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?No extra tests are needed for this What alternative solutions did you explore? (Optional)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. |
Edited by proposal-police: This proposal was edited at 2024-12-26 19:16:34 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Category RHP opens and loads infinitely. What is the root cause of that problem?The
Then because
What changes do you think we should make in order to solve the problem?We should add a condition to update
That is how we do here We should do the same fix for other steps in money request flow that require group policy if these steps has the same problem What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional)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. |
ProposalPlease re-state the problem that we are trying to solve in this issue.IOU category page opens but shows infinite loading on a DM IOU flow. What is the root cause of that problem?When we open the category page from a DM IOU, the policy categories will be undefined and if we are online, then the loading will show.
The not found page doesn't show because we don't have any check whether the user can access the category field page or not.
What changes do you think we should make in order to solve the problem?We can wrap the page with
This will prevent the user to access the page if:
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional)Or even better, we can copy the condition whether to show the field or not from the confirmation list field to each step page.
etc. We can create a util function for the condition that is more complex. |
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: v9.0.78-4
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): N/A
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
Not here page will open (as in PR #37747)
Actual Result:
Category RHP opens and loads infinitely.
Workaround:
Unknown
Platforms:
Screenshots/Videos
bug.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: