in jobs/update_orphaning_dashboard_etl.py [0:0]
def is_able_to_apply_mapper(d):
ping = d
index = 0
current_version = ping.version[0]
while (index < len(ping.update_ping_count_notify) and
index < len(ping.version) and
ping.version[index] == current_version):
if ping.update_ping_count_notify[index] > 0:
# Only check the last value for update_unable_to_apply_notify
# to determine if the client is unable to apply.
if (ping.update_unable_to_apply_notify is not None and
ping.update_unable_to_apply_notify[index] > 0):
return False, ping
return True, ping
index += 1
raise ValueError("Missing update unable to apply value!")