Closed wordpressfan closed 1 week ago
Coverage variation | Diff coverage |
---|---|
Report missing for e5bca6673a3669827f3998edebc0c785210fe561[^1] | :x: 23.64% (target: 50.00%) |
Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more [^1]: Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.
I'll be waiting for a reply here: https://wp-media.slack.com/archives/C06CQPWEJSK/p1731572752314419 to see if we will change the direction that we took here or we are fine.
I'll change the way we handle this to detect the old and new urls when setting rocketcdn_status transient instead of WPR upgrade.
PR approved to move to QA, but we should have tests coverage added to before merging
@wordpressfan There's still the question from Mathieu in this topic: https://wp-media.slack.com/archives/CUT7FLHF1/p1731692989584199?thread_ts=1731601939.328049&cid=CUT7FLHF1
Please make after merging this PR to send it to transifex.
As per slack, Trigger: On update from < 3.17.3 to >= 3.17.3 If the CDN URL is set to xxxxxxxx.rocketcdn.me (where xxxxxxxx is exactly 8 alphanumeric characters), then: change it to xxxxxxxx.delivery.rocketcdn.me display the banner with before/after values There should be no API call involved in this approach. ACs would be: (validation is WIP)
[x] On WP Rocket < 3.17.3, enable CDN option. Set xxxxxxxx.rocketcdn.me as CNAME URL in the plugin. Update to 3.17.3. The CNAME should be xxxxxxxx.delivery.rocketcdn.me and the banner must appear.
[x] On WP Rocket < 3.17.3, disable CDN option. Set xxxxxxxx.rocketcdn.me as CNAME URL in the plugin. Update to 3.17.3. The CNAME should be xxxxxxxx.delivery.rocketcdn.me and the banner must appear.
[x] On WP Rocket < 3.17.3, enable CDN option. Set xxxxxxxx.delivery.rocketcdn.me as CNAME URL in the plugin. Update to 3.17.3. The CNAME should still be xxxxxxxx.delivery.rocketcdn.me and the banner must not appear. => (from 3.16.4 and 3.17.2.1)
[x] On WP Rocket < 3.17.3, enable CDN option. Set xxxxxxxx.another.cdn as CNAME URL in the plugin. Update to 3.17.3. The CNAME should still be xxxxxxxx.another.cdn and the banner must not appear. => (only green text under the option is displayed on old/new version if we already have a valid subscription)
[x] With Fresh install and activation of subscription => no banner displayed and CNAME with delivery is there :heavy_check_mark:
[x] Update from 3.17.3 to > 3.17.3 while xxxxxxxx.delivery.rocketcdn.me as CNAME => No banner displayed
[x] Update from 3.17.3 to > 3.17.3 while xxxxxxxx.rocketcdn.me as CNAME => ===> actual is no rewrite to cdn and no banner
Slack discussion: https://wp-media.slack.com/archives/CUKB44GNN/p1731939168323999
We need to create another issue to add more automated tests (unit/integration) to fix the codacy CI failure.
Description
Fixes #7027
Starting from 3.17.3, we will show a message if the cname changed in WPR settings page only.
Type of change
Detailed scenario
the approach that we took here is that with update, we will force refreshing the rocketcdn status which has the cname url on it and compare it with the old/previous url then set an option which will be used to show the admin notice in WPR side, so the trigger here is the WPR plugin update.
Technical description
Documentation
With update we will force getting rocketcdn cname again and if it's different that the old url, we will show the notice to let the customers know about that.
New dependencies
No
Risks
I mentioned some questions with risks here: https://wp-media.slack.com/archives/C06CQPWEJSK/p1731572752314419 to @wp-media/product team
Mandatory Checklist
Code validation
Code style
Additional Checks