Skip to content
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

Inbox unread filter fixes #2317

Closed
1 of 2 tasks
elatif2020 opened this issue Nov 8, 2023 · 19 comments · Fixed by #2326 or #2381
Closed
1 of 2 tasks

Inbox unread filter fixes #2317

elatif2020 opened this issue Nov 8, 2023 · 19 comments · Fixed by #2326 or #2381
Assignees
Labels
Priority - A V [dev] verified on dev enviroment V [production] verified on production enviroment

Comments

@elatif2020
Copy link
Collaborator

elatif2020 commented Nov 8, 2023

  • For some reason, when I don't have any unread streams it show an empty inbox (with only unread messages view), but when I have one or some unread messages, it shows me them plus two more streams -- the Autumn DEV one and a DM with Daniel (which, btw, doesn't appear in my inbox in the regular view).

  • Include also New streams (streams with the New badge) that have recently been created but which don't have yet any message on them.

@danielr18
Copy link
Collaborator

Fixed a related issue.

The FE is caching the inbox items some way which leads to unknown behavior on what inbox items are displayed.

@danielr18 danielr18 reopened this Nov 15, 2023
@danielr18 danielr18 transferred this issue from another repository Nov 15, 2023
@danielr18
Copy link
Collaborator

Example of the inbox showing all items when unread inbox items are only 2
image
image

@andreymikhadyuk
Copy link
Collaborator

Regarding real-time unread messages update: waiting for the further updates from @elatif2020.

@andreymikhadyuk andreymikhadyuk linked a pull request Nov 21, 2023 that will close this issue
5 tasks
andreymikhadyuk added a commit that referenced this issue Nov 21, 2023
@elatif2020
Copy link
Collaborator Author

elatif2020 commented Nov 24, 2023

There are some issues we should fix here, but first we should hide this option to deploy to production
#2336

The fixes we need (afterward):

@elatif2020 elatif2020 reopened this Nov 24, 2023
@andreymikhadyuk
Copy link
Collaborator

@elatif2020 I do not fully understand what should be done from the FE side here regarding you first point. I think it is related to BE endpoint. @danielr18 Correct me please if I am wrong.

@andreymikhadyuk
Copy link
Collaborator

@danielr18 I think that I can add background loading of the unread items in the following way:

  1. check inbox counter and if it changes then do next steps
  2. call the inbox endpoint with unread flag again until the first item which is displayed to user at the moment
  3. add new items to the list

That's the plan. Am I correct that I do not need to worry about the items between currently displayed items and after them? I think that any new unread will have last activity later than the first item which is displayed right now.

@andreymikhadyuk andreymikhadyuk linked a pull request Dec 5, 2023 that will close this issue
3 tasks
andreymikhadyuk added a commit that referenced this issue Dec 5, 2023
…ments

Inbox unread filter fixes - Real-time items update #2317
@NoamQA
Copy link
Collaborator

NoamQA commented Dec 20, 2023

@elatif2020
we dont have unread button in the inbox right?
checked with this link: https://web-dev.common.io/inbox?unread=true
works fine for me
can you check in your inbox that the 2 channels doesnt appear?

@elatif2020
Copy link
Collaborator Author

@elatif2020 we dont have unread button in the inbox right? checked with this link: https://web-dev.common.io/inbox?unread=true works fine for me can you check in your inbox that the 2 channels doesnt appear?

@NoamQA
ok yes it also better for me
but I'm not sure whether it's fully fixed, might worth additional checking

@NoamQA
Copy link
Collaborator

NoamQA commented Dec 21, 2023

ok tested on several users
it looks good in all of them

@NoamQA NoamQA added the V [dev] verified on dev enviroment label Dec 21, 2023
@elatif2020
Copy link
Collaborator Author

@danielr18 @andreymikhadyuk
See in the screenshot. It's on DEV, same after refresh.

  • I marked the item "light" as read but it stays with the unread=true filter (it disappeared only after marking another item as unread)

  • Inbox counter doesn't match the number of items.

Image

@NoamQA
Copy link
Collaborator

NoamQA commented Dec 29, 2023

@elatif2020 @danielr18
now when i use link https://web-dev.common.io/inbox?unread=true
in vev or in web stage
i get more items than appear in the counter
it wasnt like this until now
and in prod i do get the same items
is it OK for us?

Image

Image

@NoamQA
Copy link
Collaborator

NoamQA commented Jan 8, 2024

@elatif2020 @danielr18
i still have more items than counter
especially in web stage

Image

@elatif2020
Copy link
Collaborator Author

@elatif2020 @danielr18 i still have more items than counter especially in web stage

Image

@NoamQA
We need to test this on dev. This option isn't enabled on staging.
Also can you please check whether it stays after refresh, and whether it reproduce in a private tab?

@NoamQA
Copy link
Collaborator

NoamQA commented Jan 8, 2024

@elatif2020
yes it stays after refresh and cache clean
and also in private tab
image

@elatif2020
Copy link
Collaborator Author

Okay, thanks
In this case I guess the issue is in the BE
@andreymikhadyuk can you verify?

@andreymikhadyuk
Copy link
Collaborator

@NoamQA Please provide your user's email.

@andreymikhadyuk
Copy link
Collaborator

@elatif2020 @NoamQA If Noam's email is harmony777777@gmail.com, then the image below is correct for this case. You can see that inbox counter is 0, but there are 12 items with unread = true:
image

@elatif2020
Copy link
Collaborator Author

Thanks @andreymikhadyuk 🙏
So as I understand we need a fix here in the BE

@elatif2020
Copy link
Collaborator Author

@danielr18

@NoamQA NoamQA added the V [production] verified on production enviroment label Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority - A V [dev] verified on dev enviroment V [production] verified on production enviroment
Projects
None yet
6 participants