Formula metric answer not updating after overridden answer is deleted

+Status
Closed
+*when created
Wednesday, August 14, 2019 03:40 PM UTC
 
 

In some cases where I have deleted an incorrect overridden formula metric answer, the metric answer does not seem to refresh and automatically calculate the answer using the formula. The answer just shows up blank.

You can see it here: https://wikirate.org/Research_Page?rp%5Bcompany%5D=Berkshire+Hathaway&rp%5Bmetric%5D=Commons%2BGreenhouse+Gas+Emissions+Scope+1+and+2+combined&rp%5Bpinned%5D%5B%5D=company&rp%5Bproject%5D=Climate_100_GHG_Emissions&rp%5Byear%5D=2017

On the metric list of this research page both the metrics needed for the formula for 2017 are filled out, but the calculated metric answer is blank. It is one where I deleted an overidden answer.

 

Good ticket. As a workaround until I get to this, you should be able to fix the answer by making a "dummy edit" (adding or removing meaningless whitespace) to the metric's formula. It's possible that may work with the current code on staging, which will come out with the 0.20.5 release. (See release updates here: https://github.com/wikirate/wikirate/releases

Ethan McCutchen.....2019-08-15 14:16:02 UTC

I tried a dummy edit for the metric on staging and the answers did recalculate, but these overridden deleted answers remained blank.

Aileen Robinson.....2019-08-19 14:11:20 UTC

Exactly which answer did you delete?

 

 

Ethan McCutchen.....2019-10-09 18:47:01 UTC

So I think the combined answer is appearing correctly now: https://wikirate.org/Commons+Greenhouse_Gas_Emissions_Scope_1_and_2_combined+Berkshire_Hathaway+2017

 

Before things were breaking because the scope 1 descendant (C+S1+BH+2017) wasn't inheriting. Was the overridden answer that you deleted an S1 answer? If so, then this ticket may still be right that the deletion is the problem, because the inheritance wasn't recalculated.

 

If, on the other hand, the deleted answer was for the combined metrics, I don't see how that would have touched the inheritance.

 

For what it's worth, I fixed this by changing the descendant rule via the interface (to something dumb and back). Slow but effective.

Ethan McCutchen.....2019-10-10 17:49:49 UTC