← Back to team overview

dhis2-devs team mailing list archive

[Bug 987316] [NEW] ouwt: should always reload from server when organisationUnit.size == 0

 

Public bug reported:

When the user hasn't been assigned any organisationunits yet, it will
get an empty list in ouwt. This is OK. But when the user is assigned a
OU the list is not automatically reloaded since the OU tree itself
hasn't been changed (we are triggering updates through the version
table).

For the cases where there is no OUs in localStorage, or the size of the
OUs in localStorage is 0, we should always reload.

** Affects: dhis2
     Importance: Undecided
     Assignee: Morten Olav Hansen (mortenoh)
         Status: New

** Description changed:

  When the user hasn't been assigned any organisationunits yet, it will
  get an empty list in ouwt. This is OK. But when the user is assigned a
  OU the list is not automatically reloaded since the OU tree itself
- hasn't been changed (we are triggering updated through the version
+ hasn't been changed (we are triggering updates through the version
  table).
  
  For the cases where there is no OUs in localStorage, or the size of the
  OUs in localStorage is 0, we should always reload.

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/987316

Title:
  ouwt: should always reload from server when organisationUnit.size == 0

Status in DHIS 2 - District Health Information Software:
  New

Bug description:
  When the user hasn't been assigned any organisationunits yet, it will
  get an empty list in ouwt. This is OK. But when the user is assigned a
  OU the list is not automatically reloaded since the OU tree itself
  hasn't been changed (we are triggering updates through the version
  table).

  For the cases where there is no OUs in localStorage, or the size of
  the OUs in localStorage is 0, we should always reload.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/987316/+subscriptions


Follow ups

References