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

Best practice regarding URLs and version upgrades #699

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

richfab
Copy link
Contributor

@richfab richfab commented Oct 23, 2024

Fixes #655

What problem does your proposal solve?

When a GBFS producer upgrades their feed to a MAJOR version without changing the feed URL, it can break consuming applications.

What is the proposal?

Add a best practice in the spec to recommend that feed URLs contain the MAJOR version number. eg: https://www.example.com/gbfs/v3/gbfs.json

Is this a breaking change?

  • Yes
  • No
  • Unsure

Which files are affected by this change?

It does not affect the content of the files, only the URL of the files.

Thank you @AntoineAugusti for raising this issue 🙏

Copy link
Contributor

@isabelle-dr isabelle-dr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Regarding not including the minor version in the URL; I see many feeds that don't follow this in systems.csv.
Should we do the following:

  • contact them to let them know if this new Best Practice
  • add this to the validator (acknowledging this might be a bit of a clunky validation)

@richfab
Copy link
Contributor Author

richfab commented Oct 23, 2024

Good point. 10% of the feeds in systems.csv include the MINOR version number in their URL.

I added both strategies to the MobilityData product backlog. Thanks @isabelle-dr 🙏

@richfab richfab merged commit 30e3047 into master Oct 23, 2024
1 check passed
@richfab richfab deleted the best-practice-urls-version-upgrades branch October 23, 2024 12:23
@isabelle-dr
Copy link
Contributor

@richfab
I am also wondering if this section should be renamed Dataset Publishing & General Practices
example for GTFS and maybe have it above the "Files" section to increase its visibility.

@richfab
Copy link
Contributor Author

richfab commented Oct 23, 2024

I added this idea to the MobilityData product backlog as well. Good point! Thanks

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.

Good practice regarding URLs and version upgrades
2 participants