[ticket/17665] Add automatic admin notifications on security updates - #7012
Conversation
…ification PHPBB-17665
PHPBB-17665
PHPBB-17665
|
The attempt to merge branch
A separate PR will be needed to merge |
|
Some findings from looking into the red CI, verified locally against this branch (phpunit 9.6.35, MySQL 8 strict mode, PostgreSQL 16): 1. The whole matrix is red from one failure. with the matching third argument in the migration: 2. The generated
The hardcoded 3. The migration has no 4. Failed checks retry on every cron trigger. Minor: |
PHPBB-17665
PHPBB-17665
|
I'm having troubles testing this, current feedback
|
|
Updated the PR. Cron is working fine now and the default admin will receive the notification via mail by default. When running the migration, all admins with appropriate permissions should get the same setting. I also double checked and the version check data gets verified against the schema and no HTML can be added to inject HTML. |
PHPBB-17665
PHPBB-17665
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Pull request overview
Adds automatic cron-based phpBB update notifications for administrators, including maintenance, security, and critical update classifications.
Changes:
- Adds version-checking cron task and version metadata for security/critical releases.
- Registers an administrator notification type with default email subscriptions.
- Adds migration, language/email templates, installation data, and automated tests.
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
tests/functional/update_maintenance_test.php |
Tests rendered update notification titles. |
tests/cron/version_check_test.php |
Tests cron scheduling and update classification. |
phpBB/phpbb/version_helper.php |
Extends the version response schema. |
phpBB/phpbb/notification/type/update_maintenance.php |
Implements administrator update notifications. |
phpBB/phpbb/db/migration/data/v33x/add_version_check_cron.php |
Adds cron configuration and default subscriptions. |
phpBB/phpbb/cron/task/core/version_check.php |
Checks for updates and sends notifications. |
phpBB/language/en/ucp.php |
Adds the notification type label. |
phpBB/language/en/email/update_security.txt |
Adds the security update email template. |
phpBB/language/en/email/update_maintenance.txt |
Adds the maintenance update email template. |
phpBB/language/en/email/update_critical.txt |
Adds the critical update email template. |
phpBB/language/en/common.php |
Adds update notification title strings. |
phpBB/language/en/acp/common.php |
Adds the version-check failure log message. |
phpBB/install/schemas/schema_data.sql |
Adds fresh-install cron configuration and admin email subscription data. |
phpBB/config/default/container/services_notification.yml |
Registers the update notification service. |
phpBB/config/default/container/services_cron.yml |
Registers the version-check cron task. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
e58407b to
8190006
Compare
Checklist:
Tracker ticket:
https://tracker.phpbb.com/browse/PHPBB-17665