-
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
[$2000] BUG: unread indicator count is not reset after logout reported by @parasharrajat #11671
Comments
Triggered auto assignment to @tjferriss ( |
I'm going to pass this over to engineering as I think it's a pass. However, I am on the fence as to whether this issue really hits the value part of the review:
This seems like a polish item and if it requires more than a super small amount of work then I'd suggest we pass for now. |
Triggered auto assignment to @Justicea83 ( |
This can be external, we set the unreadCount on the Web App here. |
Triggered auto assignment to @CortneyOfstad ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
Triggered auto assignment to @marcaaron ( |
ProposalProblemNow, we're using ##Solution we'll create new function In https://github.com/Expensify/App/blob/main/src/libs/UnreadIndicatorUpdater/index.js +function resetReportAfterLogout(){
+ Object.keys(reports).forEach(k => delete reports[k])
+}
export default {
listenForReportChanges,
stopListeningForReportChanges,
throttledUpdatePageTitleAndUnreadCount,
+ resetReportAfterLogout
};
In https://github.com/Expensify/App/blob/main/src/pages/signin/SignInPage.js#L48 - setTimeout(() => updateUnread(0), 0);
+ setTimeout(() => {
+ UnreadIndicatorUpdater.resetReportAfterLogout()
+ updateUnread(0)
+ }, 0); Screen.Recording.2022-10-11.at.18.08.51.mp4 |
@Justicea83 why did we unassign @CortneyOfstad? Did I miss a process change? Seems like we need to wait for the Upwork job before the Help Wanted label gets added (which should happen automatically when the |
Sounds good — just about to head out for the day, but will tackle this ASAP in the morning to get the Upwork job created 👍 |
That must be a Github bug, I remember only unassigning myself 😁 |
Coming back to this issue though, let's like we're down to one PR, and working through one trailing bug/consideration before merging. It definitely looks close! |
@tgolen, @puneetlath, @CortneyOfstad, @sobitneupane, @fedirjh 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
@tgolen, @puneetlath, @CortneyOfstad, @sobitneupane, @fedirjh 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it! |
This issue is going to require two different PRs to fix. The first PR is a refactoring of how the unread reports are counted. However, there was one report of Onyx data not fully clearing when the sign-out happens, which kept some unread reports sitting in Onyx and the unread count remained. Well, at least the count is accurately tracking what is in Onyx! I was not able to reproduce the issue of Onyx.clear() not working correctly, but if we can reproduce it reliably, and fix it, then this issue can be fully closed. There are quite a few changes being made to Onyx.clear() right now after switching over to SQLite and the |
@tgolen i have reported that before #11671 (comment) , and i believe this issue was present from long time ago #7397 (comment) There was some reported bugs (#11901 and #12055) which got closed due to hard replication and i believe they are related to
|
@fedirjh Thanks for those reminders. I think what I would like to do is open a new issue that specifically tracks the problems with Onyx.clear() and not just the symptoms of it. I'll work on creating that GH and I will CC you on the issue. If you have the time, I'd appreciate your review and help with testing Expensify/react-native-onyx#219 |
I've opened #13884 to address issues related to Onyx.clear() not fully clearing out data |
OK, I've unlocked it for now.
…On Sat, Dec 31, 2022 at 9:33 AM Fedi Rajhi ***@***.***> wrote:
@tgolen <https://github.com/tgolen> thank for creating new I issue for
Onyx.clear() , unfortunately that's conversation (#13884
<#13884>) is locked and I can't
reply there.
—
Reply to this email directly, view it on GitHub
<#11671 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJMABZAUPP5WVMGRI5Y6DLWQBU6PANCNFSM6AAAAAAQ7Y6GQY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@tgolen, @CortneyOfstad, @sobitneupane, @fedirjh Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@CortneyOfstad This should be ready for payment. Associated PR was deployed to production last week. |
@sobitneupane I am so sorry for the delay on this! For the payment, it would be like this, correct? @parasharrajat gets $250 for reporting Are there any bonuses that I am missing? TIA! |
@CortneyOfstad Rajat $250 for reporting. |
Oh okay, thank you for the clarification! I'll get the contracts sent over in UpWork ASAP to have them accepted and I'll get payment sent out right away this morning. Again, I apologize for the delay on this!! |
Alright, contracts have been sent out @parasharrajat and @sobitneupane! Thanks! |
No Problem @CortneyOfstad.
Accepted the offer. |
Both contracts have been accepted and paid! Closing! |
@sobitneupane , @CortneyOfstad , from this comment #12963 (comment) , I think I am eligible for compensation too. |
^^ @sobitneupane can you confirm? |
At first we decided to go with @fedirjh's proposal. But later we found some issues in the proposal. So, we opened it for new proposals. Since we were not getting good proposals, @tgolen decided to make it internal. It was solved with a different approach than initially proposed by @fedirjh. But @fedirjh was involved in this issue from the very beginning. @CortneyOfstad This is the context. I am not sure if @fedirjh is eligible for the payment. |
Okay, let me check with the team on this. Thank you! |
Actually @fedirjh I misspoke! |
Our team has decided that this does qualify for payment and you'll get $250. I'll get that contract over to you ASAP! |
@fedirjh Contract sent over! |
@CortneyOfstad Thank you! Accepted. |
Paid! Thank you! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Optional:
9. If count is not shown by step 8, login back with the same account without refreshing the page.
10. Wait for the count to show up.
11. Log out now.
12. Wait a couple seconds, observe the Unread count on the tab bar.
Expected Result:
No unread count and indicator is shown after logout
Actual Result:
Unread count and indicator are shown after logout on login page.
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.2.12-2
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
https://user-images.githubusercontent.com/43996225/194615034-efb34a05-7dfd-4644-b813-d49dbc39827d.mp4
Recording.639.2.mp4
Expensify/Expensify Issue URL:
Issue reported by: @parasharrajat
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1665066610938259
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: