Skip to content

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

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

Closed
wants to merge 6 commits into from
Closed

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

wants to merge 6 commits into from

Conversation

valscion
Copy link
Member

@valscion valscion commented Aug 4, 2022

@valscion valscion marked this pull request as draft August 4, 2022 13:34
@valscion

This comment was marked as outdated.

@valscion valscion force-pushed the jr-0_10 branch 2 times, most recently from 4ca3de1 to 8105695 Compare August 5, 2022 07:29
Comment on lines +282 to +285
# Polymorphic associations are broken: https://github.com/cerebris/jsonapi-resources/issues/1305
describe 'PATCH /tags/:id/relationships/taggable', pending: 'Broken upstream' do
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this:

is a blocker for resolving this case, as I'm hitting the issue when I try to fix the polymorphic association support for JR 0.10. Damn.

@valscion valscion force-pushed the jr-0_10 branch 2 times, most recently from 577a8a5 to 0022e8f Compare August 24, 2022 16:49
@valscion valscion changed the title [WIP] Main PR for jsonapi-resources v0.10 support [WIP] Support jsonapi-resources v0.10 Aug 24, 2022
This allows us to get the CI to a green state while also making sure
that if we fix a case, we'd also make the CI red again if tests suddenly
start to pass again
@valscion valscion force-pushed the jr-0_10 branch 2 times, most recently from 01121b1 to a7031c7 Compare August 24, 2022 20:16
This method is no longer used in JR 0.10
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.
This code is somewhat copied from this branch:
https://github.com/crunchybananas/jsonapi-authorization/tree/v0_10

The specs for included resources pass using questionable assertions.
It seems that the new code has a bug and the assertions shouldn't need
to be changed here.
@valscion
Copy link
Member Author

valscion commented Nov 2, 2022

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
Copy link
Member Author

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:

@valscion valscion closed this Jun 26, 2023
@valscion valscion deleted the jr-0_10 branch June 26, 2023 09:49
@venuu venuu locked as resolved and limited conversation to collaborators Jun 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant