Skip to content

[DRAFT] Add trips to agency#27

Draft
marie-x wants to merge 2 commits intodevfrom
add-trips-to-agency
Draft

[DRAFT] Add trips to agency#27
marie-x wants to merge 2 commits intodevfrom
add-trips-to-agency

Conversation

@marie-x
Copy link
Copy Markdown

@marie-x marie-x commented May 3, 2021

Draft, please review.

@avatarneil avatarneil marked this pull request as draft May 3, 2021 19:17
Comment thread agency/README.md

## Trips

The `/trips` endpoint is a subset of the similar endpoint in Provider, except it's push instead of pull. It receives trip information that is above and beyond what is encoded in the register, event and telemetry streams.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why is it only a subset? Might be good to include in the spec.

Copy link
Copy Markdown

@avatarneil avatarneil May 7, 2021

Choose a reason for hiding this comment

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

I think that's what the second sentence is saying, but maybe there needs to be more language to elaborate upon it. Provider doesn't have a notion of non-event telemetry (closest thing is route in the Provider /trips endpoint), and it also doesn't have an always-present vehicle registry that can be polled (the Provider /vehicles endpoint only returns vehicles in the PROW), so there are some additional pieces of info that need to be in the Provider /trips endpoint that are unnecessary to send to Agency because Agency already has them.

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.

3 participants