-
Notifications
You must be signed in to change notification settings - Fork 57
URL not constructed in PUT/PATCH methods #137
Comments
Hello, I have a strong proof that is related to following line in http transport:
This only filters unique keys instead of path + parameter. So if path and parameters are same, it will take one randomly. I had similar behavior between my different models. @tomchristie |
Any updates on this? I'm being hit by the same issue. Can #138 be merged and released anytime soon? |
A polite tap-tap, @tomchristie. Would it be possible to get your eyeballs on this issue, and perhaps merge #138? |
Okay, so if anything we should be erroring if there are two parameters with the same name. (rather than forcing the path one to take precedence) Perhaps REST framework's schema generation needs a fix here? Shouldn't cid be read-only in the serializer, and would that fix the issue? |
I suppose partly, but when creating a new record, the FWIW, I'm also using AllowPUTAsCreateMixin. |
There is a related issue when query parameters and form parameters have the same name, which might happen if one has a resource where the query parameters filter on fields of the object. In this case it seems natural to have two parameters with the same name. One solution for _get_params() might be to loop through the fields and populate values from the params, where available, and then to deal with the parameters that didn't match to any fields. This would allow matching a param to multiple fields. Currently _get_params() loops through params and matches to just one field. |
Any update on this? Running into the same issue as @ryanolf described above. Having a query and form parameter with the same name leads to dropping the query parameter. |
Per @tomchristie, this project is dead. I wish he'd communicate better about it. |
Personally I'm not making further changes to the project, since my focus is elsewhere.
Probably don't do that. |
Current functionality will continue to work, yes.
A project where the owner makes no more changes and accepts no more PRs is dead. Thank you for the project, @tomchristie. The point I'm trying to raise is that it's not at all easy to discern that the project is no longer the focus of your energies and that you've moved to on to focus on other projects. I have no quarrel with that. I'm only trying to raise awareness to other developers who rely on this project, as I once did, that they shouldn't expect changes. Again, I would ask that you announce the project's status on the Read Me. Whether you call it deprecated, dead or EOL, I don't care. But let folks know in a prominent location. |
Thanks for bringing this up! And thanks @tomchristie for all the good work, really enjoyed this. Is there a good alternative project you can recommend? |
API Star is the evolution of this project: https://github.com/encode/apistar The client library http://docs.apistar.com/client-library/ is OpenAPI driven, which is what's become the standard. |
Thanks for the rest_framework and the core-api library. It's exactly what I need; but I'm pretty sure I've bumped into a core-api bug. Wrote up this stackoverflow post about it.
Would be most grateful to figure out a way through this.
The text was updated successfully, but these errors were encountered: