in jobs/update_orphaning_dashboard_etl.py [0:0]
def is_supported_mapper(d):
ping = d
index = 0
update_ping_count_total = 0
current_version = ping.version[0]
while (update_ping_count_total < min_update_ping_count and
index < len(ping.update_ping_count_notify) and
index < len(ping.version) and
ping.version[index] == current_version):
pingCount = ping.update_ping_count_notify[index]
# Is this an update ping or just a placeholder for the telemetry ping?
if pingCount > 0:
# Is there also a valid update check code or no update telemetry ping?
if (ping.update_check_code_notify is not None and
len(ping.update_check_code_notify) > index and
ping.update_check_code_notify[index][28] > 0):
return False, ping
index += 1
return True, ping