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 2023-11-13] Assign task – Unable to assign subtask in task report when create task in 1:1 DM. #30804
Version Number: 1.3.95-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: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:
👋 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.
To achieve that, we check if all the participants (except ourselves) are special Expensify accounts using _.every. However, on a task report without an assignee, the participant is empty, and if it's empty, _.every will always return true.
// always returns true
_.every([], () => false)
What changes do you think we should make in order to solve the problem?
Check if the other participants are not empty before doing the _.every logic
Activity
melvin-bot commentedon Nov 2, 2023
Triggered auto assignment to @dylanexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Nov 2, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)OSBotify commentedon Nov 2, 2023
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
StagingDeployCashdeploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:melvin-bot commentedon Nov 2, 2023
Triggered auto assignment to @chiragsalian (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.bernhardoj commentedon Nov 3, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Unable to create a sub-task.
What is the root cause of that problem?
We recently have a PR #30019 that doesn't allow a task to be created when all of the participants are special Expensify accounts.
App/src/libs/ReportUtils.js
Lines 527 to 542 in d53a03e
To achieve that, we check if all the participants (except ourselves) are special Expensify accounts using
_.every. However, on a task report without an assignee, the participant is empty, and if it's empty,_.everywill always return true.What changes do you think we should make in order to solve the problem?
Check if the other participants are not empty before doing the
_.everylogicBeamanator commentedon Nov 3, 2023
@bernhardoj that fix looks great! Are you able to spin up a PR in the next hour or two if I assign you now?
Beamanator commentedon Nov 3, 2023
@bernhardoj Iff you are up for submitting a PR soon please do - I'll assign you when I get back online in a few hours
34 remaining items
melvin-bot commentedon Nov 21, 2023
@chiragsalian, @bernhardoj, @dylanexpensify Still overdue 6 days?! Let's take care of this!
chiragsalian commentedon Nov 22, 2023
Anything pending here @dylanexpensify or can we close this out?
dylanexpensify commentedon Nov 22, 2023
paying out @bernhardoj! Offer sent!
melvin-bot commentedon Nov 27, 2023
@chiragsalian, @bernhardoj, @dylanexpensify Huh... This is 4 days overdue. Who can take care of this?
melvin-bot commentedon Nov 29, 2023
@chiragsalian, @bernhardoj, @dylanexpensify 6 days overdue. This is scarier than being forced to listen to Vogon poetry!
chiragsalian commentedon Nov 29, 2023
@dylanexpensify, anything pending here or can we close this out?
melvin-bot commentedon Dec 4, 2023
@chiragsalian, @bernhardoj, @dylanexpensify Eep! 4 days overdue now. Issues have feelings too...
dylanexpensify commentedon Dec 5, 2023
all done!