home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 314506446, "updated_at" is on date 2018-04-16 and user = 9599 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 · 3 ✖

issue 1

  • Ability for plugins to define extra JavaScript and CSS · 3 ✖

author_association 1

  • OWNER 3
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
381612585 https://github.com/simonw/datasette/issues/214#issuecomment-381612585 https://api.github.com/repos/simonw/datasette/issues/214 MDEyOklzc3VlQ29tbWVudDM4MTYxMjU4NQ== simonw 9599 2018-04-16T14:10:16Z 2018-04-16T14:10:16Z OWNER

resource_stream returns a file-like object which may be better for serving from Sanic.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Ability for plugins to define extra JavaScript and CSS 314506446  
381491707 https://github.com/simonw/datasette/issues/214#issuecomment-381491707 https://api.github.com/repos/simonw/datasette/issues/214 MDEyOklzc3VlQ29tbWVudDM4MTQ5MTcwNw== simonw 9599 2018-04-16T06:21:23Z 2018-04-16T06:21:23Z OWNER

This looks like a good example: https://github.com/funkey/nyroglancer/commit/d4438ab42171360b2b8e9020f672846dd70c8d80

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Ability for plugins to define extra JavaScript and CSS 314506446  
381490361 https://github.com/simonw/datasette/issues/214#issuecomment-381490361 https://api.github.com/repos/simonw/datasette/issues/214 MDEyOklzc3VlQ29tbWVudDM4MTQ5MDM2MQ== simonw 9599 2018-04-16T06:13:02Z 2018-04-16T06:13:02Z OWNER

Packaging JS and CSS in a pip installable wheel is fiddly but possible. http://peak.telecommunity.com/DevCenter/PythonEggs#accessing-package-resources

from pkg_resources import resource_string
foo_config = resource_string(__name__, 'foo.conf')
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Ability for plugins to define extra JavaScript and CSS 314506446  

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 431.415ms · About: github-to-sqlite