Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swap in new dimension / fact tables for GTFS Reports #36

Open
machow opened this issue Aug 30, 2021 · 1 comment
Open

Swap in new dimension / fact tables for GTFS Reports #36

machow opened this issue Aug 30, 2021 · 1 comment

Comments

@machow
Copy link
Contributor

machow commented Aug 30, 2021

Currently, our GTFS schedule reports use our underlying gtfs_schedule_type2 data. Since we've got most of this information up in views, it'd be useful to migrate to using the views directly.

Let's put up a quick dashboard in metabase that reproduces this part of the report.

image

Notes:

  • create two filters
    • views.gtfs_schedule_dim_feeds.calitp_feed_name
    • month (e.g. gets data at the beginning of the month; or for the full month where needed)
  • summary info
    • feed_info.feed_publish_date (or feed_start_date?)
    • feed_end_date
    • days expired (skip for now)
    • number of feed routes (fact_daily_feeds)
    • number of feed stops (fact_daily_feeds; may need to add)
  • Service hours per day for month (views.gtfs_schedule_fact_daily_service)
  • ID changes (see stop id changes view)
    • I think they want us to sum added and removed over the course of the month
    • TODO: clarify this calculation in the weekly meeting
@machow machow transferred this issue from cal-itp/data-infra Sep 13, 2021
@machow machow mentioned this issue Sep 22, 2021
2 tasks
@machow machow assigned addiebundren and unassigned Nkdiaz Oct 1, 2021
@lauriemerrell
Copy link
Contributor

Discussed this today with @evansiroky --

Part 1 (implement in Metabase) seems to actually mostly be already accomplished in the GTFS Guidelines dashboards that Evan has already made.

Part 2 (use views instead of schedule_type2 is also partially implemented already but there are a few aspects that still need to be refactored (notably validation notices).

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

No branches or pull requests

4 participants