-
Notifications
You must be signed in to change notification settings - Fork 232
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
event_type reserved now explicitly means taking possession #421
event_type reserved now explicitly means taking possession #421
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good clarification of the original intent. A follow-up PR to bring some notion of future-hold reservations is probably warranted for a subsequent release.
What happens when a device is reserved but not yet in a customer's possession? Should the vehicle remain in the I think it would be helpful to add a new event_type_reason for the A proposal to clarify this, though it is a breaking change:
This accurately captures the distinction here. |
This would re-conciliate the provider and agency APIs as far as trip and reservation are concerned. We could event add a (linking to #271) |
@Retzoh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We decided on the 1/30 call that this change might in fact break historical data created under the ambiguous understanding/definition of reserved
. We will keep the PR around for posterity but will not merge and look for @dirkdk to submit a follow-up with perhaps a note calling out the ambiguity for 0.4.1.
closing this for PR #439 |
Explain pull request
The status_change event_type
reserved
has caused confusion (see #417). More and more providers support reservation as in future hold for a vehicle. It seemed thatreserved
was actually not meant for this use case, but just for taking possession. The requirement to have a trip_id hints at this. This PR more explicitly states the intent of the event_typereserved
to be only when a user takes physical possession of the vehicle, not to reserve for future use.Is this a breaking change
Although the API definitions strictly remain the same, both API clients and implementations may have to be adjusted.
Impacted Spec
provider
Additional context
Agency has
trip_start
andreserved
, this means that Providerreserved
is comparable to Agencytrip_start