Reading parser.py, specifically the _find_config_doc(self, callsign) routine. It's tried to first find a flight doc, but if the flight doc has expired it looks for the latest payload_config containing the callsign. However, a issue arises, when the fligh doc has expired during a flight in progress, where the flight doc is using a older payload_config, while newer payload_config exists.
The last part of the routine, would always select the newest payload_config and attempt to parse data with it. If the format is different, it would fail to parse the flight as it happened to SP3OJ's flight.
My question is, should habitat instead select the latest flight containing the callsign and use the payload_config off of that or should users recreate the payload config for each flight, even if it's a duplicate?
Reading
parser.py, specifically the_find_config_doc(self, callsign)routine. It's tried to first find aflight doc, but if the flight doc has expired it looks for the latestpayload_configcontaining the callsign. However, a issue arises, when the fligh doc has expired during a flight in progress, where the flight doc is using a olderpayload_config, while newerpayload_configexists.habitat/habitat/parser.py
Line 299 in 6884dae
The last part of the routine, would always select the newest
payload_configand attempt to parse data with it. If the format is different, it would fail to parse the flight as it happened to SP3OJ's flight.My question is, should habitat instead select the latest flight containing the callsign and use the payload_config off of that or should users recreate the payload config for each flight, even if it's a duplicate?