Monorepo for Tangled tangled.org
854
fork

Configure Feed

Select the types of activity you want to include in your feed.

appview/db: queries use repo_did lookups #277

open opened by oyster.cafe targeting master from lt/repo-rename-by-rkey
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:3fwecdnvtcscjnrx2p4n7alz/sh.tangled.repo.pull/3mjm6w2jgxa22
+8 -8
Interdiff #2 #3
appview/db/artifact.go

This file has not been changed.

appview/db/collaborators.go

This file has not been changed.

appview/db/issues.go

This file has not been changed.

appview/db/language.go

This file has not been changed.

appview/db/profile.go

This file has not been changed.

appview/db/pulls.go

This file has not been changed.

appview/db/reference.go

This file has not been changed.

appview/db/repos.go

This patch was likely rebased, as context lines do not match.

appview/db/site_deploys.go

This file has not been changed.

appview/db/sites.go

This file has not been changed.

appview/db/star.go

This file has not been changed.

+8 -8
appview/db/timeline.go
··· 62 62 return nil, nil 63 63 } 64 64 65 - var repoDids []string 65 + var repoAts []syntax.ATURI 66 66 for _, r := range repos { 67 - repoDids = append(repoDids, r.RepoDid) 67 + repoAts = append(repoAts, r.RepoAt()) 68 68 } 69 69 70 - return GetStarStatuses(e, loggedInUserDid, repoDids) 70 + return GetStarStatuses(e, loggedInUserDid, repoAts) 71 71 } 72 72 73 73 func getRepoStarInfo(repo *models.Repo, starStatuses map[string]bool) (bool, int64) { 74 74 var isStarred bool 75 75 if starStatuses != nil { 76 - isStarred = starStatuses[repo.RepoDid] 76 + isStarred = starStatuses[repo.RepoAt().String()] 77 77 } 78 78 79 79 var starCount int64 ··· 100 100 return nil, nil 101 101 } 102 102 103 - var repoAts []syntax.ATURI 103 + var repoDids []string 104 104 for _, r := range repos { 105 - repoAts = append(repoAts, r.RepoAt()) 105 + repoDids = append(repoDids, r.RepoDid) 106 106 } 107 107 108 - return GetStarStatuses(e, loggedInUserDid, repoAts) 108 + return GetStarStatuses(e, loggedInUserDid, repoDids) 109 109 } 110 110 111 111 func getRepoStarInfo(repo *models.Repo, starStatuses map[string]bool) (bool, int64) { 112 112 var isStarred bool 113 113 if starStatuses != nil { 114 - isStarred = starStatuses[repo.RepoAt().String()] 114 + isStarred = starStatuses[repo.RepoDid] 115 115 } 116 116 117 117 var starCount int64
appview/db/webhooks.go

This file has not been changed.

appview/state/gfi.go

This file has not been changed.

appview/state/star.go

This file has not been changed.

History

9 rounds 0 comments
sign up or login to add to the discussion
1 commit
expand
appview/db: queries use repo_did lookups
merge conflicts detected
expand
  • api/tangled/cbor_gen.go:866
  • api/tangled/feedstar.go:5
  • api/tangled/gitrefUpdate.go:29
  • api/tangled/repocollaborator.go:19
  • api/tangled/repoissue.go:22
  • api/tangled/repopull.go:39
  • api/tangled/tangledrepo.go:24
  • cmd/cborgen/cborgen.go:17
  • knotserver/xrpc/merge.go:118
  • lexicons/feed/star.json:10
  • lexicons/git/refUpdate.json:11
  • lexicons/issue/issue.json:9
  • lexicons/pulls/pull.json:65
  • lexicons/repo/collaborator.json:11
  • lexicons/repo/repo.json:6
expand 0 comments
1 commit
expand
appview/db: queries use repo_did lookups
expand 0 comments
1 commit
expand
appview/db: queries use repo_did lookups
expand 0 comments
1 commit
expand
appview/db: queries use repo_did lookups
expand 0 comments
1 commit
expand
appview/db: queries use repo_did lookups
expand 0 comments
1 commit
expand
appview/db: queries use repo_did lookups
expand 0 comments
1 commit
expand
appview/db: queries use repo_did lookups
expand 0 comments
1 commit
expand
appview/db: queries use repo_did lookups
expand 0 comments
1 commit
expand
appview/db: queries use repo_did lookups
expand 0 comments