Signed-off-by: Seongmin Lee git@boltless.me
appview/issues/issues.go
appview/issues/issues.go
This file has not been changed.
appview/middleware/middleware.go
appview/middleware/middleware.go
This file has not been changed.
appview/pages/repoinfo/repoinfo.go
appview/pages/repoinfo/repoinfo.go
This file has not been changed.
appview/pulls/pulls.go
appview/pulls/pulls.go
This file has not been changed.
+8
-1
appview/repo/artifact.go
+8
-1
appview/repo/artifact.go
···
174
174
175
175
artifact := artifacts[0]
176
176
177
-
ownerPds := f.OwnerId.PDSEndpoint()
177
+
ownerId, err := rp.idResolver.ResolveIdent(r.Context(), f.Did)
178
+
if err != nil {
179
+
log.Println("failed to resolve repo owner did", f.Did, err)
180
+
http.Error(w, "repository owner not found", http.StatusNotFound)
181
+
return
182
+
}
183
+
184
+
ownerPds := ownerId.PDSEndpoint()
178
185
url, _ := url.Parse(fmt.Sprintf("%s/xrpc/com.atproto.sync.getBlob", ownerPds))
179
186
q := url.Query()
180
187
q.Set("cid", artifact.BlobCid.String())
appview/repo/blob.go
appview/repo/blob.go
This file has not been changed.
appview/repo/branches.go
appview/repo/branches.go
This file has not been changed.
appview/repo/compare.go
appview/repo/compare.go
This file has not been changed.
appview/repo/feed.go
appview/repo/feed.go
This file has not been changed.
appview/repo/index.go
appview/repo/index.go
This file has not been changed.
appview/repo/log.go
appview/repo/log.go
This file has not been changed.
appview/repo/repo.go
appview/repo/repo.go
This file has not been changed.
appview/repo/settings.go
appview/repo/settings.go
This file has not been changed.
appview/repo/tree.go
appview/repo/tree.go
This file has not been changed.
appview/reporesolver/resolver.go
appview/reporesolver/resolver.go
This file has not been changed.
+2
-2
appview/repo/archive.go
+2
-2
appview/repo/archive.go
···
31
31
xrpcc := &indigoxrpc.Client{
32
32
Host: host,
33
33
}
34
-
repo := fmt.Sprintf("%s/%s", f.OwnerDid(), f.Name)
35
-
archiveBytes, err := tangled.RepoArchive(r.Context(), xrpcc, "tar.gz", "", ref, repo)
34
+
didSlashRepo := f.DidSlashRepo()
35
+
archiveBytes, err := tangled.RepoArchive(r.Context(), xrpcc, "tar.gz", "", ref, didSlashRepo)
36
36
if xrpcerr := xrpcclient.HandleXrpcErr(err); xrpcerr != nil {
37
37
l.Error("failed to call XRPC repo.archive", "err", xrpcerr)
38
38
rp.pages.Error503(w)
History
6 rounds
1 comment
boltless.me
submitted
#5
1 commit
expand
collapse
appview: use less
OwnerSlashRepo() in handlers
Signed-off-by: Seongmin Lee <git@boltless.me>
expand 0 comments
pull request successfully merged
boltless.me
submitted
#4
1 commit
expand
collapse
appview: use less
OwnerSlashRepo() in handlers
Signed-off-by: Seongmin Lee <git@boltless.me>
expand 0 comments
boltless.me
submitted
#3
1 commit
expand
collapse
appview: use less
OwnerSlashRepo() in handlers
Signed-off-by: Seongmin Lee <git@boltless.me>
expand 0 comments
boltless.me
submitted
#2
1 commit
expand
collapse
appview: use less
OwnerSlashRepo() in handlers
Signed-off-by: Seongmin Lee <git@boltless.me>
expand 0 comments
boltless.me
submitted
#1
1 commit
expand
collapse
appview: use less
OwnerSlashRepo() in handlers
Signed-off-by: Seongmin Lee <git@boltless.me>
expand 0 comments
boltless.me
submitted
#0
1 commit
expand
collapse
appview: use less
OwnerSlashRepo() in handlers
Signed-off-by: Seongmin Lee <git@boltless.me>
The end goal here is to remove the
RepoInfoandResolvedRepo