home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

8 rows where issue = 603295970 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 8

issue 1

  • Visually distinguish integer and text columns · 8 ✖

author_association 1

  • OWNER 8
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
630323870 https://github.com/simonw/datasette/issues/729#issuecomment-630323870 https://api.github.com/repos/simonw/datasette/issues/729 MDEyOklzc3VlQ29tbWVudDYzMDMyMzg3MA== simonw 9599 2020-05-18T17:20:02Z 2020-05-18T17:20:02Z OWNER

Deployed here: https://covid-19.datasettes.com/covid/economist_excess_deaths - and it helped me spot a bug! The floating point numbers there were being treated as strings:

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Visually distinguish integer and text columns 603295970  
629050775 https://github.com/simonw/datasette/issues/729#issuecomment-629050775 https://api.github.com/repos/simonw/datasette/issues/729 MDEyOklzc3VlQ29tbWVudDYyOTA1MDc3NQ== simonw 9599 2020-05-15T06:17:12Z 2020-05-15T06:17:12Z OWNER

I don't like how the column headers themselves are no longer black in mobile view.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Visually distinguish integer and text columns 603295970  
629043480 https://github.com/simonw/datasette/issues/729#issuecomment-629043480 https://api.github.com/repos/simonw/datasette/issues/729 MDEyOklzc3VlQ29tbWVudDYyOTA0MzQ4MA== simonw 9599 2020-05-15T05:55:44Z 2020-05-15T05:55:44Z OWNER

Live demo: https://latest.datasette.io/fixtures/sortable

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Visually distinguish integer and text columns 603295970  
629042437 https://github.com/simonw/datasette/issues/729#issuecomment-629042437 https://api.github.com/repos/simonw/datasette/issues/729 MDEyOklzc3VlQ29tbWVudDYyOTA0MjQzNw== simonw 9599 2020-05-15T05:52:39Z 2020-05-15T05:52:39Z OWNER

type-pk is a more accurate name than type-link - since people might assume that type-link refers to columns containing a link or a URL or similar.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Visually distinguish integer and text columns 603295970  
629033753 https://github.com/simonw/datasette/issues/729#issuecomment-629033753 https://api.github.com/repos/simonw/datasette/issues/729 MDEyOklzc3VlQ29tbWVudDYyOTAzMzc1Mw== simonw 9599 2020-05-15T05:21:42Z 2020-05-15T05:21:51Z OWNER

I'm going to make all integers AND floats show up as #666666.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Visually distinguish integer and text columns 603295970  
629033619 https://github.com/simonw/datasette/issues/729#issuecomment-629033619 https://api.github.com/repos/simonw/datasette/issues/729 MDEyOklzc3VlQ29tbWVudDYyOTAzMzYxOQ== simonw 9599 2020-05-15T05:21:17Z 2020-05-15T05:21:30Z OWNER

Turns out 1.0 and 2 stored in a float column already displays like that: echo '[{"foo": 1.0, "bar": 1}, {"foo": 2, "bar": 2}]' | sqlite-utils insert /tmp/db.db t -

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Visually distinguish integer and text columns 603295970  
629032619 https://github.com/simonw/datasette/issues/729#issuecomment-629032619 https://api.github.com/repos/simonw/datasette/issues/729 MDEyOklzc3VlQ29tbWVudDYyOTAzMjYxOQ== simonw 9599 2020-05-15T05:17:53Z 2020-05-15T05:18:29Z OWNER

I like the gray. The purple is a bit confusing.

I could have both integers and floats show up as gray? The floating point should help show which is which.

Maybe I could default floating point columns with integer values in them to 11.0 just to make it clear that they are floats?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Visually distinguish integer and text columns 603295970  
629032425 https://github.com/simonw/datasette/issues/729#issuecomment-629032425 https://api.github.com/repos/simonw/datasette/issues/729 MDEyOklzc3VlQ29tbWVudDYyOTAzMjQyNQ== simonw 9599 2020-05-15T05:17:09Z 2020-05-15T05:17:39Z OWNER

Not sure the best way to do this. Here's an example using very subtle colour changes - but I'm worried it's not at all discoverable:

That's with #4c0077 for floats and #666666 for integers.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Visually distinguish integer and text columns 603295970  

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