-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 #15212][$1000] Add FailureData for NewDot MarkAsUnread command so that it can revert values correctly #15266
Comments
Job added to Upwork: https://www.upwork.com/jobs/~010b9ff7fc1c469571 |
Triggered auto assignment to @CortneyOfstad ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
Triggered auto assignment to @madmax330 ( |
I see the failure data is ready. For the marker line issue, maybe we can also put it in a tracker here? |
ProposalPlease re-state the problem that we are trying to solve in this issue.MarkAsUnread command is not reverting the values correctly when it fails. What is the root cause of that problem?
This part is because currently we don't have the
This is because in this line, when
This will work for the case of What changes do you think we should make in order to solve the problem?The onyx report data is updated to a past value which is not in sync with the data in the backend. For this issue, the failure data can be added as suggested in the issue description
can be added to App/src/libs/actions/Report.js Line 690 in d690ee2
There is a new message marker line. For this issue
In this line we need to update the condition for this MarkAsUnread command failure case. The condition can be updated to (ReportUtils.isUnread(this.props.report) || ReportUtils.isUnread(prevProps.report)) .
When we revert the What alternative solutions did you explore? (Optional)We can remove this condition
and always update the newMarkerReportActionID if the lastReadTime changes.
ResultWorking well after the fix Screen.Recording.2023-02-18.at.11.11.36.mov |
@madmax330 how does the above proposal look? Any thoughts? |
Looks good to me @tienifr |
@madmax330 I have the same thought. Let’s move forward with the @tienifr proposal! |
Sorry, i don't think that proposal is correct. I'm pretty sure our jest tests will fail too with those changes.
With the current changes, i think they would not see it which is incorrect. Feel free to correct me if I'm mistaken. |
@chiragsalian I'm not following are you disagreeing with this part
Or setting the failureData to the old last read timestamp? Also I don't understand why there wouldn't be a new message line marker if the lastReadTime is further in the past than it was. Or are you saying this has some side effects on other flows? |
Updated Proposal@chiragsalian is right about the regression that the approach will cause Here's my updated approach for that second part: For both success and failure case we'll set Then in
This will still achieve the expected result and will not cause the regression mentioned by @chiragsalian. (This approach is similar to the |
Yes I'm diasgreeing with the logic you linked there i.e., I'm not disagreeing with the failureData. I provided that after all 😛
I'm sure i follow your question here. lastReadTime usually moves ahead. So in the issue here failureData will move lastReadTime ahead too. The optimisticData moves it to the past but the issue is moving it to the present has problems with the new message marker because,
Hope that helps. Let me know if you have any questions with that🙂 To be honest, when I wrote this issue having a new key like |
going to close this out in favor of centralizing discussion on #15212 since we're going to try and solve all this more holistically with a design doc |
whoops sorry I jumped the gun on closing, leaving open and on hold for now and dropping priority to monthly |
Triggered auto assignment to @Christinadobrzyn ( |
This comment was marked as off-topic.
This comment was marked as off-topic.
@madmax330, @mollfpr, @Christinadobrzyn Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Still holding |
Still on hold for #15212 |
Still on hold for #15212 |
Still on hold |
Same |
Going to close this. If after the markers are done being fixed it still happens I'm sure someone will open an issue |
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:
lastReadTime
param fromMarkAsUnread
API. We need to intentionally break the command to easily test the failure data.Expected Result:
Actual Result:
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
This snippet should help add the failure data, the tricky part is the new message marker line.
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number:
Reproducible in staging?:
Reproducible in production?:
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
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: