Not working with jsonapi_extras:jsonapi_defaults module

Created on 3 April 2024, about 1 year ago
Updated 4 April 2024, about 1 year ago

Problem/Motivation

JSONAPI:Extras module is recommended on the module page, but this module doesn't seem to work with https://git.drupalcode.org/project/jsonapi_extras/-/tree/8.x-3.x/modules... submodule.

When adding
?includes=field_image.field_image
to the URL, this module works as expected.

But when adding field_image.field_image to the Default include list in the resource settings at
/admin/config/services/jsonapi/resource_types/{TYPE-XXX}/edit
it doesn't work.
The result is just the same as without this module!

The "Use jsonapi_include query in url" advanced setting is disabled, so it should just work without needing the additional URL parameter.

Steps to reproduce

See above

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: cannot reproduce

Version

1.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Anybody
  • 🇩🇪Germany Anybody Porta Westfalica
  • Status changed to Postponed: needs info about 1 year ago
  • 🇯🇵Japan ptmkenny

    I am using jsonapi_include with jsonapi_default and I can't reproduce this issue.

    Steps

    1. Go to admin/config/services/jsonapi-include/settings. Confirm "Use jsonapi_include query in URL" setting is OFF.
    2. Go to the JSON:API Resource settings page for an entity bundle. (/admin/config/services/jsonapi/resource_types/entity--entity_bundle)
    3. To the "Default include list", add the "Alias" for an entity reference field on that entity bundle.
    4. Access the "Resource path" shown on that page. There is no need to append any parameters to that URL. The entities specified by alias on the "Default include list" will be included.

  • Status changed to Closed: cannot reproduce about 1 year ago
  • 🇩🇪Germany Anybody Porta Westfalica

    @ptmkenny thanks for your quick reply! That's super strange, I played around a lot yesterday and was sure it wasn't working without the URL parameter. Checked it again now and indeed it's perfect.

    Sorry for the trouble and thank you once again!

Production build 0.71.5 2024