Support staged roll-out for the RTC integration#6731
Conversation
There was a problem hiding this comment.
Pull request overview
This PR changes the RTC (Real-Time Collaboration) integration from using dynamic version detection to using hardcoded version constants, enabling staged rollouts where different environments can load different versions of the plugins.
Changes:
- Introduces two namespace-level constants (
VIP_RTC_PLUGIN_VERSIONandVIP_RTC_GUTENBERG_VERSION) to control which versions of the plugins are loaded - Updates path construction logic in
get_gutenberg_path()andget_plugin_path()to use the version constants instead of dynamic version detection - Removes the
get_latest_version()method which is no longer needed - Updates tests to validate the new constants and reflect the renamed test method
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| integrations/real-time-collaboration.php | Adds version constants, updates path construction to use constants instead of dynamic version detection, removes get_latest_version() method |
| tests/integrations/test-real-time-collaboration.php | Renames test to better reflect its purpose, adds test for version constants, removes test for deleted get_latest_version() method |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #6731 +/- ##
=============================================
- Coverage 35.21% 35.19% -0.02%
- Complexity 5082 5085 +3
=============================================
Files 295 295
Lines 20841 20844 +3
=============================================
- Hits 7340 7337 -3
- Misses 13501 13507 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|



Description
Supports staged roll-out for the RTC integration. This is accomplished through constants that specify which version of the Gutenberg plugin and the RTC plugin to load. When those constants are updated, they'll be deployed with this repo on the normal staged released.
Changelog Description
Added
Pre-review checklist
Please make sure the items below have been covered before requesting a review:
Pre-deploy checklist
Steps to Test