-
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-08-17] [$1000] Replies count doesn't update on a task shared in group. #23920
Comments
Triggered auto assignment to @JmillsExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Replies count doesn't update on a task shared in group. What is the root cause of that problem?When we complete or reopen task, we are calling Line 339 in 3324ea7
Lines 1528 to 1543 in 3324ea7
To update childVisibleActionCount of action , we got parentReportAction from task.This is only action of shared channel. so only shared channel reply is increased and direct channel reply is not increased(only updated after refresh) What changes do you think we should make in order to solve the problem?We need to What alternative solutions did you explore? (Optional)We can get origin 2 actions on update function. |
Hmmm, I agree that minimally we should be treating the history reportAction the same for the room and DM cases. I'll triage. |
Job added to Upwork: https://www.upwork.com/jobs/~013bbb12e93147362e |
Current assignee @JmillsExpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Replies count doesn't update on a task shared in group when we update the task in assignee report What is the root cause of that problem?When we create a task, we set the App/src/pages/tasks/NewTaskPage.js Line 99 in cb8aac1
And we create the new comment in Lines 69 to 70 in cb8aac1
When we update(reopen or complete) a task using the checkbox, Let's take a look at the completeTask function here Line 263 in cb8aac1
If we update the task in This is the root cause What changes do you think we should make in order to solve the problem?We should update the assignee parent action when we update the task in Solution 1
If the current action is
Add reportID props to the App/src/pages/home/report/ReportActionItem.js Line 287 in cb8aac1
If If not, create the optimistic data same as
Solution 2 We can always create the optmistic data for two parent report actions(in
The backend returns this data. This is for offline mode
This is the function to find the reportAction with childReportID = taskReportID in reportActions of report(reportID)
Now that we get reportID and reportActionID, we can create optmisticData from them as solution 1. The entire code would look like
These solutions works well. I prefer the 2nd solution Result23920.mp4What alternative solutions did you explore? (Optional)We can consider the multiple parentReportID and parentReportActionID. In this case, I think the backend should be updated as well |
@yh-0218 Thanks for the proposal. Your RCA makes sense and the solution as well but it's not well explained. Can you please explain how we will get the 2 report action ids (share report action id is already stored in parentReportActionID but what about the assignee?) |
@s-alves10 Thanks for the proposal. Your RCA makes sense. I don't think solution 1 will work correctly as if we add a reply in the share report it should be reflected in the assignee report as well (and not just the vice-versa way). Solution 2 seems like it will do the job but I'm not sure about the idea of having to iterate through the report actions to find the correct parent. I think there may be a bigger problem, we have two report actions claiming to be the parent of the same report.
Or:
|
Discussing in Slack https://expensify.slack.com/archives/C01GTK53T8Q/p1690973855809149 |
From the slack discussion the highlighted problem seems to be a known limitation. Searching for the "fake" parent actions is the way to go.
@s-alves10 s 2nd solution for doing the above looks good. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @techievivek, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @s77rt 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @s-alves10 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @Krishna2323 We're missing your Upwork ID to automatically send you an offer for the Reporter role. |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.52-5 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-08-17. 🎊 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:
|
|
Hello, do you think that could be a regression ? #24532 |
@ShogunFire I don't think so, that issue seems too different and possibility internal (if we have missing pusher events). |
I don't think so, too. But I think that issue can be solved similarly. I'm submitting a proposal |
You're right. It looks like we have some missing pusher events |
@techievivek @JmillsExpensify, can you pls send a offer on Upwork for reporter role, I have applied a week ago but haven't got the offer yet. |
Yeah, that looks like a backend bug and not something related to changes that were done here. |
@JmillsExpensify Can you take a look into it? Thanks. |
Gentle bump @JmillsExpensify ^ |
Will you let me know when I can get paid? |
@JmillsExpensify, can you pls provide update for payments here. Thanks |
Not overdue, I have just DMed Jason to finish the payment here. Sorry for the delay. |
Sorry ya'll, I'm not coming back to this issue for payments/summary. |
Payment summary:
@Krishna2323 I believe you applied to the Upwork but for the wrong amount. @s-alves10 and @s77rt offers just sent. |
@JmillsExpensify ohh sorry, how can I apply now? |
Just hired you. |
@JmillsExpensify, accepted. |
Paid |
Thanks ✌🏻 |
Accepted |
@JmillsExpensify Accepted! Thanks! |
Everyone should be paid out at this point! Closing. |
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:
The replies count should update in both the group and assignee report.
Actual Result:
The replies count updates in the group but not in assignee report.
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.47-2
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
task_replies_bug_demo.mp4
Recording.1409.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Krishna2323
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690705764414639
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: