Monorepo for Tangled tangled.org

appview: replace PullComment to Comment #1273

open opened by boltless.me targeting master from sl/comment

Including db migration to migrate issue_comments and pull_comments to unified comments table.

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

Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.pull/3mimbhgiqc722
+41 -41
Interdiff #5 #6
appview/db/comments.go

This file has not been changed.

+41 -41
appview/db/db.go
··· 1368 1368 return err 1369 1369 }) 1370 1370 1371 + return &DB{ 1372 + db, 1373 + logger, 1374 + 1375 + 1376 + 1377 + 1378 + 1379 + 1380 + 1381 + 1382 + 1383 + 1384 + 1385 + 1386 + 1387 + 1388 + 1389 + 1390 + 1391 + 1392 + 1393 + 1394 + 1395 + 1396 + 1397 + 1398 + 1399 + 1400 + 1401 + 1402 + 1403 + 1404 + 1405 + 1406 + 1407 + 1408 + 1409 + return err 1410 + }) 1411 + 1371 1412 orm.RunMigration(conn, logger, "add-comments-table", func(tx *sql.Tx) error { 1372 1413 _, err := tx.Exec(` 1373 1414 drop table if exists comments; ··· 1464 1505 return err 1465 1506 }) 1466 1507 1467 - return &DB{ 1468 - db, 1469 - logger, 1470 - 1471 - 1472 - 1473 - 1474 - 1475 - 1476 - 1477 - 1478 - 1479 - 1480 - 1481 - 1482 - 1483 - 1484 - 1485 - 1486 - 1487 - 1488 - 1489 - 1490 - 1491 - 1492 - 1493 - 1494 - 1495 - 1496 - 1497 - 1498 - 1499 - 1500 - 1501 - 1502 - 1503 - 1504 - 1505 - return err 1506 - }) 1507 - 1508 1508 return &DB{ 1509 1509 db, 1510 1510 logger,
appview/db/pulls.go

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

appview/db/reference.go

This file has not been changed.

appview/ingester.go

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

appview/models/comment.go

This file has not been changed.

appview/models/pull.go

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

appview/notify/db/db.go

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

appview/notify/logging/notifier.go

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

appview/notify/merged_notifier.go

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

appview/notify/notifier.go

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

appview/notify/posthog/notifier.go

This file has not been changed.

appview/oauth/scopes.go

This file has not been changed.

appview/pages/templates/repo/pulls/pull.html

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

appview/pulls/pulls.go

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

appview/state/state.go

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

History

10 rounds 8 comments
sign up or login to add to the discussion
1 commit
expand
appview: replace PullComment to Comment
3/3 failed
expand
no conflicts, ready to merge
expand 0 comments
1 commit
expand
appview: replace PullComment to Comment
3/3 failed
expand
expand 0 comments
1 commit
expand
appview: replace PullComment to Comment
3/3 failed
expand
expand 0 comments
1 commit
expand
appview: replace PullComment to Comment
3/3 failed
expand
expand 0 comments
1 commit
expand
appview: replace PullComment to Comment
3/3 failed
expand
expand 0 comments
1 commit
expand
appview: replace PullComment to Comment
3/3 failed
expand
expand 0 comments
1 commit
expand
appview: replace PullComment to Comment
3/3 failed
expand
expand 2 comments

appview/models/comment.go:144 won't this always be non-nil, which means issue comments might get a pull round in the record?

appview/ingester.go:1073 maybe this should resolve mentions from the original instead of processed

1 commit
expand
appview: replace PullComment to Comment
3/3 failed
expand
expand 6 comments

appview/db/reference.go:137 is this supposed to be subject_uri as per the db?

Good spot! I completely missed it. Thanks

there's that one instance and a couple others I think

appview/ingester.go:1036 we could make a notification in this function right? :p

appview/db/comments.go:243 I think this should be before the rows loop, maybe

we could make a notification in this function right? :p

yeah, I was going to introduce that after #1275 and forgot to do that.

I think this should be before the rows loop, maybe

good spot. will fix

1 commit
expand
appview: replace PullComment to Comment
3/3 failed
expand
expand 0 comments
1 commit
expand
appview: replace PullComment to Comment
3/3 failed
expand
expand 0 comments