home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

17 rows where "updated_at" is on date 2018-05-28 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

issue 15

  • ?_json=foo&_json=bar query string argument 2
  • Show extra instructions with the interrupted 2
  • Idea: colour scheme based on sha256 of db 1
  • Support CSV export with a .csv extension 1
  • date, year, month and day querystring lookups 1
  • Experiment with patterns for concurrent long running queries 1
  • Easy way to block search engine crawling in robots.txt 1
  • _nocache=1 query string option for use with sort-by-random 1
  • Add more detailed API documentation to the README 1
  • Link to JSON for the list of tables 1
  • Add documentation section about SQLite extensions 1
  • apsw as alternative sqlite3 binding (for full text search) 1
  • _group_count= feature improvements 1
  • More metadata options for template authors 1
  • Ability to bundle metadata and templates inside the SQLite file 1

user 1

  • simonw 17

author_association 1

  • OWNER 17
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
376594727 https://github.com/simonw/datasette/issues/188#issuecomment-376594727 https://api.github.com/repos/simonw/datasette/issues/188 MDEyOklzc3VlQ29tbWVudDM3NjU5NDcyNw== simonw 9599 2018-03-27T16:46:49Z 2018-05-28T21:34:34Z OWNER

One point of complexity: datasette can be used to bundle multiple .db files into a single "app".

I think that's OK. We could require that the datasette_files table is present in the first database file passed on the command-line. Or we could even construct a search path and consult multiple versions of the table spread across multiple files.

That said... any configuration that corresponds to a specific table should live in the same database file as that table.

Ditto for general metadata: if we have license/source information for a specific table or database that information should be able to live in the same .db file as the data.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Ability to bundle metadata and templates inside the SQLite file 309047460  
392606418 https://github.com/simonw/datasette/issues/179#issuecomment-392606418 https://api.github.com/repos/simonw/datasette/issues/179 MDEyOklzc3VlQ29tbWVudDM5MjYwNjQxOA== simonw 9599 2018-05-28T21:32:37Z 2018-05-28T21:32:37Z OWNER

It could also be useful to allow users to import a python file containing custom functions that can that be loaded into scope and made available to custom templates.

That's now covered by the plugins mechanism - you can create plugins that define custom template functions: http://datasette.readthedocs.io/en/stable/plugins.html#prepare-jinja2-environment-env

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
More metadata options for template authors  288438570  
392606044 https://github.com/simonw/datasette/issues/144#issuecomment-392606044 https://api.github.com/repos/simonw/datasette/issues/144 MDEyOklzc3VlQ29tbWVudDM5MjYwNjA0NA== simonw 9599 2018-05-28T21:29:42Z 2018-05-28T21:29:42Z OWNER

The other major limitation of APSW is its treatment of unicode: https://rogerbinns.github.io/apsw/types.html - it tells you that it is your responsibility to ensure that TEXT columns in your SQLite database are correctly encoded.

Since Datasette is designed to work against ANY SQLite database that someone may have already created, I see that as a show-stopping limitation.

Thanks to https://github.com/coleifer/sqlite-vtfunc I now have a working mechanism for virtual tables (I've even built a demo plugin with them - https://github.com/simonw/datasette-sql-scraper ) which was the main thing that interested me about APSW.

I'm going to close this as WONTFIX - I think Python's built-in sqlite3 is good enough, and is now so firmly embedded in the project that making it pluggable would be more trouble than it's worth.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
apsw as alternative sqlite3 binding (for full text search) 276091279  
392605574 https://github.com/simonw/datasette/issues/142#issuecomment-392605574 https://api.github.com/repos/simonw/datasette/issues/142 MDEyOklzc3VlQ29tbWVudDM5MjYwNTU3NA== simonw 9599 2018-05-28T21:25:05Z 2018-05-28T21:25:05Z OWNER

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Show extra instructions with the interrupted 275917760  
392602558 https://github.com/simonw/datasette/issues/142#issuecomment-392602558 https://api.github.com/repos/simonw/datasette/issues/142 MDEyOklzc3VlQ29tbWVudDM5MjYwMjU1OA== simonw 9599 2018-05-28T20:58:59Z 2018-05-28T20:58:59Z OWNER

I'll have the error message display a link to the documentation.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Show extra instructions with the interrupted 275917760  
392602334 https://github.com/simonw/datasette/issues/97#issuecomment-392602334 https://api.github.com/repos/simonw/datasette/issues/97 MDEyOklzc3VlQ29tbWVudDM5MjYwMjMzNA== simonw 9599 2018-05-28T20:57:21Z 2018-05-28T20:57:21Z OWNER

The /.json endpoint is more of an implementation detail of the homepage at this point. A better, documented ( http://datasette.readthedocs.io/en/stable/introspection.html#inspect ) endpoint for finding all of the databases and tables is https://parlgov.datasettes.com/-/inspect.json

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Link to JSON for the list of tables  274022950  
392601478 https://github.com/simonw/datasette/issues/56#issuecomment-392601478 https://api.github.com/repos/simonw/datasette/issues/56 MDEyOklzc3VlQ29tbWVudDM5MjYwMTQ3OA== simonw 9599 2018-05-28T20:50:24Z 2018-05-28T20:50:24Z OWNER

I'm going to close this as WONTFIX for the moment. Once Plugins #14 grows the ability to add extra URL paths and views someone who needs this could build it as a plugin instead.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Easy way to block search engine crawling in robots.txt 273127443  
392601114 https://github.com/simonw/datasette/issues/38#issuecomment-392601114 https://api.github.com/repos/simonw/datasette/issues/38 MDEyOklzc3VlQ29tbWVudDM5MjYwMTExNA== simonw 9599 2018-05-28T20:47:31Z 2018-05-28T20:47:31Z OWNER

I think the way Datasette executes SQL queries in a thread pool introduced in #45 is a good solution for this ticket.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Experiment with patterns for concurrent long running queries 268462768  
392600866 https://github.com/simonw/datasette/issues/34#issuecomment-392600866 https://api.github.com/repos/simonw/datasette/issues/34 MDEyOklzc3VlQ29tbWVudDM5MjYwMDg2Ng== simonw 9599 2018-05-28T20:45:34Z 2018-05-28T20:45:42Z OWNER

This is an accidental duplicate, work is now taking place in #266

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Support CSV export with a .csv extension 268176505  
392580902 https://github.com/simonw/datasette/issues/121#issuecomment-392580902 https://api.github.com/repos/simonw/datasette/issues/121 MDEyOklzc3VlQ29tbWVudDM5MjU4MDkwMg== simonw 9599 2018-05-28T18:11:51Z 2018-05-28T18:11:51Z OWNER

Implemented in 76d11eb768e2f05f593c4d37a25280c0fcdf8fd6

Documented here: http://datasette.readthedocs.io/en/latest/json_api.html#special-json-arguments

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
?_json=foo&_json=bar query string argument  275089535  
392580715 https://github.com/simonw/datasette/issues/31#issuecomment-392580715 https://api.github.com/repos/simonw/datasette/issues/31 MDEyOklzc3VlQ29tbWVudDM5MjU4MDcxNQ== simonw 9599 2018-05-28T18:10:45Z 2018-05-28T18:10:45Z OWNER

Oops, that commit should have referenced #121

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Idea: colour scheme based on sha256 of db 268087542  
392575448 https://github.com/simonw/datasette/issues/121#issuecomment-392575448 https://api.github.com/repos/simonw/datasette/issues/121 MDEyOklzc3VlQ29tbWVudDM5MjU3NTQ0OA== simonw 9599 2018-05-28T17:33:07Z 2018-05-28T17:33:07Z OWNER

This shouldn't be a comma-separated list, it should be an argument you can pass multiple times to better match #255 and #292

Maybe ?_json=foo&_json=bar

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
?_json=foo&_json=bar query string argument  275089535  
392575160 https://github.com/simonw/datasette/issues/36#issuecomment-392575160 https://api.github.com/repos/simonw/datasette/issues/36 MDEyOklzc3VlQ29tbWVudDM5MjU3NTE2MA== simonw 9599 2018-05-28T17:30:52Z 2018-05-28T17:30:52Z OWNER

I've changed my mind about this.

"Select every record on the 3rd day of the month" doesn't strike me as an actually useful feature.

"Select every record in 2018 / in May 2018 / on 1st May 2018", if you are using the SQLite-preferred datestring format, are already supported using LIKE queries (or the startswith filter):

  • https://fivethirtyeight.datasettes.com/fivethirtyeight/inconvenient-sequel%2Fratings?timestamp__startswith=2017
  • https://fivethirtyeight.datasettes.com/fivethirtyeight/inconvenient-sequel%2Fratings?timestamp__startswith=2017-08
  • https://fivethirtyeight.datasettes.com/fivethirtyeight/inconvenient-sequel%2Fratings?timestamp__startswith=2017-08-29
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
date, year, month and day querystring lookups 268262480  
392574415 https://github.com/simonw/datasette/issues/73#issuecomment-392574415 https://api.github.com/repos/simonw/datasette/issues/73 MDEyOklzc3VlQ29tbWVudDM5MjU3NDQxNQ== simonw 9599 2018-05-28T17:25:14Z 2018-05-28T17:25:14Z OWNER

I implemented this as ?_ttl=0 in #289

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
_nocache=1 query string option for use with sort-by-random 273296178  
392574358 https://github.com/simonw/datasette/issues/79#issuecomment-392574358 https://api.github.com/repos/simonw/datasette/issues/79 MDEyOklzc3VlQ29tbWVudDM5MjU3NDM1OA== simonw 9599 2018-05-28T17:24:48Z 2018-05-28T17:24:48Z OWNER

Closing this as obsolete in favor of other issues tagged documentation.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Add more detailed API documentation to the README 273569068  
392574208 https://github.com/simonw/datasette/issues/116#issuecomment-392574208 https://api.github.com/repos/simonw/datasette/issues/116 MDEyOklzc3VlQ29tbWVudDM5MjU3NDIwOA== simonw 9599 2018-05-28T17:23:41Z 2018-05-28T17:23:41Z OWNER

I'm handling this as separate documentation sections instead, e.g. http://datasette.readthedocs.io/en/latest/spatialite.html

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Add documentation section about SQLite extensions 274884209  
392568047 https://github.com/simonw/datasette/issues/150#issuecomment-392568047 https://api.github.com/repos/simonw/datasette/issues/150 MDEyOklzc3VlQ29tbWVudDM5MjU2ODA0Nw== simonw 9599 2018-05-28T16:41:28Z 2018-05-28T16:41:28Z OWNER

Closing this as obsolete since we have facets now.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
_group_count= feature improvements 276704327  

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