Skip to content

[ticket/17600] Add mark notifications read to controllers#6923

Open
rubencm wants to merge 1 commit intophpbb:masterfrom
rubencm:ticket/17600
Open

[ticket/17600] Add mark notifications read to controllers#6923
rubencm wants to merge 1 commit intophpbb:masterfrom
rubencm:ticket/17600

Conversation

@rubencm
Copy link
Copy Markdown
Member

@rubencm rubencm commented Jan 2, 2026

PHPBB-17600

Checklist:

  • Correct branch: master for new features; 3.3.x for fixes
  • Tests pass
  • Code follows coding guidelines: master and 3.3.x
  • Commit follows commit message format

Tracker ticket:

https://tracker.phpbb.com/browse/PHPBB-17600

@rubencm rubencm marked this pull request as draft January 2, 2026 23:35
@rubencm rubencm force-pushed the ticket/17600 branch 4 times, most recently from 242dd9e to b4ce937 Compare January 3, 2026 22:55
@rubencm rubencm force-pushed the ticket/17600 branch 2 times, most recently from d845ba4 to 5baf86c Compare April 5, 2026 01:52
@rubencm rubencm requested a review from Copilot April 5, 2026 01:53
@rubencm rubencm force-pushed the ticket/17600 branch 3 times, most recently from b7a974c to 143efb3 Compare April 5, 2026 01:57
Copy link
Copy Markdown

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

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.

Comment thread phpBB/includes/functions.php Outdated
Comment thread phpBB/phpbb/notification/controller/mark_all_read.php Outdated
Comment thread phpBB/phpbb/notification/controller/mark_subforums_read.php
Comment thread phpBB/includes/functions.php Outdated
Comment thread phpBB/includes/functions.php Outdated
Comment thread phpBB/includes/functions.php Outdated
Comment thread phpBB/phpbb/notification/controller/mark_all_read.php Outdated
@rubencm rubencm force-pushed the ticket/17600 branch 3 times, most recently from a729e0a to dd54cba Compare April 5, 2026 02:55
@rubencm rubencm marked this pull request as ready for review April 5, 2026 09:06
@rubencm rubencm requested a review from Copilot April 5, 2026 09:20
Copy link
Copy Markdown

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

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.

Comment thread phpBB/includes/functions_display.php
Comment thread phpBB/phpbb/notification/controller/mark_topics_read.php Outdated
Comment thread phpBB/phpbb/notification/controller/mark_subforums_read.php Outdated
Comment thread phpBB/phpbb/notification/controller/mark_all_read.php Outdated
Comment thread phpBB/viewforum.php Outdated
Comment thread phpBB/phpbb/notification/controller/mark_all_read.php
Comment thread phpBB/phpbb/notification/controller/mark_topics_read.php Outdated
Copy link
Copy Markdown

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

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.

Comment thread phpBB/phpbb/notification/controller/mark_subforums_read.php
Comment thread phpBB/phpbb/notification/controller/mark_all_read.php
Comment thread phpBB/viewforum.php
Comment thread phpBB/includes/functions_display.php
Comment thread phpBB/phpbb/forum/helper.php Outdated
Comment thread phpBB/phpbb/notification/controller/mark_subforums_read.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants