Monorepo for Tangled tangled.org

appview: add issue search endpoint #496

merged opened by boltless.me targeting master from boltless.me/core: feat/search
Labels
enhancement
assignee

None yet.

Participants 2
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.pull/3lwecnvoz5422
+2 -2
Interdiff #12 #13
appview/db/issues.go

This file has not been changed.

+2 -2
appview/issues/issues.go
··· 798 798 l.Error("failed to search for issues", "err", err) 799 799 return 800 800 } 801 - l.Debug("searched issues with indexer", "res.Hits", res.Hits) 802 801 ids = res.Hits 802 + l.Debug("searched issues with indexer", "count", len(ids)) 803 803 } else { 804 804 ids, err = db.GetIssueIDs(rp.db, searchOpts) 805 805 if err != nil { 806 806 l.Error("failed to search for issues", "err", err) 807 807 return 808 808 } 809 - l.Debug("indexed all issues from the db", "ids", ids) 809 + l.Debug("indexed all issues from the db", "count", len(ids)) 810 810 } 811 811 812 812 issues, err := db.GetIssues(
appview/pages/templates/repo/issues/issues.html

This file has not been changed.

History

14 rounds 5 comments
sign up or login to add to the discussion
1 commit
expand
appview: add issue search endpoint
expand 0 comments
pull request successfully merged
1 commit
expand
appview: add issue search endpoint
expand 0 comments
1 commit
expand
appview: add issue search endpoint
expand 0 comments
1 commit
expand
appview: add issue search endpoint
expand 0 comments
1 commit
expand
appview: add issue search endpoint
expand 0 comments
1 commit
expand
appview: add issue search endpoint
expand 0 comments
1 commit
expand
appview: add issue search endpoint
expand 0 comments
1 commit
expand
appview: add issue search endpoint
expand 0 comments
1 commit
expand
appview: add issue search endpoint
expand 3 comments

do we need the log here? i believe that log message should be changed atleast because indexing does not occur there.

I can change the wording a bit. The intention was to log the list of issue ids gathered from one of two methods (indexer/db)

1 commit
expand
appview: add issue search endpoint
expand 0 comments
1 commit
expand
appview: add issue search endpoint
expand 0 comments
1 commit
expand
appview: add issue search endpoint
expand 1 comment
1 commit
expand
appview: add issue search endpoint
expand 0 comments
1 commit
expand
appview: add issue search endpoint
expand 1 comment

Indexer mappings/tokenization rules have some room to be improved, but this should be enough as a MVP for now.