home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

7 rows where author_association = "MEMBER" and "created_at" is on date 2020-04-21 sorted by updated_at descending

✖
✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: issue_url, created_at (date)

issue 4

  • Issues milestone column is the wrong type 2
  • Issue and milestone should have foreign key to repo 2
  • Issue comments don't appear to populate issues foreign key 2
  • Milestones should have foreign key to creator and repo 1

user 1

  • simonw 7

author_association 1

  • MEMBER · 7 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
617369247 https://github.com/dogsheep/github-to-sqlite/issues/32#issuecomment-617369247 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/32 MDEyOklzc3VlQ29tbWVudDYxNzM2OTI0Nw== simonw 9599 2020-04-21T19:33:03Z 2020-04-21T19:33:03Z MEMBER

Caused by #31.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Issue comments don't appear to populate issues foreign key 604222295  
617364956 https://github.com/dogsheep/github-to-sqlite/issues/32#issuecomment-617364956 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/32 MDEyOklzc3VlQ29tbWVudDYxNzM2NDk1Ng== simonw 9599 2020-04-21T19:24:45Z 2020-04-21T19:24:45Z MEMBER

That's because I just broke this code:

https://github.com/dogsheep/github-to-sqlite/blob/2cf75a0a036719eb7e57fdc7c5c2ea0f4c26978a/github_to_sqlite/utils.py#L131-L139

It expects the repo column to be simonw/datasette but it's now an ID instead.

I should add a test for this as part of the fix.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Issue comments don't appear to populate issues foreign key 604222295  
617348174 https://github.com/dogsheep/github-to-sqlite/issues/31#issuecomment-617348174 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/31 MDEyOklzc3VlQ29tbWVudDYxNzM0ODE3NA== simonw 9599 2020-04-21T18:50:29Z 2020-04-21T18:50:29Z MEMBER

Since this represents a breaking schema change for anyone running SQL queries against these tables, I'm going to do a major version bump to 2.0 when I release this.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Issue and milestone should have foreign key to repo 603624862  
616884647 https://github.com/dogsheep/github-to-sqlite/issues/31#issuecomment-616884647 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/31 MDEyOklzc3VlQ29tbWVudDYxNjg4NDY0Nw== simonw 9599 2020-04-21T00:49:16Z 2020-04-21T00:50:20Z MEMBER

The API just gives us the repository_url: https://api.github.com/repos/simonw/datasette/issues

We currently turn that into a simonw/datasette string here: https://github.com/dogsheep/github-to-sqlite/blob/e0e8d8caa9657b04bfb8a2cf16c9b580f38b1805/github_to_sqlite/utils.py#L43-L46

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Issue and milestone should have foreign key to repo 603624862  
616883726 https://github.com/dogsheep/github-to-sqlite/issues/30#issuecomment-616883726 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/30 MDEyOklzc3VlQ29tbWVudDYxNjg4MzcyNg== simonw 9599 2020-04-21T00:45:23Z 2020-04-21T00:45:23Z MEMBER

Demo of fix: https://github-to-sqlite.dogsheep.net/github/issues?assignee__notblank=1&milestone__notblank=1

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Issues milestone column is the wrong type 603618244  
616883275 https://github.com/dogsheep/github-to-sqlite/issues/29#issuecomment-616883275 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/29 MDEyOklzc3VlQ29tbWVudDYxNjg4MzI3NQ== simonw 9599 2020-04-21T00:43:28Z 2020-04-21T00:43:28Z MEMBER

I'm copying repo from issue, which surprisingly is a string, not an integer ID.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Milestones should have foreign key to creator and repo 603617013  
616879753 https://github.com/dogsheep/github-to-sqlite/issues/30#issuecomment-616879753 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/30 MDEyOklzc3VlQ29tbWVudDYxNjg3OTc1Mw== simonw 9599 2020-04-21T00:29:29Z 2020-04-21T00:29:29Z MEMBER

assignee looks like it's the incorrect type too.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Issues milestone column is the wrong type 603618244  

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 1235.694ms · About: github-to-sqlite
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows