home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where issue = 312620566 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 4

issue 1

  • Ability to apply sort on mobile in portrait mode · 4 ✖

author_association 1

  • OWNER 4
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
379936832 https://github.com/simonw/datasette/issues/199#issuecomment-379936832 https://api.github.com/repos/simonw/datasette/issues/199 MDEyOklzc3VlQ29tbWVudDM3OTkzNjgzMg== simonw 9599 2018-04-10T00:37:52Z 2018-04-10T00:37:52Z OWNER

Demo: https://fivethirtyeight.datasettes.com/fivethirtyeight-2628db9/twitter-ratio%2Fsenators?_sort_desc=replies&text__contains=bipartisan

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Ability to apply sort on mobile in portrait mode 312620566  
379936068 https://github.com/simonw/datasette/issues/199#issuecomment-379936068 https://api.github.com/repos/simonw/datasette/issues/199 MDEyOklzc3VlQ29tbWVudDM3OTkzNjA2OA== simonw 9599 2018-04-10T00:32:37Z 2018-04-10T00:32:37Z OWNER

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Ability to apply sort on mobile in portrait mode 312620566  
379833481 https://github.com/simonw/datasette/issues/199#issuecomment-379833481 https://api.github.com/repos/simonw/datasette/issues/199 MDEyOklzc3VlQ29tbWVudDM3OTgzMzQ4MQ== simonw 9599 2018-04-09T17:38:39Z 2018-04-09T17:38:39Z OWNER

Since you can't apply _sort and _sort_desc at the same time, maybe just one select box for picking the column to sort by and a boolean checkbox for "sort descending" - which then redirects to the _sort_desc= URL variant.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Ability to apply sort on mobile in portrait mode 312620566  
379833216 https://github.com/simonw/datasette/issues/199#issuecomment-379833216 https://api.github.com/repos/simonw/datasette/issues/199 MDEyOklzc3VlQ29tbWVudDM3OTgzMzIxNg== simonw 9599 2018-04-09T17:37:47Z 2018-04-09T17:37:47Z OWNER

I may do this by adding select boxes for _sort and _sort_desc to the filters UI. This would allow sorting in mobile portrait mode but would also ensure that the existing sort order is persisted if the user edits the current filters (right now sort resets when filters are applied).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Ability to apply sort on mobile in portrait mode 312620566  

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