Problem
When we make unnecessary network requests, it slows down the app and contributes to higher traffic on our servers. In particular:
- if you are offline and you serialize multiple
EditComment requests, only the last one will take effect
- if you serialize both an
AddComment and any number of EditComment requests, the result would be the same as one AddComment with the content of the final EditComment
- if you serialize an
AddComment followed by a DeleteComment, the end result is the same as not sending any network requests at all
- if you serialize an
EditComment request followed by a DeleteComment, the end result is the same as only sending the DeleteComment
Solution
De-dupe the network requests!
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~021848400026446902359
- Upwork Job ID: 1848400026446902359
- Last Price Increase: 2024-10-21
- Automatic offers:
- dukenv0307 | Reviewer | 104528746
- c3024 | Contributor | 104528756
Issue Owner
Current Issue Owner: @bfitzexpensify
Problem
When we make unnecessary network requests, it slows down the app and contributes to higher traffic on our servers. In particular:
EditCommentrequests, only the last one will take effectAddCommentand any number ofEditCommentrequests, the result would be the same as oneAddCommentwith the content of the finalEditCommentAddCommentfollowed by aDeleteComment, the end result is the same as not sending any network requests at allEditCommentrequest followed by aDeleteComment, the end result is the same as only sending theDeleteCommentSolution
De-dupe the network requests!
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @bfitzexpensify