Skip to content

Conversation

BrianHenryIE
Copy link
Contributor

@BrianHenryIE BrianHenryIE commented Sep 13, 2024

Proposed changes

  • Adds a new REST endpoint wp-json/newfold-data/v1/capabilities for Hiive to push capabilities.
  • Adds SiteCapabilities::set() (overwrite) and SiteCapabilities::update() (merge)

TODO:

  • Update SiteCapabilities to stop using transients?
  • Add schema to API\Capabilities ?

Type of Change

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Video

Checklist

  • I have read the CONTRIBUTING doc
  • I have viewed my change in a web-browser
  • Linting and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

@BrianHenryIE BrianHenryIE marked this pull request as ready for review April 15, 2025 22:09
@Copilot Copilot AI review requested due to automatic review settings April 15, 2025 22:09
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 9 changed files in this pull request and generated no comments.

Files not reviewed (8)
  • composer.json: Language not supported
  • includes/API/Capabilities.php: Language not supported
  • includes/Data.php: Language not supported
  • includes/SiteCapabilities.php: Language not supported
  • tests/phpunit/includes/DataTest.php: Language not supported
  • tests/wpunit/includes/API/CapabilitiesWPUnitTest.php: Language not supported
  • tests/wpunit/includes/EventManagerWPUnitTest.php: Language not supported
  • tests/wpunit/includes/SiteCapabilitiesWPUnitTest.php: Language not supported

Copy link
Contributor

github-actions bot commented Apr 15, 2025

@BrianHenryIE BrianHenryIE merged commit 19eb650 into main Apr 17, 2025
12 of 13 checks passed
@BrianHenryIE BrianHenryIE deleted the Add/cache-purge-1 branch April 17, 2025 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants