Skip to content

Add Flight tracking functionality #3

Description

@mikedevita

add functionality to refresh Flights on an interval by doing:

  • define required models in schema.prisma
  • define getVAFlights method in OnAir.ts to fetch VA Flight data from the OnAir Api
  • define new FlightTranslator class in `translators/FlightTranslator.ts' to translate an OnAir flight into a Prisma/db Flight
  • define new FlightProcessor class in processors/FlightProcessor.ts to process each OnAir flight
  • define refreshVAFlights method in OnAir.ts to call getVAFlights() and use the new FlightProcessor class to update the Flights
    • use refreshVAFleets as a mock example for refreshVAFlights

next, add functionality to track when Flights depart, arrive, and send an Event. Details for this still TBD.

This depends on database persistence being implemented first #8

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Fields

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions