feat: have ability to set latest flag to 0 in GrantCLRCalculation #8791
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Introduce 2 new actions on Grant CLR admin
Reset CLR calculations for this round
-> set theGrantCLRCalculations
for that round tolatest
=False
Reset all CLR calculations for all rounds
-> -> set ALLGrantCLRCalulations
tolatest
=False
Why do need this ?
GrantCLRCalculations
has thelatest
column set toFalse
and the once all the CLR are calculated , the effective CLR for each grant is nothing but the same of the latestGrantCLRCalculations
withlatest=True
and the that grant.pkRecord X
.record X
would be taken into account cause the older ones cause they were never invalidatedThis PR lets admin reset those for an individual round / bulk reset for all GrantCLRCalculations
How to use it
Reset CLR calculations for this round
ORReset all CLR calculations for all rounds
Testing
https://share.vidyard.com/watch/j16VkR3kC5y9tKrjUsCRHb?