home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

6 rows where issue = 718723543 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 6

issue 1

  • Add Link: pagination HTTP headers · 6 ✖

author_association 1

  • OWNER 6
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
706631006 https://github.com/simonw/datasette/issues/1014#issuecomment-706631006 https://api.github.com/repos/simonw/datasette/issues/1014 MDEyOklzc3VlQ29tbWVudDcwNjYzMTAwNg== simonw 9599 2020-10-11T00:36:43Z 2020-10-11T00:36:43Z OWNER

Demo using paginate-json: % paginate-json 'https://latest.datasette.io/fixtures/compound_three_primary_keys.json?_shape=array' | jq '. | length' https://latest.datasette.io/fixtures/compound_three_primary_keys.json?_shape=array http://latest.datasette.io/fixtures/compound_three_primary_keys.json?_shape=array&_next=a%2Cd%2Cv http://latest.datasette.io/fixtures/compound_three_primary_keys.json?_shape=array&_next=a%2Ch%2Cr http://latest.datasette.io/fixtures/compound_three_primary_keys.json?_shape=array&_next=a%2Cl%2Cn http://latest.datasette.io/fixtures/compound_three_primary_keys.json?_shape=array&_next=a%2Cp%2Cj http://latest.datasette.io/fixtures/compound_three_primary_keys.json?_shape=array&_next=a%2Ct%2Cf http://latest.datasette.io/fixtures/compound_three_primary_keys.json?_shape=array&_next=a%2Cx%2Cb http://latest.datasette.io/fixtures/compound_three_primary_keys.json?_shape=array&_next=b%2Ca%2Cx http://latest.datasette.io/fixtures/compound_three_primary_keys.json?_shape=array&_next=b%2Ce%2Ct http://latest.datasette.io/fixtures/compound_three_primary_keys.json?_shape=array&_next=b%2Ci%2Cp http://latest.datasette.io/fixtures/compound_three_primary_keys.json?_shape=array&_next=b%2Cm%2Cl 1001 New documentation: https://docs.datasette.io/en/latest/json_api.html#pagination

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Add Link: pagination HTTP headers 718723543  
706627035 https://github.com/simonw/datasette/issues/1014#issuecomment-706627035 https://api.github.com/repos/simonw/datasette/issues/1014 MDEyOklzc3VlQ29tbWVudDcwNjYyNzAzNQ== simonw 9599 2020-10-10T23:50:40Z 2020-10-10T23:50:40Z OWNER

First example page to add this to: ?_shape=array, e.g. https://latest.datasette.io/fixtures/compound_three_primary_keys.json?_shape=array

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Add Link: pagination HTTP headers 718723543  
706626971 https://github.com/simonw/datasette/issues/1014#issuecomment-706626971 https://api.github.com/repos/simonw/datasette/issues/1014 MDEyOklzc3VlQ29tbWVudDcwNjYyNjk3MQ== simonw 9599 2020-10-10T23:49:57Z 2020-10-10T23:49:57Z OWNER

I won't offer a total-number header. That's expensive to calculate - no need to calculate it unless it's explicitly asked for.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Add Link: pagination HTTP headers 718723543  
706626934 https://github.com/simonw/datasette/issues/1014#issuecomment-706626934 https://api.github.com/repos/simonw/datasette/issues/1014 MDEyOklzc3VlQ29tbWVudDcwNjYyNjkzNA== simonw 9599 2020-10-10T23:49:25Z 2020-10-10T23:49:25Z OWNER

I'm just going to implement the 'next' one.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Add Link: pagination HTTP headers 718723543  
706626913 https://github.com/simonw/datasette/issues/1014#issuecomment-706626913 https://api.github.com/repos/simonw/datasette/issues/1014 MDEyOklzc3VlQ29tbWVudDcwNjYyNjkxMw== simonw 9599 2020-10-10T23:49:08Z 2020-10-10T23:49:08Z OWNER

This should be documented on https://docs.datasette.io/en/stable/json_api.html

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Add Link: pagination HTTP headers 718723543  
706626796 https://github.com/simonw/datasette/issues/1014#issuecomment-706626796 https://api.github.com/repos/simonw/datasette/issues/1014 MDEyOklzc3VlQ29tbWVudDcwNjYyNjc5Ng== simonw 9599 2020-10-10T23:47:23Z 2020-10-10T23:48:26Z OWNER

The GitHub API has these:

link: <https://api.github.com/repositories/107914493/commits?page=2>; rel="next", <https://api.github.com/repositories/107914493/commits?page=46>; rel="last"

WordPress API: https://css-tricks.com/wp-json/wp/v2/posts

link: <https://css-tricks.com/wp-json/wp/v2/posts?page=2>; rel="next"

It also has these:

x-wp-total: 5162 x-wp-totalpages: 517

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Add Link: pagination HTTP headers 718723543  

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