-
Notifications
You must be signed in to change notification settings - Fork 130
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
The Decision Graph is Incomplete #211
Comments
I cannot follow. |
@ordnungswidrig I had worked out that the rectangular boxes are the handlers. I guess what I'm saying is stylistically it might be better to have them be something like I think my major point is that just looking at the decision graph, I don't see a line from Does that make any more sense? |
Hi Tim, Initially I had some similar niggles with the graph as you. I think the problem is that you're expecting to see explicit GET/POST paths, but they're somewhat implicit. There is no 'method-post? decision, but 'post-to-missing? and 'post-to-existing? (and others) basically deal with that, if it's not already determined implicitly. So there is a path from exists? => true
...
method-delete? => false
method-patch? => false
post-to-existing? => false
put-to-existing? => false
multiple-representations? => false Perhaps if there were a |
@andrewmcveigh yes, I think that's a very good explanation. I don't see any value on additional decision points for dispatch based on the method, actually the |
@andrewmcveigh Yes. That's very clear. I had figured that out sort of on my own, but your explanation is clearer than the one that was floating around in my brain. :) @ordnungswidrig I think it would be useful to put somewhere (if at all possible, on the decision graph itself) that internal decision points are not represented and that it shouldn't be implied that the decision graph represents all possible routes through it. That's a pretty wordy way to put it though… |
@timvisher I see. To be honest, I'm not too happy about the "internal decision points" at all. We should consider marking them, well, "internal" and to grey them out in the graph or like that. |
@timvisher I've prepared a branch to remove some of the "internal decision points": #229 |
The Decision Graph implies that
GET
s can't reach404
. In fact, it implies that onlyPOST
can reach a404
.This is false in that a
GET
that defines an:exists?
decision which returns false does in fact return a404
with the body being controlled by:handle-not-found
.Also, none of the handlers are listed so it's difficult to see where they get called.
The text was updated successfully, but these errors were encountered: