-
Notifications
You must be signed in to change notification settings - Fork 8
Add vehicle_crew supporting table #246
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
Open
chrisyamas
wants to merge
8
commits into
develop
Choose a base branch
from
feature/issue-220-vehicle-crew
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9940dfa
Add vehicle_crew table for multi-operator trip support
chrisyamas 1024a7f
Add vehicle_crew template file
chrisyamas cee1112
Update trips_performed.schema.json operator_id description
chrisyamas 6e22f04
Add vehicle_crew to tides-datapackage-profile.json enum
chrisyamas 02cd18d
Add vehicle_crew resource in template datapackage.json
chrisyamas 20cd560
Update CHANGELOG with unreleased vehicle_crew addition
chrisyamas 9ea76dc
Fix indentation in Core Tables list to nest bullets
chrisyamas 0e5ac01
fix: restore trip_id_scheduled field, require trip_id_performed in ve…
chrisyamas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| service_date,trip_id_performed,vehicle_id,crew_id,crew_role,start_time,end_time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
botanize marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,99 @@ | ||
| { | ||
| "primaryKey": [ | ||
| "service_date", | ||
| "trip_id_performed", | ||
| "crew_id", | ||
| "start_time" | ||
| ], | ||
| "missingValues": [ | ||
| "NA", | ||
| "NaN", | ||
| "" | ||
| ], | ||
| "fields": [ | ||
| { | ||
| "name": "service_date", | ||
| "type": "date", | ||
| "description": "Service date. References GTFS", | ||
| "constraints": { | ||
| "required": true | ||
| } | ||
| }, | ||
| { | ||
| "name": "trip_id_performed", | ||
| "type": "string", | ||
| "title": "ID referencing trips_performed.trip_id_performed", | ||
| "description": "Identifies the trip performed. Optional if crew assignment is at vehicle level only." | ||
|
botanize marked this conversation as resolved.
Outdated
|
||
| }, | ||
| { | ||
| "name": "vehicle_id", | ||
| "type": "string", | ||
| "title": "ID referencing vehicles.vehicle_id", | ||
| "description": "Identifies the vehicle.", | ||
| "constraints": { | ||
| "required": true | ||
| } | ||
| }, | ||
| { | ||
| "name": "crew_id", | ||
| "type": "string", | ||
| "title": "ID referencing operators.operator_id", | ||
| "description": "Identifies the crew member. References operators table.", | ||
| "constraints": { | ||
| "required": true | ||
| } | ||
| }, | ||
| { | ||
| "name": "crew_role", | ||
| "type": "string", | ||
| "description": "Role of the crew member on the vehicle.", | ||
| "constraints": { | ||
| "enum": [ | ||
| "operator", | ||
| "conductor", | ||
| "fare_inspector", | ||
| "other" | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "name": "start_time", | ||
| "type": "datetime", | ||
| "description": "Timestamp when the crew member's assignment began.", | ||
| "constraints": { | ||
| "required": true | ||
| } | ||
| }, | ||
| { | ||
| "name": "end_time", | ||
| "type": "datetime", | ||
| "description": "Timestamp when the crew member's assignment ended. Null if assignment is ongoing." | ||
| } | ||
| ], | ||
| "foreignReferences": [ | ||
| { | ||
| "fields": ["service_date", "trip_id_performed"], | ||
| "reference": { | ||
| "resource": "trips_performed", | ||
| "fields": ["service_date", "trip_id_performed"] | ||
| } | ||
| }, | ||
| { | ||
| "fields": "vehicle_id", | ||
| "reference": { | ||
| "resource": "vehicles", | ||
| "fields": "vehicle_id" | ||
| } | ||
| }, | ||
| { | ||
| "fields": "crew_id", | ||
| "reference": { | ||
| "resource": "operators", | ||
| "fields": "operator_id" | ||
| } | ||
| } | ||
| ], | ||
| "name": "vehicle_crew.schema.json", | ||
| "description": "Crew member assignments to vehicles and trips, supporting multiple crew members and mid-trip reliefs.", | ||
| "_table_type": "Supporting" | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.