back interdiff of round #3 and #2

appview: use less OwnerSlashRepo() in handlers #802

merged
opened by boltless.me targeting master from sl/yurolxtlpsmz
ERROR
appview/issues/issues.go

Failed to calculate interdiff for this file.

ERROR
appview/middleware/middleware.go

Failed to calculate interdiff for this file.

ERROR
appview/pages/repoinfo/repoinfo.go

Failed to calculate interdiff for this file.

ERROR
appview/pulls/pulls.go

Failed to calculate interdiff for this file.

ERROR
appview/repo/artifact.go

Failed to calculate interdiff for this file.

ERROR
appview/repo/blob.go

Failed to calculate interdiff for this file.

ERROR
appview/repo/branches.go

Failed to calculate interdiff for this file.

ERROR
appview/repo/compare.go

Failed to calculate interdiff for this file.

ERROR
appview/repo/feed.go

Failed to calculate interdiff for this file.

ERROR
appview/repo/index.go

Failed to calculate interdiff for this file.

ERROR
appview/repo/log.go

Failed to calculate interdiff for this file.

ERROR
appview/repo/repo.go

Failed to calculate interdiff for this file.

ERROR
appview/repo/settings.go

Failed to calculate interdiff for this file.

ERROR
appview/repo/tags.go

Failed to calculate interdiff for this file.

ERROR
appview/repo/tree.go

Failed to calculate interdiff for this file.

ERROR
appview/reporesolver/resolver.go

Failed to calculate interdiff for this file.

NEW
appview/repo/archive.go
···
xrpcc := &indigoxrpc.Client{
Host: host,
}
-
repo := fmt.Sprintf("%s/%s", f.OwnerDid(), f.Name)
-
archiveBytes, err := tangled.RepoArchive(r.Context(), xrpcc, "tar.gz", "", ref, repo)
+
didSlashRepo := f.DidSlashRepo()
+
archiveBytes, err := tangled.RepoArchive(r.Context(), xrpcc, "tar.gz", "", ref, didSlashRepo)
if xrpcerr := xrpcclient.HandleXrpcErr(err); xrpcerr != nil {
l.Error("failed to call XRPC repo.archive", "err", xrpcerr)
rp.pages.Error503(w)