Private Issues: Fundamental changes for public/private comments #635

Closed
opened 2026-06-30 11:58:01 +00:00 by nphilipp · 1 comment
Member

Summary

Public and private comments need to go into separate DB tables. Do it similar to issues.

Acceptance Criteria

  • A PrivateComment struct exists which is a copy of Comment. This is only for storage/retrieval in the database.
  • Both Comment and PrivateComment have hooks which prevent a public one stored into the private table and vice versa.
  • Methods exist to check if a comment is private or not, so consumers can check if someone is allowed to see it or not.
  • The private_comment table is created in the migration script.
# Summary Public and private comments need to go into separate DB tables. Do it similar to issues. # Acceptance Criteria - [x] A `PrivateComment` struct exists which is a copy of `Comment`. This is only for storage/retrieval in the database. - [x] Both `Comment` and `PrivateComment` have hooks which prevent a public one stored into the private table and vice versa. - [x] Methods exist to check if a comment is private or not, so consumers can check if someone is allowed to see it or not. - [x] The `private_comment` table is created in the migration script.
nphilipp added this to the Sprint 24 project 2026-06-30 12:02:44 +00:00
nphilipp changed title from Private Issues: Structural changes in Comment to Private Issues: Fundamental changes for public/private comments 2026-06-30 12:03:39 +00:00
Author
Member
Implemented in my feature branch: https://codeberg.org/nilsph/forgejo/src/branch/private-issues-backend-foundational
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
forge/forge#635
No description provided.