Skip to content

Praser.py: payload_config selection behaviour in the case of expired flight doc #320

@rossengeorgiev

Description

@rossengeorgiev

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.

config = self.db.view(

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions