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
[HOLD for payment 2024-08-29] [$250] Error while task creation via QAB when assigning task to yourself #47680
Version Number: v9.0.22-5 Reproducible in staging?: Y Reproducible in production?: N
Issue was found when executing this PR: #47138 Email or phone of affected tester (no customers):applausetester+ck57@applause.expensifail.com Issue reported by: Applause Internal Team
Action Performed:
Navigate to staging.new.expensify.com
Create a new workspace
Go to the Admins room
Tap + icon in composer >> select Assign task >> Enter task title/description
Assignee the task to yourself (assign to me option)
Tap green FAB button
Click on the Quick Action button and complete the task assignment flow.
Expected Result:
Task should be successfully created via QAB when assign task to yourself
Actual Result:
Error when assigning task to yourself via QAB.
"Hidden" is displayed instead of user's email for already created tasks
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
👋 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:
Identify the pull request that introduced this issue and revert it.
then because the chat report is undefined, an optimistic chat report is generated for the current user then assigneeChatReportID in the param of CreateTask API become invalid reportID which causes the error
What changes do you think we should make in order to solve the problem?
We should pass isCurrentUser as accountID === currentUserAccountID or I think we can remove isCurrentUser and use assigneeAccountID to check the assignee is the current user or not
changed the title [-][$250] Error while task creation via QAB when assigning task to yourself[/-][+][HOLD for payment 2024-08-29] [$250] Error while task creation via QAB when assigning task to yourself[/+]on Aug 22, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.23-0 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[@allgandalf] The PR that introduced the bug has been identified. Link to the PR:
[@allgandalf] 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:
[@allgandalf] 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:
[@allgandalf] Determine if we should create a regression test for this bug.
[@allgandalf] 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.
[@VictoriaExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
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
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
Create a new workspace
Go to the Admins room
Tap + icon in composer >> select Assign task >> Enter task title/description
Assignee the task to yourself (assign to me option)
Tap green FAB button
Click on the Quick Action button and complete the task assignment flow.
Verify that: Task should be successfully created via QAB when assign task to yourself
Activity
melvin-bot commentedon Aug 20, 2024
Triggered auto assignment to @techievivek (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Aug 20, 2024
Triggered auto assignment to @VictoriaExpensify (
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.github-actions commentedon Aug 20, 2024
👋 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:
IuliiaHerets commentedon Aug 20, 2024
We think that this bug might be related to #vip-vsb
nkdengineer commentedon Aug 20, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Error when assigning task to yourself via QAB.
"Hidden" is displayed instead of user's email for already created tasks
What is the root cause of that problem?
We always pass
isCurrentUserparam asfalsehereApp/src/libs/actions/Task.ts
Line 837 in 80236f5
then because the chat report is
undefined, an optimistic chat report is generated for the current user thenassigneeChatReportIDin the param ofCreateTaskAPI become invalid reportID which causes the errorApp/src/libs/actions/Task.ts
Line 796 in 80236f5
What changes do you think we should make in order to solve the problem?
We should pass
isCurrentUserasaccountID === currentUserAccountIDor I think we can removeisCurrentUserand useassigneeAccountIDto check the assignee is the current user or notApp/src/libs/actions/Task.ts
Line 837 in 80236f5
What alternative solutions did you explore? (Optional)
NA
techievivek commentedon Aug 20, 2024
Hmm, I am unable to figure out any recent change that could have caused this but this is not reproducible on prod. 😕
techievivek commentedon Aug 20, 2024
Going to bring in a C+ to help us move this forward.
21 remaining items
allgandalf commentedon Aug 21, 2024
Automation failed, this PR made to production yesterday
[-][$250] Error while task creation via QAB when assigning task to yourself[/-][+][HOLD for payment 2024-08-29] [$250] Error while task creation via QAB when assigning task to yourself[/+]melvin-bot commentedon Aug 22, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Aug 22, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.23-0 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-08-29. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Aug 22, 2024
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
allgandalf commentedon Aug 27, 2024
The PR that introduced the bug has been identified. Link to the PR: Handle deleted reports for Quick Actions #41474
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/41474/files#r1732212177
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
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
Verify that: Task should be successfully created via QAB when assign task to yourself
Do we agree 👍 or 👎
VictoriaExpensify commentedon Aug 29, 2024
Regression testing looks good @allgandalf, created a GH to add this to TestRail - https://github.com/Expensify/Expensify/issues/424225
VictoriaExpensify commentedon Aug 29, 2024
Payment Summary:
Contributor: @nkdengineer paid $250 via Upwork
Contributor+: @allgandalf paid $250 via Upwork
Upwork job
Thanks for your work on this issue!