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-04-09] [HOLD for payment 2024-04-05] [$500] Shortcut - Error shows up when creating second self-assigned task via Assign task shortcut #39049
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
Version Number: 1.4.57-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:
Go to staging.new.expensify.com
Go to self-DM
Create a task and assigned to self
Go to FAB
Click Assign task shortcut
Create another task which is assigned to self
Expected Result:
The second task is created successfully
Actual Result:
Error shows up when creating the second task via Assign task shortcut. The current user mention in the task becomes Hidden
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.
@iwiznia 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
Regression from #38669
For self DM, it is creating new optimistic report everytime task is created from Shortcut. It should not create new report but take the original self DM report. The issue is specifically here:
📣 @nexarvo! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:
Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
This returns the first matched record. (BTW sometime we have more than one chat report selected in this function but it return the first one). Which might not be the exact report we want. In current issue the same problem is happening that it is selecting wrong report in above function.
What changes do you think we should make in order to solve the problem?
We can use this chat ID to get the report. This way we will have the exact report which we want. Right now In ReportUtils.ts we don't have any function to get report by ReportID. We can create one:
changed the title [-] Shortcut - Error shows up when creating second self-assigned task via Assign task shortcut[/-][+][$500] Shortcut - Error shows up when creating second self-assigned task via Assign task shortcut[/+]on Mar 27, 2024
changed the title [-][HOLD for payment 2024-04-05] [$500] Shortcut - Error shows up when creating second self-assigned task via Assign task shortcut[/-][+][HOLD for payment 2024-04-09] [HOLD for payment 2024-04-05] [$500] Shortcut - Error shows up when creating second self-assigned task via Assign task shortcut[/+]on Apr 2, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.58-8 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:
[@ishpaul777] The PR that introduced the bug has been identified. Link to the PR:
[@ishpaul777] 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:
[@ishpaul777] 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:
[@ishpaul777] Determine if we should create a regression test for this bug.
[@ishpaul777] 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.
[@sakluger] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
There was a regression from the linked PR. The new PR to fix that regression is here: #39328. We'll wait for that to be deployed before paying this one out.
@sakluger can we proceed with payments here as the regression from this issue was fixed and deployed to prod. The issue for the regression is also closed #39260
Thanks for the heads up @nexarvo! The base price is $500, but we cut it in half when there is a regression.
Summarizing payment on this issue:
Contributor: @nexarvo $250 (50% reduction for regression), sent offer via Upwork
Contributor+: @ishpaul777 $250 (50% reduction for regression) paid via Upwork
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
Activity
github-actions commentedon Mar 27, 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:
melvin-bot commentedon Mar 27, 2024
Triggered auto assignment to @iwiznia (
Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.lanitochka17 commentedon Mar 27, 2024
We think that this bug might be related to #vip-vsp
lanitochka17 commentedon Mar 27, 2024
@iwiznia 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
nexarvo commentedon Mar 27, 2024
Regression from #38669
For self DM, it is creating new optimistic report everytime task is created from Shortcut. It should not create new report but take the original self DM report. The issue is specifically here:
App/src/libs/actions/Task.ts
Lines 714 to 717 in b27be0f
Due to new optimistic report, the backend is sending error:

Mismatch in reportID:

melvin-bot commentedon Mar 27, 2024
📣 @nexarvo! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:
Format:
nexarvo commentedon Mar 27, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Error shows up when creating second self-assigned task via Assign task shortcut
What is the root cause of that problem?
We are getting chat report by participant lists here:
App/src/libs/ReportUtils.ts
Line 4447 in f8416e9
This returns the first matched record. (BTW sometime we have more than one chat report selected in this function but it return the first one). Which might not be the exact report we want. In current issue the same problem is happening that it is selecting wrong report in above function.
What changes do you think we should make in order to solve the problem?
We already have chat ID here:
App/src/libs/actions/Task.ts
Lines 714 to 717 in b27be0f
We can use this chat ID to get the report. This way we will have the exact report which we want. Right now In
ReportUtils.tswe don't have any function to get report by ReportID. We can create one:We will call the new function in place of this function:
App/src/libs/actions/Task.ts
Line 656 in f8416e9
Like this:
What alternative solutions did you explore? (Optional)
[-] Shortcut - Error shows up when creating second self-assigned task via Assign task shortcut[/-][+][$500] Shortcut - Error shows up when creating second self-assigned task via Assign task shortcut[/+]melvin-bot commentedon Mar 27, 2024
Job added to Upwork: https://www.upwork.com/jobs/~0116839472c268c287
31 remaining items
[-][HOLD for payment 2024-04-05] [$500] Shortcut - Error shows up when creating second self-assigned task via Assign task shortcut[/-][+][HOLD for payment 2024-04-09] [HOLD for payment 2024-04-05] [$500] Shortcut - Error shows up when creating second self-assigned task via Assign task shortcut[/+]melvin-bot commentedon Apr 2, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.58-8 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-04-09. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Apr 2, 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:
sakluger commentedon Apr 8, 2024
There was a regression from the linked PR. The new PR to fix that regression is here: #39328. We'll wait for that to be deployed before paying this one out.
ishpaul777 commentedon Apr 16, 2024
still held on regression fix prod deployment
nexarvo commentedon Apr 24, 2024
@sakluger can we proceed with payments here as the regression from this issue was fixed and deployed to prod. The issue for the regression is also closed #39260
nexarvo commentedon Apr 26, 2024
@sakluger I think this is a $500 ticket as this was made external before we made standard as $250. The amount is also mentioned in the title.
sakluger commentedon Apr 26, 2024
Thanks for the heads up @nexarvo! The base price is $500, but we cut it in half when there is a regression.
Summarizing payment on this issue:
Contributor: @nexarvo $250 (50% reduction for regression), sent offer via Upwork
Contributor+: @ishpaul777 $250 (50% reduction for regression) paid via Upwork
sakluger commentedon Apr 26, 2024
All paid, thanks everyone