adelton / greenwave

Forked from greenwave 5 years ago
Clone

88f24d5 Check old decision before a specific time

Authored and Committed by gnaponie 5 years ago
    Check old decision before a specific time
    
    The decision endpoint allows to pass results and waivers IDs lists to ignore
    (ignore_result, ignore_waiver). These are used to compare the new decision
    with older one. In case of multiple new results or waivers there could be a
    race condition. This change introduces new parameters results_since and
    waivers_since, used to determin the decision before these specific dates.
    This solves the race conditions. ignore_result and ignore_waiver are not
    used anymore to gather the old decision, but they are still parameters of the
    API for backwards compatibility.
    
        
file modified
+16 -3
file modified
+8 -8
file modified
+33 -59
file modified
+15 -0