-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Update report_updateLastRead
to not set the sequenceNumber backwards unless specifically told to by the user
#8267
Comments
Triggered auto assignment to @muttmuure ( |
cc @kidroca does this look fine for the requirements? |
@johnmlee101 looks good 👍 |
Triggered auto assignment to @stitesExpensify ( |
Maybe I'm confusing myself but after looking at this for a while but:
To accomplish this we set the
This is the same thing right? We just set the |
It's way too easy to make a mistake and mark messages as unread the way The aim for this change is to avoid auto setting possibly read messages as unread, and instead have a specific action that would only be used after user deliberately marks an older message as unread The linked comment and the discussion points out such cases
|
Gotcha. So I don't think we need new API commands based on that comment. Like I mentioned above the functionality of both could be done with the current What do you think of doing this update to
Thoughts? |
I remember it was proposed to create a new action or add a parameter to the existing, like you say, but I don't remember why we decided to go with separate action Maybe the intent is clearer
Whereas |
After talking to @stitesExpensify 1:1 we decided that having 2 API commands isn't strictly necessary. One flow is a soft-set of the unread/read marker pivot point, and the other is a force set. If the user is marking manually, that will force the sequence number no matter what, while if it isn't manually set it will do a soft check to make sure its not setting below the existing sequenceNumber. Given that, I will be putting this on hold as we'll be pursuing a potential high-level refactor of this logic to simplify and inevitably fix these issues. |
After thinking about this some more and chatting with @marcaaron I decided that this is a very easy change that should significantly improve the experience WRT stalled requests. PRs are up |
report_updateLastRead
to not set the sequenceNumber backwards unless specifically told to by the user
Not done yet |
App PR is on staging, waiting for it to go to prod before we merge the web-e PR |
Web PR is about to be on prod |
Web PR is on prod, unsure why it didn't get posted here, but that means this is done! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Stale update requests are causing people's messages to be marked as unread on accident. This change will prevent stale requests from doing that, while still letting
markAsUnread
work as intendedChanges:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: