Giter Club home page Giter Club logo

Comments (6)

wimleers avatar wimleers commented on May 27, 2024

I've noticed this too. It's a bug in https://www.drupal.org/project/jsonapi AFAICT. I'll try to figure out the root cause and report it at https://www.drupal.org/project/issues/jsonapi.

from reservoir.

snufkin avatar snufkin commented on May 27, 2024

It looks like listing users where a user is granted a custom user role breaks. The $this->resource attribute in the RelationshipItemNormalizerValue is set to null in this case.

from reservoir.

thaiphan avatar thaiphan commented on May 27, 2024

Hey guys,

It looks like the following line is causing the problem.

https://github.com/acquia/reservoir/blob/1.0.0-alpha2/modules/reservoir_ui/src/ReservoirResourceTypeRepository.php#L48

If you comment out that line, you'll find that the taxonomy endpoint works again.

Regards,

Thai

from reservoir.

wimleers avatar wimleers commented on May 27, 2024

@snufkin Thanks for that more detailed report!

@thaiphan Thanks for pointing out a work-around.

You're right that https://github.com/acquia/reservoir/blob/1.0.0-alpha2/modules/reservoir_ui/src/ReservoirResourceTypeRepository.php#L48 is blacklisting both the user_role and taxonomy_vocabulary config entity types. Reservoir has good reasons to do this (see the accompanying code docs). Reservoir is merely implementing logic similar to https://www.drupal.org/project/jsonapi_extras. So if this doesn't work in Reservoir UI, it also can't work there. Unless https://www.drupal.org/project/jsonapi_extras has been modified since https://www.drupal.org/project/jsonapi_extras was written.

I will investigate this.

from reservoir.

wimleers avatar wimleers commented on May 27, 2024

In any case, confirming this to be an upstream bug, or at the very least an upstream API change.

from reservoir.

woprrr avatar woprrr commented on May 27, 2024

@wimleers I can confirm this bug and @thaiphan trick works too ! When I have more time I see this more !

from reservoir.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.