Skip to content
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

there are unknown plugin options for "gatsby-source-wordpress": type.MediaItem.excludeFieldNames #30399

Closed
erick-go opened this issue Mar 22, 2021 · 4 comments
Assignees
Labels
topic: source-wordpress Related to Gatsby's integration with WordPress type: bug An issue or pull request relating to a bug in Gatsby

Comments

@erick-go
Copy link

Description

Warning: there are unknown plugin options for "gatsby-source-wordpress": type.MediaItem.excludeFieldNames Please open an issue at ghub.io/gatsby-source-wordpress if you believe this option is valid.

Describe the issue that you're seeing.
I'm trying to make the MediaItem query as small as possible using type: { MediaItem: { excludeFieldNames: [] } }.
On a local gatsby build this works like it should, but Gatsby Cloud returned this message.

Steps to reproduce

add the following to your type object in gatsby-config and run a remote build.

            excludeFieldNames: [
              `ancestors`,
              `author`,
              `authorDatabaseId`,
              `authorId`,
              `caption`,
              `children`,
              `commentCount`,
              `commentStatus`,
              `comments`,
              `contentType`,
              `date`,
              `dateGmt`,
              `desiredSlug`,
              `enclosure`,
              `fileSize`,
              `guid`,
              `lastEditedBy`,
              `mediaDetails`,
              `mediaType`,
              `mimeType`,
              `modified`,
              `modifiedGmt`,
              `parent`,
              `parentDatabaseId`,
              `parentId`,
              `seo`,
              `sizes`,
              `status`,
              `template`,
            ],

How to Make a Minimal Reproduction: https://www.gatsbyjs.com/contributing/how-to-make-a-reproducible-test-case/

Expected result

No warning in the console and a reduced query. tbh, I'm not sure how to check if the generated query is not reduced or not.

  System:
    OS: Linux 5.8 Ubuntu 20.10 (Groovy Gorilla)
    CPU: (4) x64 Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 15.8.0 - ~/.nvm/versions/node/v15.8.0/bin/node
    npm: 7.5.4 - ~/.nvm/versions/node/v15.8.0/bin/npm
  Browsers:
    Chrome: 88.0.4324.150
    Firefox: 86.0
  npmPackages:
    gatsby: ^3.1.1 => 3.1.1 
    gatsby-cli: ^3.1.0 => 3.1.0 
    gatsby-plugin-advanced-sitemap: ^1.5.6 => 1.6.0 
    gatsby-plugin-algolia: ^0.17.0 => 0.17.0 
    gatsby-plugin-algolia-search: ^0.5.7 => 0.5.7 
    gatsby-plugin-eslint: ^3.0.0 => 3.0.0 
    gatsby-plugin-gdpr-cookies: ^1.0.10 => 1.0.14 
    gatsby-plugin-google-adsense: ^1.1.3 => 1.1.3 
    gatsby-plugin-google-fonts-v2: 0.0.6 => 0.0.6 
    gatsby-plugin-google-tagmanager: ^3.1.0 => 3.1.0 
    gatsby-plugin-image: ^1.1.1 => 1.1.1 
    gatsby-plugin-manifest: ^3.1.0 => 3.1.0 
    gatsby-plugin-meta-redirect: ^1.1.1 => 1.1.1 
    gatsby-plugin-netlify: ^3.1.0 => 3.1.0 
    gatsby-plugin-offline: ^4.1.0 => 4.1.0 
    gatsby-plugin-preconnect: ^1.1.54 => 1.2.0 
    gatsby-plugin-prettier-eslint: ^1.0.4 => 1.0.4 
    gatsby-plugin-react-helmet: ^4.1.0 => 4.1.0 
    gatsby-plugin-remove-serviceworker: ^1.0.0 => 1.0.0 
    gatsby-plugin-sass: ^4.1.0 => 4.1.0 
    gatsby-plugin-sharp: ^3.1.1 => 3.1.1 
    gatsby-plugin-smoothscroll: ^1.2.0 => 1.2.0 
    gatsby-plugin-styled-components: ^4.1.0 => 4.1.0 
    gatsby-plugin-stylelint: ^3.2.0 => 3.2.0 
    gatsby-source-filesystem: ^3.1.0 => 3.1.0 
    gatsby-source-graphql: ^3.1.0 => 3.1.0 
    gatsby-source-wordpress: ^5.1.0 => 5.1.0 
    gatsby-telemetry: ^2.1.0 => 2.1.0 
    gatsby-transformer-sharp: ^3.1.0 => 3.1.0 
  npmGlobalPackages:
    gatsby-cli: 3.1.0
@erick-go erick-go added the type: bug An issue or pull request relating to a bug in Gatsby label Mar 22, 2021
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Mar 22, 2021
@LekoArts LekoArts added topic: source-wordpress Related to Gatsby's integration with WordPress and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Mar 23, 2021
@TylerBarnes
Copy link
Contributor

Hi @erick-go , thanks for opening this issue. Can you share your Gatsby Cloud site dashboard URL or otherwise a reproduction repo?

@TylerBarnes TylerBarnes self-assigned this Mar 23, 2021
@erick-go
Copy link
Author

erick-go commented Mar 23, 2021

https://www.gatsbyjs.com/dashboard/a05a6e28-9f60-4904-bb69-a16145d09e17/sites/bdbddfbe-74b1-4aec-b7f7-f1393922646d

I've also given you acces to my repo

Let me know if you need anything else

/Edit...
I noticed the warning also on local build, by the way..

@LekoArts
Copy link
Contributor

Hi!

I'm closing this as a stale issue as in the meantime Gatsby 4 and related packages were released. You can check our Framework Version Support Page to see which versions currently receive active support.

Please try the mentioned issue on the latest version (using the next tag) and if you still see this problem, open a new bug report. It must include a minimal reproduction.

Thanks!

@TylerBarnes
Copy link
Contributor

Fixed via #37062

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: source-wordpress Related to Gatsby's integration with WordPress type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

3 participants