top | item 46613938 (no title) progval | 1 month ago > immutable URL key like issue/prthey are not immutable because repositories can change URLs (renamed or moved to a different org). discuss order hn newest bob1029|1 month ago Issue #, commit hashes, etc. are still immutable in this scenario. When you rename or transfer a GitHub repository, all of these keys are preserved.What I do is store 2 tuples:Repository: (Id, Org, Repo)Issue/PR: (Repository.Id, #)Transferring or renaming a repository is an update to 1 row in this schema.
bob1029|1 month ago Issue #, commit hashes, etc. are still immutable in this scenario. When you rename or transfer a GitHub repository, all of these keys are preserved.What I do is store 2 tuples:Repository: (Id, Org, Repo)Issue/PR: (Repository.Id, #)Transferring or renaming a repository is an update to 1 row in this schema.
bob1029|1 month ago
What I do is store 2 tuples:
Repository: (Id, Org, Repo)
Issue/PR: (Repository.Id, #)
Transferring or renaming a repository is an update to 1 row in this schema.