-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$1000] Settings -Changes "Notifications"/ Priority mode offline aren't saved #11778
Comments
Triggered auto assignment to @alex-mechler ( |
I'm not able to reproduce this on Web, although I'm not on an ios device. If I switch the toggle while offline, it remains in the correct position after going back. Is this only reproducible on iOS @kbecciv? |
@alex-mechler Checking with team, will update you shortly. |
@kbecciv did you hear back from the team? |
@alex-mechler , we can reproduced in all environments. RPReplay_Final1665740705.MP4Recording.2366.mp4RPReplay_Final1665740705.MP4Record_2022-10-14-12-50-03.mp4. |
Thanks for checking! Sending this external, since I can't get it to reproduce, I don't think it requires API changes |
Triggered auto assignment to @alexpensify ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
Triggered auto assignment to @Beamanator ( |
mooost likely this is due to the fact that Pusher isn't sending messages, due to hitting an API quota limit |
Putting on hold till we figure out if that's the problem (I can reproduce this error in dev - after coming back online, we didn't get any pusher message from the back-end) |
For now, I won't take any action and will hold on uploading to Upworks. |
@abdulrahuman5196 Thanks for your proposal. Can you be more specific please. Which are the files you are proposing the changes. Can you link those files and explain what are the changes you are proposing? (Example: #11778 (comment)) |
Your proposal might prevent the subsequent requests. But if the ReconnectApp comes back with the previous value, won't it reset the values to the state received in ReconnectApp? |
@sobitneupane That issue arrises only when multiple requests are sent simultaneously, otherwise ReconnectApp always comes back with the right state (new updated state). |
@priyeshshah11 |
are you able to share a video of the behaviour that you're seeing? I will try to do the same |
@sobitneupane Video of priority mode changed offline working correctly.
Screen.Recording.2022-12-20.at.1.13.03.AM.mov |
I was able to reproduce the issue on native devices only not on desktop. So, all my testings and findings are based on native device. Steps:
Tested on IOS. RPReplay_Final1671459272.mp4 |
@sobitneupane I can reproduce on iOS without my fix but cannot reproduce it with my fix (so I mean to say that it works). Without fixnot-working.movWith my fixworking-with-fix.mov |
On web, When I change the priority mode quickly for few times (on online), it starts oscillating between the modes. Screen.Recording.2022-12-19.at.20.30.10.mov |
@sobitneupane The above solution fixes the OG bug, I think "switching between modes quickly several times" is currently showing this odd behaviour due to the fact that the server is running a bit slow right now thus it queues a new request before it has received a response back from the previous one which I think is a very rare edge case i.e How often are users actually going to switch between modes so quickly & frequently along with the server being slow at the same time? If we still want to fix this particular edge case, then the only option would be to disable the picker until we get a response back, just like we do for SignIn. |
This seems to be another issue related to the Pusher.
I don't have a proper proposal at the moment, just wanted too share my toughts hopefully we will be heading to the right solution. @priyeshshah11 Your solution won't work if the request has been sent already. |
Hi, @sobitneupane my original proposal is here, For solution
Action item 2: Action item 3:
|
Thanks y'all for your conversation and investigation so far! We're planning to regroup internally on the optimal next steps, then we will most likely unlock this when we're ready to move forward. Thanks for everyone's effort so far while looking into possible solutions to this issue |
@Beamanator - It sounds like this one is on hold. Should we move it to Weekly to give more time for the regroup process? |
I don't think there is a need for that right now @alexpensify |
Yeah this is not on hold. This should remain a daily. |
Thanks for the feedback! I'm going OOO until January 3 and will catch up then to identify if there is any movement here. |
Cool, I will keep at eye out, as this is one of the oldest issues in the repo without a PR. |
I think we should change those toggles to be Pattern D or C, so we block the UI when the user goes offline. This request order issue looks generic enough that it could affect other requests though, so I want some more input on this. I'll throw this on slack and see what the team thinks of it. |
Based on the discussion in the Slack thread, the title of this issue is incorrect. It seems that we are saving the settings correctly, but due to site slows, the two requests hit two different servers – one of which is behind versus the other – so older data gets served up. Refreshing would correctly show the "correct" data. Again, based on this discussion, we're closing this issue. If we experience it again during site slows, or come up against backend performance more in the future, we'll re-assess. |
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:
Notifications toggle is still in the same position as it was offline
Actual Result:
Changes "Notifications" made offline aren't saved. The switch returns to its original position.
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.2.13.3
Reproducible in staging?: Yes
Reproducible in production?: Yes
Email or phone of affected tester (no customers): any
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug5774162_2022_10_12_23_49_Img_7908.mp4
2022.10.12.23.41.Img.7907.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: