Problem/Motivation

Since the latest Entity API release (1.8), the /jsonapi/shipping-methods) collection stopped returning results whenever a status filter is applied.

Specifying the "published" key would allow query access logic to detect our status key and apply the necessary conditions to the queries performed by JSONAPI.

I'm not entirely sure we also need to implement the EntityPublishedInterface, but that is worth exploring as well.

An update function is needed to update the entity type definition. Updating the field storage definition might be needed as well.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jsacksick created an issue. See original summary.

tbkot made their first commit to this issue’s fork.

tbkot’s picture

Status: Active » Needs review

Tests are passing now. It was due to missing permission to view shipping methods

  • jsacksick committed 90354193 on 3.x
    task: #3619992 Define the "published" key to benefit from JSONAPI query...
jsacksick’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.