Closed m-natarajan closed 1 month ago
Triggered auto assignment to @alexpensify (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.
Job added to Upwork: https://www.upwork.com/jobs/~01ee964f440e728109
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Pujan92 (External
)
Selecting yourself as the assignee should default Share somewhere to your self-DM
skipShareDestination
is passes as true to setAssigneeValue
.
https://github.com/Expensify/App/blob/07008547603aa476f5e06206977a7d5daf8ad7c0/src/pages/tasks/TaskAssigneeSelectorModal.tsx#L195
https://github.com/Expensify/App/blob/07008547603aa476f5e06206977a7d5daf8ad7c0/src/pages/tasks/TaskAssigneeSelectorModal.tsx#L209
Remove the last param when creating new task or for both. We can also remove skipShareDestination
param from setAssigneeValue
.
Nothing happens to Share somewhere
We only set the share destination if the selection assignee is not the current user here.
https://github.com/Expensify/App/blob/fb0043ad97b023b7eb7ad7f57f91711d47213f3f/src/libs/actions/Task.ts#L777 https://github.com/Expensify/App/blob/fb0043ad97b023b7eb7ad7f57f91711d47213f3f/src/libs/actions/Task.ts#L798
If the selected assignee is the current user, we should add the share somewhere as the self-chat. We can add a else condition for this case like this.
OPTIONAL: We can also call setAssigneeChatReport
inside the case the current user is the assignee. If we want to do that, we can move the logic set assign chat report and share somewhere to outside the if condition here and add a else condition to assign the report
as the selfDM.
else {
const selfDMReportID = ReportUtils.findSelfDMReportID();
// If there is no share destination set, automatically set it to the assignee chat report
// This allows for a much quicker process when creating a new task and is likely the desired share destination most times
if (!shareToReportID && !skipShareDestination) {
setShareDestinationValue(selfDMReportID ?? '-1');
}
}
I was trying to reproduce the issue. However it works as expected as in test steps in staging.new.expensify.com @m-natarajan : am i missing any steps? isnt this what the expected behaviour is?
https://github.com/user-attachments/assets/8a910f06-a54d-4c88-9275-deb8f553057d
Hi @kpadmanabhan, the expected behavior is if you select yourself in the Assignee field, then your self DM should automatically populate in the Share somewhere field.
@Pujan92 have you had a chance to review proposals?
@Krishna2323's RCA is incorrect, we aren't passing skipShareDestination
in the function call.
@nkdengineer's RCA and solution looks good to me where they suggested to use else condition for the isCurrentUser part.
πππ C+ reviewed
Current assignee @srikarparsi is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.
π£ @nkdengineer π An offer has been automatically sent to your Upwork account for the Contributor role π Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Keep in mind: Code of Conduct | Contributing π
Easy Melvin, the PR is being worked on.
@Pujan92 this PR is ready for review
This was merged 3 days ago, so waiting for automation to kick in here.
Triggered auto assignment to @OfstadC (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.
@OfstadC, it looks like automation hasn't kicked in here, and I'm not sure if it will. If automation fails, then the payment date will be tomorrow. Here's the summary:
Payouts due: 2024-08-27
Upwork job is here.
If anything urgent is needed here, please ask for help in the #expensify-open-source Slack Room-- thanks!
@Pujan92 any regression testing to propose here?
Thanks @Pujan92
$250 approved for @Pujan92
If you havenβt already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.17-0 Reproducible in staging?: y Reproducible in production?: y 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: @srikarparsi Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1722970867440899
Action Performed:
Expected Result:
Your self DM should be selected under Share somewhere
Actual Result:
Nothing happens to Share somewhere
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
https://github.com/user-attachments/assets/6b9a5fb3-f7c8-46ee-abee-005fa267c738
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @OfstadC