bug #8517
SpecimenOrObservation: data from protected titleCache missig in portal pages
50%
Description
The following portal pages are missing to show data from protected SpecimenOrObservation.titleCaches:
- Registration page (e.g: https://www.phycobank.org/cdm_dataportal/registration/http%253A%252F%252Fphycobank.org%252F9924)
- specimen page (e.g.: https://www.phycobank.org/cdm_dataportal/occurrence/77d83237-a5ae-4a30-810f-61497ce040ee)
Associated revisions
ref #8517 DerivedUnitFacadeCacheStrategy handling protected FieldUnit title caches correctly
ref #8517 handle protected fieldunit titlecache in DerivedUnitFacadeFieldUnitCacheStrategy and not in DerivedUnitFacadeCacheStrategy
ref #8517 handle protected fieldunit titlecache in DerivedUnitFacadeFieldUnitCacheStrategy and not in DerivedUnitFacadeCacheStrategy - fix compile error
History
#1 Updated by Andreas Kohlbecker over 1 year ago
- Description updated (diff)
#2 Updated by Andreas Kohlbecker over 1 year ago
- Category changed from cdm-dataportal to cdm
this is actually a problem in the DerivedUnitFacadeCacheStrategy
which misses to respect protected FieldUnit
title caches.
#3 Updated by Andreas Kohlbecker over 1 year ago
- Status changed from New to Resolved
- Assignee changed from Andreas Kohlbecker to Andreas Müller
- % Done changed from 0 to 50
please review
#4 Updated by Andreas Müller over 1 year ago
- Status changed from Resolved to Feedback
- Assignee changed from Andreas Müller to Andreas Kohlbecker
This seems to work but handling the protected title cache of the field unit in the derivedunit cachestrategy to me does not look so clean.
Shouldn't instead the getFieldData method of the fieldunit cachestrategy handle the protected cache?
#5 Updated by Andreas Müller over 1 year ago
- Category changed from cdm to cdmlib
#6 Updated by Andreas Kohlbecker about 1 year ago
- Assignee changed from Andreas Kohlbecker to Andreas Müller
Andreas Müller wrote:
This seems to work but handling the protected title cache of the field unit in the derivedunit cachestrategy to me does not look so clean.
Shouldn't instead the getFieldData method of the fieldunit cachestrategy handle the protected cache?
This issue is about a problem in the DerivedUnitFacadeCacheStrategy is don' see how the FieldUnitCacheStrategy would help in this case.
#7 Updated by Andreas Müller about 1 year ago
- Status changed from Feedback to Resolved
- Assignee changed from Andreas Müller to Andreas Kohlbecker
Sorry, I was not exact in my comment. I meant to move it from DerivedUnitFacadeCacheStrategy to DerivedUnitFacadeFieldUnitCacheStrategy.
I tried to implement this in 10fda345 . Can you please review and test (I have not tested).
The new implementation also works in a pure DerivedUnitFacadeFieldUnitCacheStrategy (e.g. FieldUnits in BulkEditor) context therefore I think is solves the problem a bit more generic.