Skip to content

Support staged roll-out for the RTC integration#6731

Merged
maxschmeling merged 5 commits intodevelopfrom
rtc/support-staged-rollout
Jan 27, 2026
Merged

Support staged roll-out for the RTC integration#6731
maxschmeling merged 5 commits intodevelopfrom
rtc/support-staged-rollout

Conversation

@maxschmeling
Copy link
Copy Markdown
Contributor

@maxschmeling maxschmeling commented Jan 26, 2026

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

  • Add support for staged roll-out of the Real-Time Collaboration integration

Pre-review checklist

Please make sure the items below have been covered before requesting a review:

  • This change works and has been tested locally or in Codespaces (or has an appropriate fallback).
  • This change works and has been tested on a sandbox.
  • This change has relevant unit tests (if applicable).
  • This change uses a rollout method to ease with deployment (if applicable - especially for large scale actions that require writes).
  • This change has relevant documentation additions / updates (if applicable).
  • I've created a changelog description that aligns with the provided examples.

Pre-deploy checklist

  • VIP staff: Ensure any alerts added/updated conform to internal standards (see internal documentation).

Steps to Test

Copilot AI review requested due to automatic review settings January 26, 2026 21:49
@maxschmeling maxschmeling requested a review from a team as a code owner January 26, 2026 21:49
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

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_VERSION and VIP_RTC_GUTENBERG_VERSION) to control which versions of the plugins are loaded
  • Updates path construction logic in get_gutenberg_path() and get_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
Copy link
Copy Markdown

codecov Bot commented Jan 26, 2026

Codecov Report

❌ Patch coverage is 44.44444% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 35.19%. Comparing base (255dc7c) to head (6b8a19b).
⚠️ Report is 19 commits behind head on develop.

Files with missing lines Patch % Lines
integrations/real-time-collaboration.php 44.44% 5 Missing ⚠️
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.
📢 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.

Comment thread integrations/real-time-collaboration.php Outdated
@Automattic Automattic deleted a comment from Copilot AI Jan 26, 2026
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants