Feature #20485

cache notification drawer state

Added by Ohad Levy 10 months ago. Updated 8 months ago.

Assigned To:Ohad Levy
Target version:-
Difficulty: Bugzilla link:
Found in release:1.15.0 Pull request:https://github.com/theforeman/foreman/pull/4715
Story points-
Velocity based estimate-
Release1.17.0Release relationshipAuto


As long as foreman is not a single page app, when a user has the notification drawer highlighted (e.g. has notifications) when moving from one page to another, there is a very quick status change due to initial page load reload the drawer and until the notification api call is not complete the drawer has no content.

this creates an annoying side effect where the drawer is highlighted, then not highlighted and then quickly highlighted again.

I would like that we store (in browser cache) if its highlighted or not, and update it upon a notification api call or when a user clear the state.

Associated revisions

Revision 6629bac0
Added by Ohad Levy 8 months ago

fixes #20485 - cache notification indicator in local storage

this ensures that the toggle icon is not swapping between
different page loads.

long term maybe we should cache the entire notifications


#1 Updated by Daniel Lobato Garcia 10 months ago

  • Priority changed from Normal to Low

#2 Updated by The Foreman Bot 10 months ago

  • Status changed from New to Ready For Testing
  • Assigned To set to Ohad Levy
  • Pull request https://github.com/theforeman/foreman/pull/4715 added

#3 Updated by Tomer Brisker 8 months ago

  • Release set to 1.17.0

#4 Updated by Ohad Levy 8 months ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF