You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove code for authorizing replace of polymorphic associations
There is no way jsonapi-authorization can work if the code upstream
isn't fixed. The specs will fail because of the way jsonapi-resources
handles polymorphic association loading.
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,12 @@ Or install it yourself as:
58
58
59
59
We aim to support the same Ruby and Ruby on Rails versions as `jsonapi-resources` does. If that's not the case, please [open an issue][issues].
60
60
61
+
> ### NOTE: Replacing polymorphic associations is BROKEN
62
+
>
63
+
> This is because of an issue in `jsonapi-resources` gem itself: https://github.com/cerebris/jsonapi-resources/issues/1305
64
+
>
65
+
> This gem will always raise an error if an operation is tried which would replace a polymorphic association as allowing the operation to continue would not be possible to authorize against.
66
+
61
67
## Versioning and changelog
62
68
63
69
`jsonapi-authorization` follows [Semantic Versioning](https://semver.org/). We prefer to make more major version bumps when we do changes that are likely to be backwards incompatible. That holds true even when it's likely the changes would be backwards compatible for a majority of our users.
raiseNotImplementedError,"Finding polymorphic associations is broken in jsonapi-resources and thus jsonapi-authorization can't work: https://github.com/cerebris/jsonapi-resources/issues/1305"
0 commit comments