Skip to content

Conversation

@jacobd91
Copy link
Contributor

This PR adds a check and fix if the pullzone doesn't exist on FSD enable for Total CDN

To test, deauthorize and delete your pull zone and delete from the CDNAPI (if needed). Then enable FSD and confirm that a new pull zone was created and configured correctly

@jacobd91 jacobd91 requested review from Copilot and cssjoe October 30, 2025 21:15
@jacobd91 jacobd91 self-assigned this Oct 30, 2025
@codecov-commenter
Copy link

codecov-commenter commented Oct 30, 2025

Codecov Report

❌ Patch coverage is 0% with 42 lines in your changes missing coverage. Please review.
✅ Project coverage is 2.28%. Comparing base (88fd93b) to head (40561fa).

Files with missing lines Patch % Lines
Generic_Plugin_Admin.php 0.00% 34 Missing ⚠️
Cdn_TotalCdn_Auto_Configure.php 0.00% 8 Missing ⚠️
Additional details and impacted files
@@                   Coverage Diff                   @@
##             total-cdn-staging    #1237      +/-   ##
=======================================================
- Coverage                 2.28%    2.28%   -0.01%     
- Complexity               20220    20232      +12     
=======================================================
  Files                      669      669              
  Lines                   102092   102129      +37     
=======================================================
  Hits                      2335     2335              
- Misses                   99757    99794      +37     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link

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

This pull request adds auto-configuration capability for Total CDN Full Site Delivery (FSD) during the settings save process. When enabling Total CDN FSD without an existing pull zone, the system will attempt to automatically provision one.

  • Adds a new helper method to determine when auto-configuration should be triggered
  • Modifies the auto-configuration run method to optionally skip enabling the CDN after provisioning
  • Implements error handling and rollback logic when auto-configuration fails

Reviewed Changes

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

File Description
Generic_Plugin_Admin.php Adds auto-configuration check during save, rollback logic on failure, and error message for auto-configuration failures
Cdn_TotalCdn_Auto_Configure.php Extends the run method to support configuration without enabling the CDN

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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