gatsbyjs / gatsby

The best React-based framework with performance, scalability and security built in.
https://www.gatsbyjs.com
MIT License
55.27k stars 10.31k forks source link

[gatsby-source-wordpress] refresh does not refresh menus #31522

Closed rburgst closed 3 years ago

rburgst commented 3 years ago

Description

When using the ENABLE_GATSBY_REFRESH_ENDPOINT and I force a refresh, the menus dont seem to update.

Steps to reproduce

  1. run gatsby with ENABLE_GATSBY_REFRESH_ENDPOINT=true

  2. wait for all pages to load

  3. use the following query to find out which menus exist

    allWpMenu(filter: {locations: {eq: MOZART_WEEK_MENU}}) {
    edges {
      node {
        id
        name
      }
    }
    }
    }
  4. Now make a change to the menu name

  5. trigger the refresh endpoint

    curl -X POST http://localhost:8000/__refresh
  6. wait until everything is refreshed and repeat the query

Expected result

The new menu name should appear in the gatsby graphql store.

Actual result

The menu name still shows the old value.

Environment


  System:
    OS: macOS 11.3.1
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.16.0 - /private/var/folders/dm/59s6_w2s3jl78c__p8j_cn1w0000gn/T/xfs-8f2d896b/node
    Yarn: 2.4.1 - /private/var/folders/dm/59s6_w2s3jl78c__p8j_cn1w0000gn/T/xfs-8f2d896b/yarn
    npm: 7.7.6 - ~/.nvm/versions/node/v14.16.0/bin/npm
  Languages:
    Python: 2.7.17 - /usr/local/bin/python
  Browsers:
    Chrome: 90.0.4430.212
    Firefox: 88.0.1
    Safari: 14.1
  npmPackages:
    gatsby: ^3.5.1 => 3.5.1 
    gatsby-background-image: ^1.5.3 => 1.5.3 
    gatsby-image: ^3.5.0 => 3.5.0 
    gatsby-plugin-google-gtag: ^3.5.0 => 3.5.0 
    gatsby-plugin-graphql-codegen: ^2.7.1 => 2.7.1 
    gatsby-plugin-image: ^1.5.0 => 1.5.0 
    gatsby-plugin-intl: ^0.3.3 => 0.3.3 
    gatsby-plugin-manifest: ^3.5.0 => 3.5.0 
    gatsby-plugin-offline: ^4.5.1 => 4.5.1 
    gatsby-plugin-react-helmet: ^4.5.0 => 4.5.0 
    gatsby-plugin-sass: ^4.5.0 => 4.5.0 
    gatsby-plugin-sharp: ^3.5.0 => 3.5.0 
    gatsby-plugin-sitemap: ^4.1.0 => 4.1.0 
    gatsby-plugin-typescript-checker: ^1.1.1 => 1.1.1 
    gatsby-plugin-use-query-params: ^1.0.1 => 1.0.1 
    gatsby-react-router-scroll: ^4.5.0 => 4.5.0 
    gatsby-source-apiserver: ^2.1.8 => 2.1.8 
    gatsby-source-filesystem: ^3.5.0 => 3.5.0 
    gatsby-source-mysql: ^2.2.3 => 2.2.3 
    gatsby-source-wordpress: ^5.5.1 => 5.5.1 
    gatsby-transformer-sharp: ^3.5.0 => 3.5.0 
github-actions[bot] commented 3 years ago

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the Gatsby community! 💪💜

rburgst commented 3 years ago

Anyone home? It would be good to get at least some kind of feedback.

github-actions[bot] commented 3 years ago

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the Gatsby community! 💪💜

github-actions[bot] commented 3 years ago

Hey again!

It’s been 60 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY. Please feel free to comment on this issue or create a new one if you need anything else. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!

Thanks again for being part of the Gatsby community! 💪💜