Skip to content

Add configurable Cloud Patterns platform API URL support#182

Merged
zlateska merged 2 commits intomainfrom
add/base-url-helper-methods
Oct 8, 2025
Merged

Add configurable Cloud Patterns platform API URL support#182
zlateska merged 2 commits intomainfrom
add/base-url-helper-methods

Conversation

@zlateska
Copy link
Copy Markdown
Contributor

@zlateska zlateska commented Oct 8, 2025

Proposed changes

Adds flexible URL configuration for the Cloud Patterns platform API endpoint.
Adds option to define Hiive token for local testing.

Type of Change

Production

  • 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)
  • Dependency update
  • Refactoring / housekeeping (changes to files not directly related to functionality)

Development

  • Tests
  • Dependency update
  • Environment update / refactoring
  • Documentation Update

Visual

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

Copilot AI review requested due to automatic review settings October 8, 2025 14:29
Copy link
Copy Markdown
Contributor

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.

Pull Request Overview

Adds configurable Cloud Patterns platform API URL support by introducing PHP constants for URL configuration and Hiive token definition for local testing environments.

  • Adds helper methods to get configurable local and production base URLs via PHP constants
  • Updates URL resolution to use the new configurable methods instead of hardcoded static properties
  • Enables custom Hiive authentication token definition via constant for local testing

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
includes/WonderBlocks/Requests/Request.php Adds configurable URL methods and updates base URL resolution
includes/HiiveConnection.php Adds support for custom Hiive auth token via constant

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@newfold-labs newfold-labs deleted a comment from Copilot AI Oct 8, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Oct 8, 2025

@newfold-labs newfold-labs deleted a comment from Copilot AI Oct 8, 2025
@newfold-labs newfold-labs deleted a comment from Copilot AI Oct 8, 2025
@zlateska zlateska requested a review from wpalani October 8, 2025 14:35
@zlateska zlateska merged commit c0fb3d1 into main Oct 8, 2025
15 of 18 checks passed
@zlateska zlateska deleted the add/base-url-helper-methods branch October 8, 2025 18:56
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.

3 participants