-
Notifications
You must be signed in to change notification settings - Fork 72
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
notifications on notifications drawer are cleaned after browser hard refresh for non admin users #1338
Comments
@sgratch In the response to admin user I could find the disappeared events of t1 user. |
So yeah - the notifications on web-ui are a combination of events from rest and things that the app pushes in there. The events are fetched once at login time. I don't think they're ever fetched again. Also, any notifications added by the front end App itself are 100% ephemeral. I'm not sure the cost to build this out would even have a reasonable ROI. For example, what should happen if a user is logged in on 2 browsers and clears notifications on 1 of the browsers? To be able to rebuild the event list on App refresh (or on login from another browser or private tab etc)...
|
The filter is set true for non-admin users and false for admin users (most of the time at least - there is a system setting to also filter admin users that tends to get set in large envs like brq-dev). But you're correct, regular users must include the
Yeah visibility of the events matter. After the events are fetched, I believe they are also marked as viewed. In that way, if you login once, events are loaded and marked as "read", the next login will not load those same events. If there are over 100 events (I think 100 is the fetch size at login), then it can look like it is re-fetching the events, but it is really fetching older events. I'd have to look at the code again to triple check it works that way. That was always a gap that got ignored. |
@sjd78 it's accepted for now as a known limitation to avoid persistence of notifications added by the web-ui App itself since it's really more complicated to implement.
|
From what I saw it's not marked as read, the same errors fetched every refresh/ login.
I tested that and I saw the events in any refresh/login have the same ids, so it's probably works different. |
@sgratch
IMO it's problem with permissions or with the backend filter... |
This is very strange since the same type of event is sometimes filtered out and sometimes not. All those events appear on webadmin audit log?
That sound ok to me.
If an event generated by admin user appears on webadmin, appears on web-ui without the filter and doesn't appear with the filter then we need to understand why it is filtered out by the backend. It might be related to what Scott mentioned above. |
Yes, it's not disappeared from the webAdmin log.
I tested that is the same events by the id so I'm not sure what the cause but it's defiantly not dismissed on the refresh... |
All notifications on notifications drawer are vanished after hard refresh or logout/login for non admin user.
For reproducing:
Expected result:
All notifications should still appear on notifications drawer and counter badge should stay the same as before the logout/refresh
Actual result:
The notifications drawer is empty.
Note that this issue is not reproduced for admin user, i.e. all notifications are kept as it should after refresh/logout.
The text was updated successfully, but these errors were encountered: