User Stories
Describe the feature you want and how it meets your needs or solves a problem
- As a transit agency, I'd like to know how to add my sample data.
- As a transit agency, I want to know if my data and the scripts that support them conforms to the latests TIDES spec so that I can make any necessary fixes.
- As a TIDES contributor, I'd like to know how proposed spec changes affect actual data so I can evaluate their ROI.
- As a transit agency or transit technology developer, I'd like to easily review the sample data, scripts, and the context in which they were developed.
- As a smaller transit agency or one that isn't yet automatically generating data, I'd like a template folder that can be used for quickly prototyping my TIDES data.
- As a TIDES maintainer, I'd like templates to automatically update based on updates to the spec
Proposed Solution
List of Solutions for (relevant user story)
(Checking box indicates consensus achieved on approach)
BONUS (or potentially another issue/PR):
- Issue generation for failed validations
Proposed example directory structure:
/samples
/agency-name # Unique agency name
datapackage.json # Basic example information such as agency-name, CAD-AVL vendor, spec version, data maintainer (and their GH handle)
/TIDES # Data formatted in TIDES standard (in the future, we could have subfolders for versions if necessary)
/raw # Raw input data
/scripts # Scripts that turn data-raw to TIDES
Consensus Building
General Agreement
- User stories 1-4 are useful and their proposed implementation in PR generally agreed upon
To Discuss
1 - Sources
How should data sources be documented?
Context
- We are interested in understanding/daylighting/documenting the products or components the data came from.
datapackage.json allows users to specify where the data came from in the sources field.
sources can be specified at the data-packageor resourcelevel.
- There can be more than one
source listed in sources.
Options
- resource-level: can relate different resources (i.e. fares vs APC) to different sources (preferred by @e-lo)
- datapackage-level: simplifying and reducing the data that must be entered and replicated (preferred by @botanize)
- allow option for either: potential compromise (I think fine with both @botanize and @e-lo , but is less opinionated)
Discussed in the unresolved PR comments
note: this would only affect our documentation and template (if used, see below) datapackage.json since we are not developing (at this time) a datapackage profile which would validate this data.
2 - Template Files
Should we have template files (csvs and datapackage.json) and if so, is it useful to have code that auto-generates them based on changes to the spec?
Context
- As a smaller transit agency or one that isn't yet automatically generating data, I'd like a template folder that can be used for quickly prototyping my TIDES data.
- As a TIDES maintainer, I'd like templates to automatically update based on updates to the spec
Options
- that are auto-generated from the spec? (currently implemented in PR, preferred by @e-lo )
- as static files
datapackage.json documented as static text in the README.md, no csv templates (preferred by @botanize)
User Stories
Describe the feature you want and how it meets your needs or solves a problem
Proposed Solution
List of Solutions for (relevant user story)
(Checking box indicates consensus achieved on approach)
datapackage.jsondata with REPLACEME (or similar)datapackage.json) which can be used to quickly generate new examples (5)BONUS (or potentially another issue/PR):
Proposed example directory structure:
Consensus Building
General Agreement
To Discuss
1 - Sources
How should data sources be documented?
Context
datapackage.jsonallows users to specify where the data came from in thesourcesfield.sourcescan be specified at thedata-packageorresourcelevel.sourcelisted insources.Options
Discussed in the unresolved PR comments
note: this would only affect our documentation and template (if used, see below)
datapackage.jsonsince we are not developing (at this time) a datapackage profile which would validate this data.2 - Template Files
Should we have template files (csvs and
datapackage.json) and if so, is it useful to have code that auto-generates them based on changes to the spec?Context
datapackage.jsoncontains a lot of important information about data expectations which is not validated anywhere since we are not currently using atabular-data-packageprofile rather than developing our own profile which could enforce some of these conventions.Options
datapackage.jsondocumented as static text in theREADME.md, no csv templates (preferred by @botanize)