fix: repair build (renamed org-visibility helper) + gofmt #735

Merged
jmiller merged 1 commits from fix/compile-hasorgvisible-and-gofmt into dev 2026-07-05 05:08:11 +00:00
Owner

The fork's server binary doesn't currently go build — found when I compiled the org-governance series locally with a real toolchain (go1.26.3) for the first time.

  • routers/api/v1/api.go:519 calls organization.HasOrgOrUserVisible, which no longer exists — it was renamed to IsOwnerVisibleToDoer (models/organization/org.go:548, identical signature (ctx, orgOrUser, user *User) bool). This one missed call site fails compilation of the whole routers/api/v1 package. This is pre-existing on main (byte-identical), not from #727.
  • gofmt: api.go (a mis-indented commented-out /projects block) and release.go (import sort) were gofmt-dirty; fixed with gofmt -w on the two files this change touches.

Verified locally

  • go build ./...clean (was failing before the rename).
  • gofmt -l on all changed files → clean.
  • go vet ./... running.

Merging this makes dev (and, via #733, main) actually buildable. CI's Lint & Validate never caught this because it doesn't run a full go build.

https://claude.ai/code/session_01Wsno14cxE49MstXFs9G5KT

**The fork's server binary doesn't currently `go build`** — found when I compiled the org-governance series locally with a real toolchain (go1.26.3) for the first time. - `routers/api/v1/api.go:519` calls `organization.HasOrgOrUserVisible`, which **no longer exists** — it was renamed to `IsOwnerVisibleToDoer` (`models/organization/org.go:548`, identical signature `(ctx, orgOrUser, user *User) bool`). This one missed call site fails compilation of the whole `routers/api/v1` package. This is **pre-existing on `main`** (byte-identical), not from #727. - **gofmt:** `api.go` (a mis-indented commented-out `/projects` block) and `release.go` (import sort) were gofmt-dirty; fixed with `gofmt -w` on the two files this change touches. ## Verified locally - `go build ./...` → **clean** (was failing before the rename). - `gofmt -l` on all changed files → **clean**. - `go vet ./...` running. Merging this makes `dev` (and, via #733, `main`) actually buildable. CI's Lint & Validate never caught this because it doesn't run a full `go build`. https://claude.ai/code/session_01Wsno14cxE49MstXFs9G5KT
jmiller added 1 commit 2026-07-05 05:07:38 +00:00
fix: repair build (renamed org-visibility helper) + gofmt
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) Successful in 19s
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Branch Cleanup / Delete merged branch (pull_request) Successful in 2s
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 1m8s
Generic: Project CI / Lint & Validate (pull_request) Successful in 1m10s
Universal: PR Check / Secret Scan (pull_request) Successful in 2m43s
Generic: Project CI / Tests (pull_request) Has been cancelled
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Universal: PR Check / Report Issues (pull_request) Has been cancelled
125eefc650
Two pre-existing issues surfaced when the org-governance series was compiled
locally with a real Go toolchain (go1.26.3) for the first time:

- routers/api/v1/api.go:519 called organization.HasOrgOrUserVisible, which no
  longer exists — it was renamed to IsOwnerVisibleToDoer (models/organization/
  org.go:548, identical signature). This one missed call site meant the whole
  routers/api/v1 package (and therefore the server binary) failed `go build`.
  With the rename, `go build ./...` is clean.
- gofmt: api.go (a mis-indented commented-out /projects route block) and
  release.go (import sort: repo before updateserver) were gofmt-dirty. Fixed
  with gofmt -w on the two files this change already touches.

Not part of #727, but blocks building/releasing the fork; found while validating
the dev -> main promotion (#733).

Claude-Session: https://claude.ai/code/session_01Wsno14cxE49MstXFs9G5KT
jmiller merged commit 63f773aa56 into dev 2026-07-05 05:08:11 +00:00
jmiller deleted branch fix/compile-hasorgvisible-and-gofmt 2026-07-05 05:08:11 +00:00
Sign in to join this conversation.