jsonapi-authorization icon indicating copy to clipboard operation
jsonapi-authorization copied to clipboard

[WIP] Support jsonapi-resources v0.10

Open valscion opened this issue 1 year ago • 1 comments

Inspirations taken from:

  • https://github.com/venuu/jsonapi-authorization/pull/131
  • https://github.com/venuu/jsonapi-authorization/pull/131#issuecomment-873061541

Problems faced:

  • https://github.com/cerebris/jsonapi-resources/issues/1305#issuecomment-1206396640

valscion avatar Aug 04 '22 12:08 valscion

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 avatar Aug 04 '22 13:08 valscion

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 avatar Nov 02 '22 18:11 valscion

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:

  • https://github.com/venuu/jsonapi-authorization/issues/151

valscion avatar Jun 26 '23 09:06 valscion