fix: tech-debt batch 3 — remove deprecated functions, use stdlib #357

Merged
jmiller merged 1 commits from fix/tech-debt-batch-3 into dev 2026-05-31 16:05:23 +00:00
Owner

Summary

  • Replace ValuesRepository with maps.Values: The helper was a workaround for Go <1.18. Since we're on Go 1.26, use the stdlib directly.
  • Remove CanEnableEditor wrapper: It was identical to CanContentChange(). All callers now use CanContentChange directly (Go + templates).
  • Remove stale TODO comments: Two comments about project column route naming — not actionable without breaking the API.

Refs #311, #317

Test plan

  • Verify go build succeeds
  • Verify web editor still works on non-mirror, non-archived repos
  • Verify web editor is disabled on mirrors and archived repos
  • Verify project column drag-and-drop still works

🤖 Generated with Claude Code

## Summary - **Replace `ValuesRepository` with `maps.Values`**: The helper was a workaround for Go <1.18. Since we're on Go 1.26, use the stdlib directly. - **Remove `CanEnableEditor` wrapper**: It was identical to `CanContentChange()`. All callers now use `CanContentChange` directly (Go + templates). - **Remove stale TODO comments**: Two comments about project column route naming — not actionable without breaking the API. Refs #311, #317 ## Test plan - [ ] Verify `go build` succeeds - [ ] Verify web editor still works on non-mirror, non-archived repos - [ ] Verify web editor is disabled on mirrors and archived repos - [ ] Verify project column drag-and-drop still works 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jmiller added 1 commit 2026-05-31 16:05:04 +00:00
fix: resolve tech-debt batch 3 — remove deprecated functions, use stdlib
Universal: PR Check / Build RC Package (pull_request) Blocked by required conditions
Branch Policy Check / Verify merge target (pull_request) Successful in 3s
Universal: PR Check / Branch Policy (pull_request) Successful in 3s
PR RC Release / Build RC Release (pull_request) Successful in 4s
Universal: PR Check / Validate PR (pull_request) Failing after 12s
Branch Cleanup / Delete merged branch (pull_request) Successful in 3s
b9b3026122
- refactor(go): replace ValuesRepository with maps.Values (Go 1.21+)
- refactor(go): remove CanEnableEditor wrapper, use CanContentChange directly
- chore: remove stale TODO comments about project column route naming

Refs #311, #317

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jmiller merged commit 53bcb3cdf9 into dev 2026-05-31 16:05:23 +00:00
jmiller deleted branch fix/tech-debt-batch-3 2026-05-31 16:05:24 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoGitea#357