You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2025-03-21] [$250] Onboarding - Onboarding task report has "Room description" field which opens not here page #56652
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: 9.0.96-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from TestRail: Exp Email or phone of affected tester (no customers):hdsdsmisdisisi@gmail.com Issue reported by: Applause Internal Team Device used: Mac 15.0 / Chrome App Component: Other
Action Performed:
Go to staging.new.expensify.com
Sign up with a new Gmail account (random email without +)
On onboarding purpose, choose Manage my team's expenses
Select organization size
Select an accounting
Complete the onboarding
Go to #admins room.
Click on any task.
Click task report header.
Click Room description.
Expected Result:
There should be no "Room description" field because this is a task report.
Actual Result:
Onboarding task report has "Room description" field which opens not here page.
Please re-state the problem that we are trying to solve in this issue.
Onboarding task report has "Room description" field which opens not here page
What is the root cause of that problem?
We are displaying description if shouldShowReportDescription is true. shouldShowReportDescription doesn't check if the user can edit a task and it is true if the user can't edit a task.
And in ReportDetailsPage, we need to add shouldShowRightIcon={canEditReportDescription} & interactive={canEditReportDescription} to the description field.
OTIONAL: If we want, we can hide the description field using the canEditReportDescription value.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
🚨 Edited by proposal-police: This proposal was edited at 2025-02-11 10:07:11 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Onboarding task report has "Room description" field which opens not here page.
What is the root cause of that problem?
The task report in the admin room is also a chat room which causes shouldShowReportDescription to be true and the description appears in the report detail page
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
To prevent this issue can happening again the further, we can move the logic to show the report description to a util function and create some test cases for this and assert it returns false for task report or other reports that isn't chat room.
What alternative solutions did you explore? (Optional)
changed the title [-]Onboarding - Onboarding task report has "Room description" field which opens not here page[/-][+][$250] Onboarding - Onboarding task report has "Room description" field which opens not here page[/+]on Feb 12, 2025
There should be no "Room description" field because this is a task report.
Given the Expected result, let's go with @etCoderDysto's proposal as they were first to identify the root cause of why the "Room description" field is showing in our issue's case, and propose a solution that fixes the issue in accordance with the Expected result, at no additional lines of code since the canModifyTask check already exists in ReportDetailsPage, the solution will simply move the check above the shouldShowReportDescription check, then add it to the existing condition.
Note
PR Notes
Make sure to add a second test in PR description verifying that the "Room description" field still appears and can be edited if created by the author himself.
changed the title [-][$250] Onboarding - Onboarding task report has "Room description" field which opens not here page[/-][+][Due for payment 2025-03-21] [$250] Onboarding - Onboarding task report has "Room description" field which opens not here page[/+]on Mar 14, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.12-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@ikevin127@jliexpensify@ikevin127 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Test 1 - (main issue test)
Go to staging.new.expensify.com.
Sign up with a new Gmail account (random email without +).
On onboarding purpose, choose Manage my team's expenses.
Select organization size.
Select an accounting.
Complete the onboarding.
Go to #admins room.
Click on any task.
Click task report header.
Verify that there is no Room description field in the RHP.
Test 2 - (secondary test to verify that Room description still shows in other cases)
Create a room.
Open the room.
Click on the report header.
Verify that you can see the Room Description field on the details page (RHP).
Test 3 - (secondary test to verify that Room description still shows in other cases)
Create a room.
In the room create a task with description and no assignee.
Click on the task.
Click task report header.
Verify that you can see the Room description field on the details page (RHP).
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Feb 11, 2025
Triggered auto assignment to @michaelkwardrop (
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.etCoderDysto commentedon Feb 11, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Onboarding task report has "Room description" field which opens not here page
What is the root cause of that problem?
We are displaying description if
shouldShowReportDescriptionis true.shouldShowReportDescriptiondoesn't check if the user can edit a task and it is true if the user can't edit a task.App/src/pages/ReportDetailsPage.tsx
Line 219 in 48520ec
What changes do you think we should make in order to solve the problem?
We shouldn't show description if the user can't edit a task
We can alternatively use
!isTaskReportinstead ofcanModifyTaskWhat specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
UI issue
What alternative solutions did you explore? (Optional)
Krishna2323 commentedon Feb 11, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Onboarding - Onboarding task report has "Room description" field which opens not here page
What is the root cause of that problem?
canEditReportDescriptionutil function does not include the check for task report andcanModifyTask.App/src/libs/ReportUtils.ts
Lines 8231 to 8241 in 48520ec
What changes do you think we should make in order to solve the problem?
canEditReportDescriptionutil function to also include the check for task report andcanModifyTask.And in
ReportDetailsPage, we need to addshouldShowRightIcon={canEditReportDescription}&interactive={canEditReportDescription}to the description field.OTIONAL: If we want, we can hide the description field using the
canEditReportDescriptionvalue.What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
mkzie2 commentedon Feb 11, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-02-11 10:07:11 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Onboarding task report has "Room description" field which opens not here page.
What is the root cause of that problem?
The task report in the admin room is also a chat room which causes
shouldShowReportDescriptionto betrueand the description appears in the report detail pageApp/src/pages/ReportDetailsPage.tsx
Line 219 in 48520ec
While in
TaskDescriptionPage, we display the not found page if the task cannot be editedApp/src/pages/tasks/TaskDescriptionPage.tsx
Line 101 in 48520ec
What changes do you think we should make in order to solve the problem?
We can hide the description on the detail page if the report is a child report. We can use
!isThreador!isTaskReport.App/src/pages/ReportDetailsPage.tsx
Line 219 in 48520ec
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
To prevent this issue can happening again the further, we can move the logic to show the report description to a util function and create some test cases for this and assert it returns
falsefor task report or other reports that isn't chat room.What alternative solutions did you explore? (Optional)
[-]Onboarding - Onboarding task report has "Room description" field which opens not here page[/-][+][$250] Onboarding - Onboarding task report has "Room description" field which opens not here page[/+]melvin-bot commentedon Feb 12, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021889479505886750975
melvin-bot commentedon Feb 12, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ikevin127 (
External)ikevin127 commentedon Feb 12, 2025
Expected result:
Given the Expected result, let's go with @etCoderDysto's proposal as they were first to identify the root cause of why the "Room description" field is showing in our issue's case, and propose a solution that fixes the issue in accordance with the Expected result, at no additional lines of code since the
canModifyTaskcheck already exists inReportDetailsPage, the solution will simply move the check above theshouldShowReportDescriptioncheck, then add it to the existing condition.Note
PR Notes
Make sure to add a second test in PR description verifying that the "Room description" field still appears and can be edited if created by the author himself.
🎀👀🎀 C+ reviewed
51 remaining items
[-][$250] Onboarding - Onboarding task report has "Room description" field which opens not here page[/-][+][Due for payment 2025-03-21] [$250] Onboarding - Onboarding task report has "Room description" field which opens not here page[/+]melvin-bot commentedon Mar 14, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Mar 14, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.12-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 2025-03-21. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Mar 14, 2025
@ikevin127 @jliexpensify @ikevin127 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
ikevin127 commentedon Mar 15, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] 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: https://github.com/Expensify/App/pull/35153/files#r1996459773.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Test 1 - (main issue test)
Test 2 - (secondary test to verify that Room description still shows in other cases)
Test 3 - (secondary test to verify that Room description still shows in other cases)
Do we agree 👍 or 👎.
jliexpensify commentedon Mar 17, 2025
Payment Summary
Upwork job
jliexpensify commentedon Mar 21, 2025
Paid and job closed!