-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HOLD for payment 2023-09-29] [$1000] Time of User A doesn't appear for User B in IOU or Task room. #24228
Comments
Triggered auto assignment to @conorpendergrast ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~01e1a50a5c3e2c06ad |
Current assignee @conorpendergrast is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ArekChr ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The time of User A doesn't appear for User B in IOU or Task room What is the root cause of that problem?in the in the second image in when i am checking this because we are checking this App/src/pages/home/report/ReportActionCompose.js Lines 977 to 981 in 9811ed5
App/src/pages/home/report/ReportActionCompose.js Line 1020 in 9811ed5
same issue for TaskWhat changes do you think we should make in order to solve the problem?need to fix on the backend side |
ProposalPlease re-state the problem that we are trying to solve in this issue.Time of User A doesn't appear for User B in IOU or Task room. What is the root cause of that problem?To check if the report time should be shown, the Lines 813 to 817 in 9811ed5
When a new task/IOU is created, the What changes do you think we should make in order to solve the problem?In the case of IOU request money and Tasks, their can only be two users. To accommodate for the sender of the IOU/task, we need to add the The same fix needs to be applied here as well: App/src/pages/home/report/ReportActionCompose.js Lines 976 to 979 in 9811ed5
What alternative solutions did you explore? (Optional)N/A |
This issue is duplicated #23836 |
@ArekChr @conorpendergrast I don't think s, they are two different cases. This issue is that the Sender locat time doesn't appear for the Recipient. The other issue (#23836) is the other way around, the Recipient Local Time does not appear for the sender. Screencast.from.08-08-23.13.29.54.webmCompare this video with the first one above you can see the difference. |
ProposalPlease re-state the problem that we are trying to solve in this issue.We want the local time to correctly show local time on both the sender and receiver side in threads What is the root cause of that problem?We handle participant ids differently in the case of task and money request reports. For these types of reports, we only include the assignee/requestee id in the participant ids, the assigner/requester id gets stored in the What changes do you think we should make in order to solve the problem?We can update the way we calculate report participant's here and here to include cases for task/money/simple-thread report types. // pseudocode
const initialIDs = lodashGet(report, 'participantAccountIDs', []);
const updatedIDs = (isTaskReport(report) || isMoneyRequestReport(report)) ? _.union(initialIDs, [report.ownerAccountID]) : initialIDs
const reportParticipants = _.without(updatedIDs, currentUserAccountID) and in the case of simple threads, we can get the parent report participants (we could also update the participant list upon thread creation) // pseudocode
report = isThread(report) && !(isTaskReport(report) || isMoneyRequestReport(report)) ? lodashGet(allReports, [`${ONYXKEYS.COLLECTION.REPORT}${report.parentReportID}`]) : report and abstract all of this logic into ReportUtils. // pseudocode
function getReportParticipantIDs(report, currentUserAccountID){
const updatedReport = isThread(report) && !(isTaskReport(report) || isMoneyRequestReport(report)) ? lodashGet(allReports, [`${ONYXKEYS.COLLECTION.REPORT}${report.parentReportID}`]) : report
const initialIDs = lodashGet(updatedReport, 'participantAccountIDs', []);
const updatedIDs = (isTaskReport(updatedReport) || isMoneyRequestReport(updatedReport)) ? _.union(initialIDs, [updatedReport.ownerAccountID]) : initialIDs
return _.without(updatedIDs, currentUserAccountID);
} I am not sure if we want to show the local time in case of workspace threads, if we don't we can add What alternative solutions did you explore? (Optional)We could also update how we set the participant ids for money/task and simple threads, but this would require some decent refactoring. |
@huzaifa-99 I think the problem with these is that in any chat except of DM there can be more participants than just 2. Maybe just IOU could be two. In Task report, you can invite people in threads you can invite people, workspace and expenses can have bunch of people too. |
Thank you for having a look. The canShowReportRecipientLocalTime handles multiple participants case and if there are multiple it won't show local time which seems correct. I think the issue here seems to be that if there are 2 users, User A will see the local time of User B, but User B won't be able to see local time of User A (because of the difference in the way we store iou/task manager/owner and participants ids). cc: @mountiny |
@conorpendergrast i think this issue is not exactly duplicate of the other one (that is linked to the problem with known and unknown users - secure login) @ArekChr do you agree? I think we should reopen this |
@mountiny I looked it up, and I think so too. Let's reopen this issue. |
@huzaifa-99 Fixing this issue shouldn't change behavior of other features. |
@huzaifa-99 Why using |
Sure, we can then follow the existing behaviour for workspace threads i.e not show local time there.
I believe we should because that too can have 2 users. In general, if there are 2 or more report participants then we are already hiding the local time here in that case so I think it's fine to include expense reports. However if we want to only include IOU reports then we can use Thoughts @ArekChr? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.72-11 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 2023-09-29. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
@johncschuster bumping for payment process. |
|
Thanks for the bump, @huzaifa-99! It looks like the offer is still pending in Upwork. Can you accept that? |
I've issued payment for @Ahmed-Abdella. I'll get you as soon as you ping me, @huzaifa-99! |
Offer accepted @johncschuster. |
@johncschuster, @ArekChr, @roryabraham, @huzaifa-99 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Bump @johncschuster |
Thanks for the bump, @huzaifa-99! I've just issued payment |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
User B should be able to see the time of User A ( who request the money ) inside the IOU room.
Actual Result:
User B Can't see the time of User A ( Who request the money ) inside IOU room
NOTICE: this happens also in the task room
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.50.3
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
Notes/Photos/Videos: Any additional supporting documentation
Screencast.from.01-08-23.18_50_26.webm
Recording.5765.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Ahmed-Abdella
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690906316722259
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: