-
Notifications
You must be signed in to change notification settings - Fork 75
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
Issue175 #176
Issue175 #176
Conversation
@@ -5,12 +5,20 @@ defmodule JSONAPI.FormatRequired do | |||
|
|||
import JSONAPI.ErrorView | |||
|
|||
# Cf. https://jsonapi.org/format/#crud-updating-to-many-relationships | |||
@update_has_many_relationships_methods ~w[DELETE PATCH POST] |
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.
Technically, DELETE is handled earlier by the first clause. But it is one of the allowed methods for the multi-RIO payload, so I thought including it here made more sense than omitting it.
The Credo changes are a bit surprising. On my dev machine, and CI, |
Sure. Here's what I get in
|
OH! Gotcha. OK, AFAIK we're not using the |
Credo changes now in #177 |
@kbaird could you rebase this against master? It has your Credo changes, and I want to make sure the build is still green (I'm sure it is, but ya know... safe vs. sorry). |
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.
LGTM but I'd love to see a rebase before merging. I'd feel better about the CI results.
Technically, DELETE is also allowed. Adding for that reason, despite the skip above.
Rebased via the procedure at https://gist.github.com/ravibhure/a7e0918ff4937c9ea1c456698dcd58aa |
@kbaird something isn't quite right but I think it's c1b1849 that's the culprit, it adds There's 2 ways we can fix this: $ git fetch --all --prune
$ git rebase upstream/master -i --autostash --autosquash
# I do interactive rebase so I can squash, fixup, and rename commits.
# At the screen that pops up, delete the c1b1849 line, save and exit.
# That should remove that commit for us.
$ git push origin master -f You could add a new commit that undoes those changes, when we squash it won't matter 😁 I'd be happy to help you if that doesn't resolve the issues. I'd expect the |
@doomspork I just backed it up one commit. Let me know if it needs any more attention from me. Thanks. |
@doomspork you good with this? I think we're all set to merge. |
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.
👍 ⚡️
Makes
FormatRequired
plug accept a legal multi-RIO payload.