back interdiff of round #1 and #0

appview/db: split star subjects #824

merged
opened by boltless.me targeting master from sl/uzmtowmlwkvz

renamed starred_by_did column to did

remove foreign key constraints from repo_at column to support targetting non-ingested repository or sh.tangled.string. the column isn't renamed yet because I'm afraid to break somewhere with that rename. We really need some test code here.

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

files
appview
db
models
notify
db
posthog
pages
templates
timeline
fragments
state
ERROR
appview/db/db.go

Failed to calculate interdiff for this file.

ERROR
appview/db/star.go

Failed to calculate interdiff for this file.

ERROR
appview/db/timeline.go

Failed to calculate interdiff for this file.

ERROR
appview/ingester.go

Failed to calculate interdiff for this file.

ERROR
appview/models/star.go

Failed to calculate interdiff for this file.

ERROR
appview/notify/db/db.go

Failed to calculate interdiff for this file.

ERROR
appview/notify/posthog/notifier.go

Failed to calculate interdiff for this file.

ERROR
appview/pages/templates/timeline/fragments/timeline.html

Failed to calculate interdiff for this file.

ERROR
appview/state/profile.go

Failed to calculate interdiff for this file.

ERROR
appview/state/star.go

Failed to calculate interdiff for this file.

NEW
appview/db/repos.go
··· 208 208 209 209 starCountQuery := fmt.Sprintf( 210 210 `select 211 - repo_at, count(1) 211 + subject_at, count(1) 212 212 from stars 213 - where repo_at in (%s) 214 - group by repo_at`, 213 + where subject_at in (%s) 214 + group by subject_at`, 215 215 inClause, 216 216 ) 217 217 rows, err = e.Query(starCountQuery, args...)
NEW
appview/models/timeline.go
··· 5 5 type TimelineEvent struct { 6 6 *Repo 7 7 *Follow 8 - *Star 8 + *RepoStar 9 9 10 10 EventAt time.Time 11 11