Skip to content

[WPGraphQL Headless Webhooks] Beta Release #246

Open
@josephfusco

Description

@josephfusco

User Story

As a Headless Developer, I want to trigger a build whenever content or configuration changes, so that my static site updates.

As a Headless Developer using WPGraphQL Smart Cache, I want to leverage smart cache for on-demand invalidation.

Acceptance Criteria

  • Only administrator user role can access webhook plugin settings (manage_options)
  • Post body includes wpgraphql-smart-cache keys
  • Post body includes URI for invalidation if keys are not being used
  • User can select POST or GET
  • User can include custom auth headers
  • Support multiple events per webhook entry (possibly solved by smart cache)
  • User can "pause" a webhook

Technical Notes

  1. When pausing a webhook, consider utilizing WordPress' "trash" post status, and unpausing publishes.

Future Ideas

  1. Batch processing webhooks (e.g. multiple authors hitting save within 2 mins)
  2. Ability to custom order webhooks to handle platform edge cases

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    🆕 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions