[ticket/17600] Add mark notifications read to controllers#6923
[ticket/17600] Add mark notifications read to controllers#6923rubencm wants to merge 1 commit intophpbb:masterfrom
Conversation
242dd9e to
b4ce937
Compare
d845ba4 to
5baf86c
Compare
b7a974c to
143efb3
Compare
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds dedicated notification controllers/routes for “mark read” actions, and updates forum/index pages to use them instead of handling mark-read logic inline.
Changes:
- Introduces new controllers + routes for marking all forums, subforums, and forum topics as read
- Updates
index/viewforum/ forum list links to use controller routes - Refactors forum/forum-list SQL into new helper functions (
get_forum_data,get_forums_rows)
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| phpBB/viewforum.php | Uses get_forum_data() and routes “mark topics read” through the controller |
| phpBB/phpbb/notification/controller/mark_topics_read.php | New controller endpoint for marking topics in a forum as read |
| phpBB/phpbb/notification/controller/mark_subforums_read.php | New controller endpoint for marking subforums as read |
| phpBB/phpbb/notification/controller/mark_all_read.php | New controller endpoint for marking everything read from index |
| phpBB/phpbb/forum/controller/index.php | Updates “mark forums read” link to point at the new notifications route |
| phpBB/includes/functions_display.php | Removes inline mark-read handling; generates controller route links for mark-read |
| phpBB/includes/functions.php | Adds get_forums_rows() / get_forum_data() helpers; updates markread() phpdoc types |
| phpBB/config/default/routing/notifications.yml | Registers routes for the new mark-read controllers |
| phpBB/config/default/container/services_notification.yml | Registers services for the new controllers |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
a729e0a to
dd54cba
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 12 out of 12 changed files in this pull request and generated 7 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 12 out of 12 changed files in this pull request and generated 6 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
PHPBB-17600
Checklist:
Tracker ticket:
https://tracker.phpbb.com/browse/PHPBB-17600