gatsbyjs / wp-gatsby

WordPress plugin for gatsby-source-wordpress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

actionMonitorActions do not show updated menus

rburgst opened this issue · comments

Menus do not appear in the actionMonitorActions query.

Given the this query

  query GET_ACTION_MONITOR_ACTIONS($since: Float!, $after: String) {
    actionMonitorActions(
      where: {
        sinceTimestamp: $since
        orderby: { field: MODIFIED, order: DESC }
      }
      first: 100
      after: $after
    ) {
      nodes {
        id
        title
        actionType
        referencedNodeID
        referencedNodeStatus
        referencedNodeGlobalRelayID
        referencedNodeSingularName
        referencedNodePluralName
      }
      pageInfo {
        hasNextPage
        endCursor
      }
    }
  }

and the following variables

{
  "since": 1621599254307
}

( you will want to use the current timestamp for this)

Then go to Appearance->Menus and change a menu title (or make any other modification to the menus).

Now run the query again.

Expected

i would have expected to see updates to the menus.

Actual

The result is empty

{
  "data": {
    "actionMonitorActions": {
      "nodes": [],
      "pageInfo": {
        "hasNextPage": false,
        "endCursor": null
      }
    }
  },

see also gatsbyjs/gatsby#31522

anyone home?

knock knock