Skip to content

Minor refactor, log cleanup, moving logic around, flight cache fix, and DB cleanup ops#67

Merged
asubowo merged 3 commits intov1from
dev
Apr 17, 2026
Merged

Minor refactor, log cleanup, moving logic around, flight cache fix, and DB cleanup ops#67
asubowo merged 3 commits intov1from
dev

Conversation

@asubowo
Copy link
Copy Markdown
Contributor

@asubowo asubowo commented Apr 17, 2026

Primarily addresses some minor bug fixes, some log level cleanups and what is logged, and moved cache in the WMATA service to the client vs the controller itself.

To help save on API calls, settled flights are marked in the cache for 4 hours. This is usually the case for international flights where the flight number for the specific plane changes based on route. Rarely (I think?) does a flight number persist between multiple legs, unassociated with each other. Hoping this works. It made sense in my head though.

Also introduces DB cleanup operations. Right now, we leave uninstalled UUIDs in the DB, they're just marked as revoked. DB operation schedules every 24 hours a cleanup

asubowo and others added 3 commits April 9, 2026 01:05
Flight numbers don't repeat until next day's operation, so Arrived/Canceled/Diverted
status is safe to cache much longer than the active refresh interval.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…he from controller to mimic that of the aero client
@asubowo asubowo changed the title Minor refactor, log cleanup, moving logic around Minor refactor, log cleanup, moving logic around, flight cache fix, and DB cleanup ops Apr 17, 2026
@asubowo asubowo merged commit cdb8f5a into v1 Apr 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant