Monorepo for Tangled tangled.org

appview: remove ResolvedRepo for eternity #821

merged opened by boltless.me targeting master from sl/yurolxtlpsmz
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.pull/3m5t2gtxrpi22
+1 -1
Interdiff #1 #2
appview/issues/issues.go

This file has not been changed.

appview/issues/opengraph.go

This file has not been changed.

appview/middleware/middleware.go

This file has not been changed.

appview/pulls/opengraph.go

This file has not been changed.

appview/pulls/pulls.go

This file has not been changed.

appview/repo/artifact.go

This file has not been changed.

appview/repo/blob.go

This file has not been changed.

appview/repo/feed.go

This file has not been changed.

appview/repo/index.go

This file has not been changed.

appview/repo/log.go

This file has not been changed.

appview/repo/opengraph.go

This file has not been changed.

appview/repo/repo.go

This file has not been changed.

appview/repo/settings.go

This file has not been changed.

appview/repo/tree.go

This file has not been changed.

+1 -1
appview/reporesolver/resolver.go
··· 53 53 54 54 // 1. [x] replace `RepoInfo` to `reporesolver.GetRepoInfo(r *http.Request, repo, user)` 55 55 // 2. [x] remove `rr`, `CurrentDir`, `Ref` fields from `ResolvedRepo` 56 - // 3. [ ] remove `ResolvedRepo` 56 + // 3. [x] remove `ResolvedRepo` 57 57 // 4. [ ] replace reporesolver to reposervice 58 58 func (rr *RepoResolver) GetRepoInfo(r *http.Request, user *oauth.User) repoinfo.RepoInfo { 59 59 ownerId, ook := r.Context().Value("resolvedId").(identity.Identity)

History

3 rounds 3 comments
sign up or login to add to the discussion
1 commit
expand
appview: remove ResolvedRepo for eternity
expand 1 comment

entire stack lgtm, thanks for the hard work on this!

pull request successfully merged
1 commit
expand
appview: remove ResolvedRepo for eternity
expand 1 comment

entire stack lgtm, thanks for the hard work on this!

1 commit
expand
appview: remove ResolvedRepo for eternity
expand 1 comment

@oppi.li (testing the at-mention) this stack is ready for review. basically all I did here are:

  • diet the repoResolver so we can switch to repo service later (see #800)
  • remove ResolvedRepo

Because the dependencies are quite tangled and ResolvedRepo was used all over the place, I had to divide the change in multiple steps and migrated gradually.