home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

5 rows where issue = 600583271 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 5

issue 1

  • Custom CSS class on body for styling canned queries · 5 ✖

author_association 1

  • OWNER 5
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
614283842 https://github.com/simonw/datasette/issues/727#issuecomment-614283842 https://api.github.com/repos/simonw/datasette/issues/727 MDEyOklzc3VlQ29tbWVudDYxNDI4Mzg0Mg== simonw 9599 2020-04-15T21:14:57Z 2020-04-15T21:14:57Z OWNER

https://datasette.readthedocs.io/en/latest/custom_templates.html#css-classes-on-the-body has the updated documentation.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Custom CSS class on body for styling canned queries 600583271  
614282980 https://github.com/simonw/datasette/issues/727#issuecomment-614282980 https://api.github.com/repos/simonw/datasette/issues/727 MDEyOklzc3VlQ29tbWVudDYxNDI4Mjk4MA== simonw 9599 2020-04-15T21:13:00Z 2020-04-15T21:13:00Z OWNER

https://latest.datasette.io/fixtures/neighborhood_search now has the following: ```html

<body class="query db-fixtures query-neighborhood_search"> ```
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Custom CSS class on body for styling canned queries 600583271  
614278078 https://github.com/simonw/datasette/issues/727#issuecomment-614278078 https://api.github.com/repos/simonw/datasette/issues/727 MDEyOklzc3VlQ29tbWVudDYxNDI3ODA3OA== simonw 9599 2020-04-15T21:01:44Z 2020-04-15T21:01:44Z OWNER

And here's the test: https://github.com/simonw/datasette/blob/d349d57cdf3d577afb62bdf784af342a4d5be660/tests/test_html.py#L433-L456

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Custom CSS class on body for styling canned queries 600583271  
614276988 https://github.com/simonw/datasette/issues/727#issuecomment-614276988 https://api.github.com/repos/simonw/datasette/issues/727 MDEyOklzc3VlQ29tbWVudDYxNDI3Njk4OA== simonw 9599 2020-04-15T20:59:17Z 2020-04-15T20:59:45Z OWNER

Relevant code:

https://github.com/simonw/datasette/blob/d349d57cdf3d577afb62bdf784af342a4d5be660/datasette/templates/query.html#L19

Compare with:

https://github.com/simonw/datasette/blob/d349d57cdf3d577afb62bdf784af342a4d5be660/datasette/templates/table.html#L17

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Custom CSS class on body for styling canned queries 600583271  
614276522 https://github.com/simonw/datasette/issues/727#issuecomment-614276522 https://api.github.com/repos/simonw/datasette/issues/727 MDEyOklzc3VlQ29tbWVudDYxNDI3NjUyMg== simonw 9599 2020-04-15T20:58:14Z 2020-04-15T20:58:45Z OWNER

Compare with this table page https://latest.datasette.io/fixtures/complex_foreign_keys which has: ```html

<body class="table db-fixtures table-complex_foreign_keys"> ``` So in the above example the extra class should be `query-neighborhood_search`.
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Custom CSS class on body for styling canned queries 600583271  

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