Skip to content

Status (schedule, availability...) > clarify useful VS validity 🤯 #179

Closed

Description

@mmathieum

POIStatus.isUseful() is confusing because it's about the validity (and last departure for schedule).

The validity itself is confusing because it's about how it should be kept in cache (local DB).

For the UI, a status is useful to show if:

  • not too old (validity)
  • (schedule) contains some departures
  • no data (-> no service)
    The UI tries to refresh every minutes (or more when switching screens...).

For the "backend", a status is kept in cache if:

  • not too old (validity)
  • (schedule) contains some departures
  • no data (-> no service)
    The "backend" tries to refresh a status if current status not kept OR validity has passed.

Issue:

  • provider.validity is used by the "backend" to know if keeping the cached data and if refresh required ⚠️

Activity

  1. self-assigned this
    on Jul 22, 2026
  2. added
    P2
    on Jul 22, 2026
  3. added theissue type on Jul 22, 2026
  4. added
    S
    on Jul 22, 2026
  5. mmathieum commented on Jul 22, 2026

    @mmathieum
    MemberAuthor

    Issue was mostly for GTFS-RT Trip Updates schedule status which were using "1 min" status instead of 1 hour "max status".

    #180 address this and refactor code for clarity.

    It addresses small UI bug (showing static data every minutes while loading new RT data)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2S

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions