home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

5 rows where issue = 660429601 sorted by updated_at descending

✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 1

  • simonw 5

issue 1

  • Fix the demo - it breaks because of the tags table change · 5 ✖

author_association 1

  • MEMBER 5
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
660554811 https://github.com/dogsheep/github-to-sqlite/issues/45#issuecomment-660554811 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/45 MDEyOklzc3VlQ29tbWVudDY2MDU1NDgxMQ== simonw 9599 2020-07-18T23:03:13Z 2020-07-18T23:03:13Z MEMBER

https://github-to-sqlite.dogsheep.net/github/tags now shows a repo column instead of a repo_id column.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Fix the demo - it breaks because of the tags table change 660429601  
660554299 https://github.com/dogsheep/github-to-sqlite/issues/45#issuecomment-660554299 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/45 MDEyOklzc3VlQ29tbWVudDY2MDU1NDI5OQ== simonw 9599 2020-07-18T22:58:24Z 2020-07-18T23:02:52Z MEMBER

Deploying the fixed version like this: $ gcloud config set run/region us-central1 $ gcloud config set project datasette-222320 $ datasette publish cloudrun /tmp/github.db \ -m demo-metadata.json \ --service github-to-sqlite \ --install=py-gfm \ --install='datasette-search-all>=0.3' \ --install='datasette-render-markdown>=1.1.2' \ --install=datasette-pretty-json \ --install=datasette-json-html \ --install=datasette-vega

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Fix the demo - it breaks because of the tags table change 660429601  
660554162 https://github.com/dogsheep/github-to-sqlite/issues/45#issuecomment-660554162 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/45 MDEyOklzc3VlQ29tbWVudDY2MDU1NDE2Mg== simonw 9599 2020-07-18T22:56:58Z 2020-07-18T22:56:58Z MEMBER

Manually fixing the database: ``` $ wget 'https://github-to-sqlite.dogsheep.net/github.db' --2020-07-18 15:52:33-- https://github-to-sqlite.dogsheep.net/github.db Resolving github-to-sqlite.dogsheep.net (github-to-sqlite.dogsheep.net)... 172.217.5.115 Connecting to github-to-sqlite.dogsheep.net (github-to-sqlite.dogsheep.net)|172.217.5.115|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 14626816 (14M) [application/octet-stream] Saving to: ‘github.db’

github.db 100%[============================================================================>] 13.95M 1.22MB/s in 18s

2020-07-18 15:52:53 (773 KB/s) - ‘github.db’ saved [14626816/14626816]

$ sqlite3 github.db SQLite version 3.28.0 2019-04-15 14:49:49 Enter ".help" for usage hints. sqlite> drop table tags; sqlite> ^D $ 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 $ sqlite-utils tables github.db --counts [{"table": "users", "count": 4048}, {"table": "repos", "count": 210}, ... {"table": "stars", "count": 4140}, {"table": "tags", "count": 188}] $ sqlite-utils rows github.db tags
[{"repo": 107914493, "name": "0.45", "sha": "f1f581b7ffcd5d8f3ae6c1c654d813a6641410eb"}, {"repo": 107914493, "name": "0.45a5", "sha": "676bb64c877d73f8ff496cef4632f5a8a5a9283c"}, ... ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Fix the demo - it breaks because of the tags table change 660429601  
660553711 https://github.com/dogsheep/github-to-sqlite/issues/45#issuecomment-660553711 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/45 MDEyOklzc3VlQ29tbWVudDY2MDU1MzcxMQ== simonw 9599 2020-07-18T22:52:16Z 2020-07-18T22:52:16Z MEMBER

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.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Fix the demo - it breaks because of the tags table change 660429601  
660553646 https://github.com/dogsheep/github-to-sqlite/issues/45#issuecomment-660553646 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/45 MDEyOklzc3VlQ29tbWVudDY2MDU1MzY0Ng== simonw 9599 2020-07-18T22:51:41Z 2020-07-18T22:51:41Z MEMBER

I could fix this by putting REFRESH_DB in a commit message:

https://github.com/dogsheep/github-to-sqlite/blob/4ae4aa6f172344b19ff3513707195ee6d2654bd4/.github/workflows/deploy-demo.yml#L41-L46

But... 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.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Fix the demo - it breaks because of the tags table change 660429601  

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
, [performed_via_github_app] TEXT);
CREATE INDEX [idx_issue_comments_issue]
                ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
                ON [issue_comments] ([user]);
Powered by Datasette · Queries took 19.831ms · About: github-to-sqlite
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows