Enable comment and private_comment tables to share unique IDs between them #664
Labels
No labels
ai-review-please
Org/Team Modification
Private Issues
Runner Request
Backlog Status
Needs Review
Backlog Status
Ready
chore
documentation
points
01
points
02
points
03
points
05
points
08
points
13
Priority
High
Priority
Low
Priority
Medium
Sprint Status
Blocked
Sprint Status
Done
Sprint Status
In Progress
Sprint Status
Review
Sprint Status
To Do
Technical Debt
Work Item
Bug
Work Item
Epic
Work Item
Spike
Work Item
Task
Work Item
User Story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#594 Private Issues: “Privatize” Comments
forge/forge
Reference
forge/forge#664
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Story
As a user of Forgejo,
I want that comments, private or public, are addressed uniquely,
so that I can point others to them directly.
Acceptance Criteria
BeforeInsert()method checks that their ID field is set (≠ 0).private_commenttable in the database is created in a way that theidcolumn won’t be set automatically on insertion (i.e. withoutautoincrin the XORM tag). To do this, thereflectpackage is used to rework the realPrivateCommenttype dynamically just for passing it todb.RegisterModel().Background
This is about stealing ID values for private comments from the (public) comment table, see the corresponding spike: #652
IssueandPrivateIssue#667This is implemented in my feature branch: https://codeberg.org/nilsph/forgejo/src/branch/private-issues-backend-comments