refactor(lib): trim docs in lib/db repo_branch_protection_policy and lib/user profile types
zhenyi committed
Modified lib/db/repo/repo_branch_protection_policy.rs lib/db/repo/repo_branch_protection_policy.rs +2 −6 View lib/db/repo/repo_branch_protection_policy.rs
@@ -23,13 +23,9 @@
2323 pub require_signed_commits: bool,
2424 pub protected_file_patterns: String,
2525 pub unprotected_file_patterns: String,
26 /// Optional glob pattern. When non-null, the protection row matches any
27 /// branch whose name satisfies the pattern. `branch_name` (exact match)
28 /// takes precedence over the pattern.
29 pub branch_pattern: Option<String>,
26 pub branch_pattern: Option<String>,
3027 /// If true, non-fast-forward updates to the protected ref are allowed.
31 /// Defaults to `false` so force-pushes are denied for protected branches.
32 pub enable_force_push: bool,
28 pub enable_force_push: bool,
3329 pub created_at: OffsetDateTime,
3430 pub updated_at: OffsetDateTime,
3531 #[sea_orm(belongs_to, from = "repo_id", to = "id")]
Modified lib/user/features/profile/types.rs lib/user/features/profile/types.rs +1 −7 View lib/user/features/profile/types.rs
@@ -151,13 +151,7 @@
151151}
152152
153153impl ProfileView {
154 /// Build a `ProfileView` that respects the owner's `visibility`,
155 /// the per-row `show_*` flags, and the relationship to `viewer`.
156 ///
157 /// Sensitive PII (`real_name`, `date_of_birth`, `location`) is only
158 /// emitted when the viewer may see the profile at all AND the
159 /// corresponding `show_*` flag is enabled.
160 pub fn for_viewer(
154 pub fn for_viewer(
161155 m: db::user::user_profiles::Model,
162156 visibility: user_entity::ProfileVisibility,
163157 viewer: Option<Uuid>,