Private Issues: Verify public/private ID pairs #634

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

Summary

Implement a function to verify public/private ID pairs and use it throughout for issues and comments

Acceptance Criteria

  • A function exists which verifies public/private ID pairs, that only one is set. There is a way to allow both being unset, as there are situations when this can legitimately happen.
  • This function accepts both optional.Option[int64] and int64 values.
  • This function is used to verify IDs where public/private issues are referenced from other structures/tables.

Background

This is verified inline for issues ATM, but with converting comments to public/private, the number of places skyrockets where this needs to be done.

# Summary Implement a function to verify public/private ID pairs and use it throughout for issues and comments # Acceptance Criteria - [x] A function exists which verifies public/private ID pairs, that only one is set. There is a way to allow both being unset, as there are situations when this can legitimately happen. - [x] This function accepts both `optional.Option[int64]` and `int64` values. - [x] This function is used to verify IDs where public/private issues are referenced from other structures/tables. # Background This is verified inline for issues ATM, but with converting comments to public/private, the number of places skyrockets where this needs to be done.
nphilipp added this to the Sprint 24 project 2026-06-30 11:35:40 +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#634
No description provided.