Files
gerrit/java
Patrick Hiesel 83f5365ad0 Fix caching for SubmitRecords in ChangeData
We distinguish SubmitRecords (SR) by the options that were provided to
generate them. The only available option is 'allowClosed'. Depending
on this boolean, we call the SR strict or lenient.

For closed changes, the strict SR will just have a single entry saying
'status=closed' while the lenient record will be a full SR evaluation.

For open changes, lenient == strict.

We had some caching in place that tried to make it so that for open
changes we compute the SR only once. However, that depended on the
order of calls (lenient before strict and vice versa).

This commit makes it so that for open changes we always compute SRs
just once by storing the SR with the respective other option as well.

Change-Id: Ibc5acb9942a9c4c7b247bee291724a5049d8f6b1
2021-02-24 19:13:45 +01:00
..