Remove Derived- and FieldUnitFacadeCacheStrategies
Cache strategies for FieldUnits and DerivedUnits are currently using the DerivedUnitFacadeCacheStrategy or DerivedUnitFacadeFieldUnitCacheStrategy.
This is problematic because
- these cache strategies are only available in cdmlib-service and therefore can be loaded only with workaround within the model classes.
- for units that have data that are against the facade contract an exception is thrown when trying to compute the titleCaches
We should implement cache strategies within cdmlib-model doing more or less the same as the facade cachestrategies. At some places the code can be much more simple then in the facade as the facade is intened to also be used for writing data which makes it much more complex.
This ticket is also a prerequisit for implementing the "identityCache" or "shortCache" for SpecimenOrObservationBase.
Updated by Andreas Müller about 1 year ago
- Status changed from Resolved to Closed
- % Done changed from 50 to 100
I think we can close this ticket now. Also the failing test in dataportal is fixed now (mediaspecimen are shown there in typification context with short label as the MediaSpecimenDefaultCacheStrategy is used there now, which is correct).
However, we need to adapt all SpecimenOrObservationBase cachestrategies in a way that they have a long version and a short version which is related to the "identityCache" (#5952).
If anybody wants to review this ticket, please feel free to reopen.