{"html_url": "https://github.com/dogsheep/github-to-sqlite/issues/45#issuecomment-660554811", "issue_url": "https://api.github.com/repos/dogsheep/github-to-sqlite/issues/45", "id": 660554811, "node_id": "MDEyOklzc3VlQ29tbWVudDY2MDU1NDgxMQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-07-18T23:03:13Z", "updated_at": "2020-07-18T23:03:13Z", "author_association": "MEMBER", "body": "https://github-to-sqlite.dogsheep.net/github/tags now shows a `repo` column instead of a `repo_id` column.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 660429601, "label": "Fix the demo - it breaks because of the tags table change"}, "performed_via_github_app": null} {"html_url": "https://github.com/dogsheep/github-to-sqlite/issues/45#issuecomment-660554299", "issue_url": "https://api.github.com/repos/dogsheep/github-to-sqlite/issues/45", "id": 660554299, "node_id": "MDEyOklzc3VlQ29tbWVudDY2MDU1NDI5OQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-07-18T22:58:24Z", "updated_at": "2020-07-18T23:02:52Z", "author_association": "MEMBER", "body": "Deploying the fixed version like this:\r\n```\r\n$ gcloud config set run/region us-central1\r\n$ gcloud config set project datasette-222320\r\n$ datasette publish cloudrun /tmp/github.db \\\r\n -m demo-metadata.json \\\r\n --service github-to-sqlite \\\r\n --install=py-gfm \\\r\n --install='datasette-search-all>=0.3' \\\r\n --install='datasette-render-markdown>=1.1.2' \\\r\n --install=datasette-pretty-json \\\r\n --install=datasette-json-html \\\r\n --install=datasette-vega\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 660429601, "label": "Fix the demo - it breaks because of the tags table change"}, "performed_via_github_app": null} {"html_url": "https://github.com/dogsheep/github-to-sqlite/issues/45#issuecomment-660554162", "issue_url": "https://api.github.com/repos/dogsheep/github-to-sqlite/issues/45", "id": 660554162, "node_id": "MDEyOklzc3VlQ29tbWVudDY2MDU1NDE2Mg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-07-18T22:56:58Z", "updated_at": "2020-07-18T22:56:58Z", "author_association": "MEMBER", "body": "Manually fixing the database:\r\n```\r\n$ wget 'https://github-to-sqlite.dogsheep.net/github.db'\r\n--2020-07-18 15:52:33-- https://github-to-sqlite.dogsheep.net/github.db\r\nResolving github-to-sqlite.dogsheep.net (github-to-sqlite.dogsheep.net)... 172.217.5.115\r\nConnecting to github-to-sqlite.dogsheep.net (github-to-sqlite.dogsheep.net)|172.217.5.115|:443... connected.\r\nHTTP request sent, awaiting response... 200 OK\r\nLength: 14626816 (14M) [application/octet-stream]\r\nSaving to: \u2018github.db\u2019\r\n\r\ngithub.db 100%[============================================================================>] 13.95M 1.22MB/s in 18s \r\n\r\n2020-07-18 15:52:53 (773 KB/s) - \u2018github.db\u2019 saved [14626816/14626816]\r\n\r\n$ sqlite3 github.db \r\nSQLite version 3.28.0 2019-04-15 14:49:49\r\nEnter \".help\" for usage hints.\r\nsqlite> drop table tags;\r\nsqlite> ^D\r\n$ github-to-sqlite tags github.db simonw/datasette simonw/sqlite-utils dogsheep/healthkit-to-sqlite dogsheep/swarm-to-sqlite dogsheep/twitter-to-sqlite dogsheep/inaturalist-to-sqlite dogsheep/google-takeout-to-sqlite dogsheep/github-to-sqlite dogsheep/genome-to-sqlite dogsheep/pocket-to-sqlite dogsheep/hacker-news-to-sqlite dogsheep/dogsheep-photos \r\n$ sqlite-utils tables github.db --counts\r\n[{\"table\": \"users\", \"count\": 4048},\r\n {\"table\": \"repos\", \"count\": 210},\r\n ...\r\n {\"table\": \"stars\", \"count\": 4140},\r\n {\"table\": \"tags\", \"count\": 188}]\r\n$ sqlite-utils rows github.db tags \r\n[{\"repo\": 107914493, \"name\": \"0.45\", \"sha\": \"f1f581b7ffcd5d8f3ae6c1c654d813a6641410eb\"},\r\n {\"repo\": 107914493, \"name\": \"0.45a5\", \"sha\": \"676bb64c877d73f8ff496cef4632f5a8a5a9283c\"},\r\n ...\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 660429601, "label": "Fix the demo - it breaks because of the tags table change"}, "performed_via_github_app": null} {"html_url": "https://github.com/dogsheep/github-to-sqlite/issues/45#issuecomment-660553711", "issue_url": "https://api.github.com/repos/dogsheep/github-to-sqlite/issues/45", "id": 660553711, "node_id": "MDEyOklzc3VlQ29tbWVudDY2MDU1MzcxMQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-07-18T22:52:16Z", "updated_at": "2020-07-18T22:52:16Z", "author_association": "MEMBER", "body": "I think the best fix is to download the `github.db` database, manually fix it and then manually deploy it to Cloud Run from my laptop.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 660429601, "label": "Fix the demo - it breaks because of the tags table change"}, "performed_via_github_app": null} {"html_url": "https://github.com/dogsheep/github-to-sqlite/issues/45#issuecomment-660553646", "issue_url": "https://api.github.com/repos/dogsheep/github-to-sqlite/issues/45", "id": 660553646, "node_id": "MDEyOklzc3VlQ29tbWVudDY2MDU1MzY0Ng==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-07-18T22:51:41Z", "updated_at": "2020-07-18T22:51:41Z", "author_association": "MEMBER", "body": "I could fix this by putting `REFRESH_DB` in a commit message:\r\n\r\nhttps://github.com/dogsheep/github-to-sqlite/blob/4ae4aa6f172344b19ff3513707195ee6d2654bd4/.github/workflows/deploy-demo.yml#L41-L46\r\n\r\nBut... doing so would lose the data I've collected in https://github-to-sqlite.dogsheep.net/github/dependents?_sort_desc=first_seen_utc concerning the first time each dependent repo was spotted.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 660429601, "label": "Fix the demo - it breaks because of the tags table change"}, "performed_via_github_app": null}