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
+19 -20
Interdiff #3 #4
+19 -20
appview/db/issues.go
··· 247 247 return GetIssuesPaginated(e, pagination.FirstPage(), filters...) 248 248 } 249 249 250 - func AddIssueComment(e Execer, c models.IssueComment) (int64, error) { 251 - result, err := e.Exec( 252 - `insert into issue_comments ( 253 - 254 - 255 - 256 - 257 - 258 - 259 - 260 - 261 - 262 - 263 - 264 - 265 - 266 - 267 - return &issue, nil 268 - } 269 - 270 250 // GetIssueIDs gets list of all existing issue's IDs 271 251 func GetIssueIDs(e Execer, opts models.IssueSearchOptions) ([]int64, error) { 272 252 var ids []int64 ··· 323 303 return ids, nil 324 304 } 325 305 306 + func AddIssueComment(e Execer, c models.IssueComment) (int64, error) { 307 + result, err := e.Exec( 308 + `insert into issue_comments ( 309 + 310 + 311 + 312 + 313 + 314 + 315 + 316 + 317 + 318 + 319 + 320 + 321 + 322 + 323 + return &issue, nil 324 + } 326 325 327 326 func AddIssueComment(e Execer, c models.IssueComment) (int64, error) { 328 327 result, err := e.Exec(
appview/issues/issues.go

This file has not been changed.

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.