[
https://issues.apache.org/jira/browse/OFBIZ-13072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17842424#comment-17842424
]
Jacques Le Roux edited comment on OFBIZ-13072 at 4/30/24 4:42 PM:
------------------------------------------------------------------
Thanks Leila,
Works like a charm, if all fixes would be the same it would be a dream for
reviewers :) +1 for commit of course
was (Author: jacques.le.roux):
Thanks Leila,
Works like a charm, if all fixes would be the same it would be dream for
reviewers :) +1 for commit of course
> Issue when caching a query with a selectField
> ---------------------------------------------
>
> Key: OFBIZ-13072
> URL: https://issues.apache.org/jira/browse/OFBIZ-13072
> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: Upcoming Branch
> Reporter: Mekika Leila
> Priority: Minor
>
> When a query with a field selection and a cache() option is done, the result
> is put in cache with the incomplete genericValue (I mean without all the
> fields).
> Then when an other query with the same condition and cache option is done,
> even whitout the field selection, the result returned is the incomplete
> version of the GenericValue that has been stored in cache.
> The code in the PR prevent from adding in cache an incomplete genericValue
> and filter the cached value when necessary
> *To test:*
> testCache has been added to entity-query-tests test case. It can be launched
> with
> ./gradlew 'ofbiz -t component=entity'
> or
> ./gradlew 'ofbiz -t component=entity -t suitename=entitytests -t
> case=entity-query-tests'
--
This message was sent by Atlassian Jira
(v8.20.10#820010)