Monorepo for Tangled tangled.org

appview: add repo_did columns, migrations, and model struct fields #1138

open opened by oyster.cafe targeting master from oyster.cafe/tangled-core: master
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:3fwecdnvtcscjnrx2p4n7alz/sh.tangled.repo.pull/3mgprvt2ejx22
+2 -3
Interdiff #9 #10
appview/db/db.go

This file has not been changed.

appview/db/pipeline.go

This file has not been changed.

appview/db/pulls.go

This file has not been changed.

appview/db/repos.go

This file has not been changed.

+1 -2
appview/db/star.go
··· 66 66 func GetStarCount(e Execer, subjectAt syntax.ATURI) (int, error) { 67 67 stars := 0 68 68 err := e.QueryRow( 69 + `select count(did) from stars where subject_at = ?`, subjectAt).Scan(&stars) 69 - `select count(did) from stars where subject_at = ?`, 70 - subjectAt.String()).Scan(&stars) 71 70 if err != nil { 72 71 return 0, err 73 72 }
appview/models/issue.go

This file has not been changed.

appview/models/pipeline.go

This file has not been changed.

appview/models/pull.go

This file has not been changed.

appview/models/repo.go

This file has not been changed.

appview/pages/funcmap.go

This file has not been changed.

+1 -1
appview/strings/strings.go
··· 149 149 showRendered = r.URL.Query().Get("code") != "true" 150 150 } 151 151 152 + starCount, err := db.GetStarCount(s.Db, string.AtUri()) 152 - starCount, err := db.GetStarCount(s.Db, "", string.AtUri()) 153 153 if err != nil { 154 154 l.Error("failed to get star count", "err", err) 155 155 }

History

12 rounds 1 comment
sign up or login to add to the discussion
1 commit
expand
appview: add repo_did to repos/stars/pipelines tables, update queries
merge conflicts detected
expand
  • go.mod:34
  • go.sum:339
expand 0 comments
oyster.cafe submitted #10
1 commit
expand
appview: add repo_did to repos/stars/pipelines tables, update queries
expand 0 comments
1 commit
expand
appview: add repo_did to repos/stars/pipelines tables, update queries
expand 1 comment
1 commit
expand
appview: add repo_did columns, migrations, and model struct fields
expand 0 comments
1 commit
expand
appview: add repo_did columns, migrations, and model struct fields
expand 0 comments
1 commit
expand
appview: add repo_did columns, migrations, and model struct fields
expand 0 comments
1 commit
expand
appview: add repo_did columns, migrations, and model struct fields
expand 0 comments
1 commit
expand
appview: add repo_did columns, migrations, and model struct fields
expand 0 comments
1 commit
expand
appview: add repo_did columns, migrations, and model struct fields
expand 0 comments
1 commit
expand
appview: add repo_did columns, migrations, and model struct fields
expand 0 comments
1 commit
expand
appview: add repo_did columns, migrations, and model struct fields
expand 0 comments
1 commit
expand
appview: add repo_did columns, migrations, and model struct fields
expand 0 comments