← Back to team overview

dhis2-devs team mailing list archive

Re: [Bug 776975] [NEW] A new oganisation unit not showed after created

 

Hi its very crucial for performance that we cache orgunits so this is not an
acceptable solution. The read-write cache should be invalidated when
someones write a new object. What happens if you refresh the page after
returning to the list?

On Wed, May 4, 2011 at 11:28 AM, Hieu Duy Dang
<hieu.hispvietnam@xxxxxxxxx>wrote:

> Public bug reported:
>
> When a organization unit created then back to the main page of orgunit list
> but that new one isn't showed up in the list. Checking in database the
> record of this unit has been stored.
> I think this issue which is concerned at cache is being used in hibernate
> mapping file of organization unit. In fact, I tried removing this <cache
> usage="read-write" /> in
>
>    <set name="children" inverse="true" cascade="save-update,delete-orphan">
>      <cache usage="read-write" />
>      <key column="parentid" />
>      <one-to-many class="xxx.OrganisationUnit" />
>    </set>
>
> then rebuilding and running/working properly.
>
> ** Affects: dhis2
>     Importance: Undecided
>         Status: New
>
> --
> You received this bug notification because you are a member of DHIS 2
> India Developers, which is subscribed to DHIS.
> https://bugs.launchpad.net/bugs/776975
>
> Title:
>  A new oganisation unit not showed after created
>
> Status in DHIS 2 - District Health Information Software:
>  New
>
> Bug description:
>  When a organization unit created then back to the main page of orgunit
> list but that new one isn't showed up in the list. Checking in database the
> record of this unit has been stored.
>  I think this issue which is concerned at cache is being used in hibernate
> mapping file of organization unit. In fact, I tried removing this <cache
> usage="read-write" /> in
>
>      <set name="children" inverse="true"
> cascade="save-update,delete-orphan">
>        <cache usage="read-write" />
>        <key column="parentid" />
>        <one-to-many class="xxx.OrganisationUnit" />
>      </set>
>
>  then rebuilding and running/working properly.
>

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

Title:
  A new oganisation unit not showed after created

Status in DHIS 2 - District Health Information Software:
  New

Bug description:
  When a organization unit created then back to the main page of orgunit list but that new one isn't showed up in the list. Checking in database the record of this unit has been stored.
  I think this issue which is concerned at cache is being used in hibernate mapping file of organization unit. In fact, I tried removing this <cache usage="read-write" /> in 

      <set name="children" inverse="true" cascade="save-update,delete-orphan">
        <cache usage="read-write" />
        <key column="parentid" />
        <one-to-many class="xxx.OrganisationUnit" />
      </set>

  then rebuilding and running/working properly.


Follow ups

References