[gatsby-source-drupal] Filters Not Applied for Entities Referenced in "translatableEntities" Config #38277
Open
2 tasks done
Labels
status: triage needed
Issue or pull request that need to be triaged and assigned to a reviewer
type: bug
An issue or pull request relating to a bug in Gatsby
Preliminary Checks
Description
When I associate a Drupal entity within the languageConfig -> translatableEntities array it causes my filters to no longer have an effect. Specifically my restriction of only displaying published content stops working.
Once I remove that entity reference from the list of translatableEntities the filter has an works again.
The root of the problem appears to be that the URL is passed in as a STRING and not an OBJECT. The code to apply filters checks for type object.
Reproduction Link
https://github.com/badaczewski/gatsby-multi/
Steps to Reproduce
Expected Result
Only published Drupal content will be pulled in (i.e status=1)
Actual Result
Published and Unpublished content is pulled in.
Environment
Config Flags
The text was updated successfully, but these errors were encountered: