Monorepo for Tangled tangled.org

appview,lexicons: atprotate the mentions & references #761

merged opened by boltless.me targeting master from feat/mentions

Storing references parsed from the markdown body in atproto record and DB. There can be lots of reference types considering the from/to types so storing both as AT-URIs

Using sql.Tx more to combine multiple DB query to single recoverable operation.

Note: Pulls don't have mentinos/references yet

Signed-off-by: Seongmin Lee git@boltless.me

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.pull/3m4vklvknse22
+18 -18
Interdiff #10 #11
api/tangled/cbor_gen.go

This file has not been changed.

api/tangled/issuecomment.go

This file has not been changed.

api/tangled/pullcomment.go

This file has not been changed.

api/tangled/repoissue.go

This file has not been changed.

api/tangled/repopull.go

This file has not been changed.

appview/db/db.go

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

appview/db/issues.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/ingester.go

This file has not been changed.

+18 -18
appview/issues/issues.go
··· 915 }) 916 case http.MethodPost: 917 body := r.FormValue("body") 918 mentions, references := rp.refResolver.Resolve(r.Context(), body) 919 920 issue := &models.Issue{ ··· 928 Mentions: mentions, 929 References: references, 930 Repo: &f.Repo, 931 - } 932 - 933 - if err := rp.validator.ValidateIssue(issue); err != nil { 934 - 935 - }) 936 - case http.MethodPost: 937 - body := r.FormValue("body") 938 - mentions, _ := rp.refResolver.Resolve(r.Context(), body) 939 - 940 - issue := &models.Issue{ 941 - RepoAt: f.RepoAt(), 942 - Rkey: tid.TID(), 943 - Title: r.FormValue("title"), 944 - Body: body, 945 - Open: true, 946 - Did: user.Did, 947 - Created: time.Now(), 948 - Repo: &f.Repo, 949 } 950 951 if err := rp.validator.ValidateIssue(issue); err != nil {
··· 915 }) 916 case http.MethodPost: 917 body := r.FormValue("body") 918 + mentions, _ := rp.refResolver.Resolve(r.Context(), body) 919 + 920 + issue := &models.Issue{ 921 + RepoAt: f.RepoAt(), 922 + Rkey: tid.TID(), 923 + Title: r.FormValue("title"), 924 + Body: body, 925 + Open: true, 926 + Did: user.Did, 927 + Created: time.Now(), 928 + Repo: &f.Repo, 929 + } 930 + 931 + if err := rp.validator.ValidateIssue(issue); err != nil { 932 + 933 + }) 934 + case http.MethodPost: 935 + body := r.FormValue("body") 936 mentions, references := rp.refResolver.Resolve(r.Context(), body) 937 938 issue := &models.Issue{ ··· 946 Mentions: mentions, 947 References: references, 948 Repo: &f.Repo, 949 } 950 951 if err := rp.validator.ValidateIssue(issue); err != nil {
appview/models/issue.go

This file has not been changed.

appview/models/pull.go

This file has not been changed.

appview/pulls/pulls.go

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

appview/refresolver/resolver.go

This file has not been changed.

lexicons/issue/comment.json

This file has not been changed.

lexicons/issue/issue.json

This file has not been changed.

lexicons/pulls/comment.json

This file has not been changed.

lexicons/pulls/pull.json

This file has not been changed.

History

13 rounds 0 comments
sign up or login to add to the discussion
1 commit
expand
appview,lexicons: atprotate the mentions & references
3/3 failed
expand
expand 0 comments
pull request successfully merged
1 commit
expand
appview,lexicons: atprotate the mentions & references
1/3 failed, 2/3 running
expand
expand 0 comments
1 commit
expand
appview,lexicons: atprotate the mentions & references
3/3 success
expand
expand 0 comments
1 commit
expand
appview,lexicons: atprotate the mentions & references
3/3 success
expand
expand 0 comments
1 commit
expand
appview,lexicons: atprotate the mentions & references
3/3 success
expand
expand 0 comments
1 commit
expand
appview,lexicons: atprotate the mentions & references
3/3 success
expand
expand 0 comments
1 commit
expand
appview,lexicons: atprotate the mentions & references
3/3 success
expand
expand 0 comments
1 commit
expand
appview,lexicons: atprotate the mentions & references
3/3 success
expand
expand 0 comments
1 commit
expand
appview,lexicons: atprotate the mentions & references
3/3 success
expand
expand 0 comments
1 commit
expand
appview,lexicons: atprotate the mentions & references
3/3 failed
expand
expand 0 comments
1 commit
expand
appview,lexicons: atprotate the mentions & references
1/3 failed, 2/3 timeout
expand
expand 0 comments
1 commit
expand
appview,lexicons: atprotate the mentions & references
1/3 failed, 2/3 timeout
expand
expand 0 comments
1 commit
expand
appview,lexicons: atprotate the mentions & references
3/3 success
expand
expand 0 comments