Skip to content

Commit

Permalink
[QC-429] Force 10y validity for the time being (#1855)
Browse files Browse the repository at this point in the history
In this corner case, we were downloading SOR and EOR of an existing run (42) from BK, but overwriting SOR in CheckRunner to keep the old behaviour. However, we were not overwriting EOR, thus using the time from the past, making validity invalid. This forces CcdbDatabase to apply 10y validity until we move to the new rules.
  • Loading branch information
knopers8 authored Jun 28, 2023
1 parent 3f5102a commit 684bab4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Framework/src/CheckRunner.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ void CheckRunner::store(QualityObjectsType& qualityObjects, long validFrom)
try {
for (auto& qo : qualityObjects) {
qo->setActivity(*mActivity);
qo->getActivity().mValidity.setMin(validFrom);
qo->getActivity().mValidity.set(validFrom, 0);
mDatabase->storeQO(qo);
mTotalNumberQOStored++;
mNumberQOStored++;
Expand All @@ -395,7 +395,7 @@ void CheckRunner::store(std::vector<std::shared_ptr<MonitorObject>>& monitorObje
try {
for (auto& mo : monitorObjects) {
mo->setActivity(*mActivity);
mo->getActivity().mValidity.setMin(validFrom);
mo->getActivity().mValidity.set(validFrom, 0);
mDatabase->storeMO(mo);
mTotalNumberMOStored++;
mNumberMOStored++;
Expand Down

0 comments on commit 684bab4

Please sign in to comment.