Gopher Robot submitted the change![Open in Gerrit]()
Change information
Commit message:
internal: conditionally return documentation in GetUnit
- Large documentations blobs should avoid being returned unless
explicitly requested. Add a WithDocsSource to enable retrieval of
unit information without the large documentation source information.
- This does not functionally change existing GetUnit callsites.
Change-Id: Ie983b7eaeb61bb92f2716ae64a3d1e1ea738dbe2
Files:
- M internal/api/api.go
- M internal/fetchdatasource/fetchdatasource_test.go
- M internal/frontend/main.go
- M internal/postgres/unit.go
- M internal/postgres/unit_test.go
- M internal/testing/fakedatasource/fakedatasource.go
- M internal/unit.go
- M internal/worker/fetch_test.go
- M internal/worker/fetcherror_test.go
- M internal/worker/refetch_test.go
Change size: M
Delta: 10 files changed, 44 insertions(+), 17 deletions(-)
Branch: refs/heads/master
Open in Gerrit
Gerrit-MessageType: merged
Gerrit-Project: pkgsite
Gerrit-Branch: master
Gerrit-Change-Id: Ie983b7eaeb61bb92f2716ae64a3d1e1ea738dbe2
Gerrit-Change-Number: 756480
Gerrit-PatchSet: 6