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

Prefixes for IDs #140

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

Pawajoro
Copy link
Contributor

Hi!

I've just coded the prefix funcionality. As there may be collisions of IDs when importing multiple feeds, a prefix may be declared to omit ambiguity. Then all merges ideally. I've run linter, but tests failed to start with my npm. Please, check all the changes and enjoy! :)

* Model change - add "prefix" property
* Change gtfs-import: importLines() change and another minor
* test\import-gtfs.js fixed by linter
* Update README.md - prefixes info
@brendannee
Copy link
Member

This will be a really useful feature.

I don't see any code in this PR which actually adds the prefixes - only the updates to the models to indicate which fields need prefixes.

@Pawajoro
Copy link
Contributor Author

Sorry, fixed! :)

@brendannee
Copy link
Member

This is great.

I added some more details in the readme, some tests and made a few adjustments to how prefixes get added on import. Check out the latest master branch to see this in action.

Could you review the changes I made and let me know if this looks good and works for your use case? Then, I'll release it in a new version.

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.

2 participants