venuu / jsonapi-authorization

Authorization for JSONAPI::Resource
http://www.rubydoc.info/github/venuu/jsonapi-authorization
MIT License
132 stars 59 forks source link

[WIP] Support jsonapi-resources v0.10 #143

Closed valscion closed 1 year ago

valscion commented 2 years ago

Inspirations taken from:

Problems faced:

valscion commented 2 years ago

Hmm, this indeed will be a huge pickle to figure out, if it is even possible to figure out...

The changes in JR 0.10 are massive and seem to require rethinking the entire relationship authorization strategy.

I'm not even sure if I can get this to work or whether it's worth the effort... I don't even know where to start from. The big architectural change in JR 0.10 regarding ActiveRecord loading made this gem really difficult to change when related resources are in the picture.

valscion commented 2 years ago

Hmmh I'm a bit worried with the seemingly lack of interest over at upstream repository (jsonapi-resources) right now and it is impacting my motivation in working on this pull request and this repository altogether.

It might be merely because work has been going on for JSON API v1.1 spec and it has been released recently in September 30th this year: https://jsonapi.org/about/#update-history

I'll keep an eye on jsonapi-resources to see if that project gets more ongoing work... right now having the last commit happened ~15 months ago is a bit worrisome.

valscion commented 1 year ago

We never managed to finish this pull request to the standards we had for an authorization tool. In the end, we decided to no longer support this gem. Discussion here: