-
Notifications
You must be signed in to change notification settings - Fork 1
Clarify expectations of Flow Segment get_url #36
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
Conversation
53cb68d
to
e0f9de4
Compare
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.
Minor comprehension comment about what "identical" is referring to on a first read (happy for you to keep as-is). Otherwise LGTM
The basic API structure looks good - nice to see labels to identify what the end points are. However at the risk of opening a can of worms what happens about adding or removing URLs after the original segment record has been created? |
On a "keep the core API simple" basis, I'd be inclined to say it should be an out-of-band extra that's neither required nor expressly forbidden. From a client's perspective, the list of From a server's perspective, it depends how you've implemented it. Either way you have to provide a The other way to approach it would (potentially) be to allow registering additional duplicate Flow Segments (producing additional URLs), but the trade-off is it makes it easier to break immutability, because a client could come along and register a duplicate segment that differs from the original, and it would be difficult to enforce against that! IMO, we should leave it as is until the need arises to relax that restriction |
9082f1c
to
6c0dfda
Compare
Implements part of ADR0015 to make the `get_url` and `put_url` fields in Flow Segments mandatory. sem-ver: feature
Updates the description for `get_url` and `put_url` that clients should include credentials for same-origin requests. Implements Option 2 of ADR0015. sem-ver: feature
Renames the Flow Segment `get_url` property to be `get_urls` and be a list of URLs. Implements Option 3 of ADR0015. sem-ver: api-break
Co-authored-by: Philip de Nier <[email protected]>
6c0dfda
to
dd2d1b0
Compare
Details
Adds an ADR proposing some clarifications on how the
get_url
field on Flow Segments work:get_url
mandatory in Flow Segment responsesget_url
with a list ofget_urls
Pivotal Story (if relevant)
Story URL: https://www.pivotaltracker.com/story/show/187054769
Related PRs
N/A
Submitter PR Checks
(tick as appropriate)
Reviewer PR Checks
(tick as appropriate)
Info on PRs
The checks above are guidelines. They don't all have to be ticked, but they should all have been considered.