Monorepo for Tangled โ€” https://tangled.org

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

0
by boltless.me 3 comments
expand 1 commit
appview/db: split star subjects

bit confusing that the repo_at col of the stars table can now refer to anything. can we rename that column too? to something more generic like target?

Actually that was my first intention, renaming repo_at to subject_at. I just didn't do that here because I was afraid to find all .repo_at usages in raw sql queries. And I thought that will also harder to review without tests.

Do you think it is worth renaming? If so, I can do that.

IIUC we'd only need to find repo_at for all queries that mention the "stars" table. searching for from stars might cover that. I'd recommend that we do fix this!

sign up or login to add to the discussion
1
by boltless.me 0 comments
expand 1 commit
appview/db: split star subjects
2
by boltless.me 0 comments
expand 1 commit
appview/db: split star subjects
3
by boltless.me 0 comments
expand 1 commit
appview/db: split star subjects
4
by boltless.me 0 comments
expand 1 commit
appview/db: split star subjects
Labels
refactor
assignee

None yet.

Participants 2
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.pull/3m5w3y3yx7k22