home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 400229984 sorted by updated_at descending

✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 2

  • simonw 2
  • dazzag24 1

author_association 2

  • OWNER 2
  • NONE 1

issue 1

  • How to pass configuration to plugins? · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
455520561 https://github.com/simonw/datasette/issues/401#issuecomment-455520561 https://api.github.com/repos/simonw/datasette/issues/401 MDEyOklzc3VlQ29tbWVudDQ1NTUyMDU2MQ== dazzag24 1055831 2019-01-18T11:48:13Z 2019-01-18T11:48:13Z NONE

Thanks. I'll take a look at your changes. I must admit I was struggling to see how to pass info from the python code in init.py into the javascript document.addEventListener function.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
How to pass configuration to plugins? 400229984  
455445069 https://github.com/simonw/datasette/issues/401#issuecomment-455445069 https://api.github.com/repos/simonw/datasette/issues/401 MDEyOklzc3VlQ29tbWVudDQ1NTQ0NTA2OQ== simonw 9599 2019-01-18T06:49:07Z 2019-01-18T06:49:07Z OWNER

I've released a new version of the datasette-cluster-map plugin to illustrate how plugin configuration can work: https://github.com/simonw/datasette-cluster-map/commit/fcc86c450e3df3e6b81c41f31df458923181527a

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
How to pass configuration to plugins? 400229984  
455230501 https://github.com/simonw/datasette/issues/401#issuecomment-455230501 https://api.github.com/repos/simonw/datasette/issues/401 MDEyOklzc3VlQ29tbWVudDQ1NTIzMDUwMQ== simonw 9599 2019-01-17T16:12:59Z 2019-01-17T16:12:59Z OWNER

Datasette-cluster-map doesn't use the new plugin configuration mechanism yet - it really should!

The best example of how to use this mechanism right now is embedded in the Datasette unit tests:

https://github.com/simonw/datasette/blob/b7257a21bf3dfa7353980f343c83a616da44daa7/tests/fixtures.py#L266-L270

https://github.com/simonw/datasette/blob/b7257a21bf3dfa7353980f343c83a616da44daa7/tests/test_plugins.py#L139-L145

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
How to pass configuration to plugins? 400229984  

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