home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where author_association = "OWNER", issue = 808843401 and user = 9599 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

  • --port option should validate port is between 0 and 65535 · 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
781546512 https://github.com/simonw/datasette/issues/1226#issuecomment-781546512 https://api.github.com/repos/simonw/datasette/issues/1226 MDEyOklzc3VlQ29tbWVudDc4MTU0NjUxMg== simonw 9599 2021-02-18T18:26:19Z 2021-02-18T18:26:19Z OWNER

This broke CI: https://github.com/simonw/datasette/runs/1929355965?check_suite_focus=true

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
--port option should validate port is between 0 and 65535 808843401  
781530157 https://github.com/simonw/datasette/issues/1226#issuecomment-781530157 https://api.github.com/repos/simonw/datasette/issues/1226 MDEyOklzc3VlQ29tbWVudDc4MTUzMDE1Nw== simonw 9599 2021-02-18T18:00:15Z 2021-02-18T18:00:15Z OWNER

I can use click.IntRange(min=None, max=None) for this. https://click.palletsprojects.com/en/7.x/options/#ranges - inclusive on both edges.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
--port option should validate port is between 0 and 65535 808843401  
779467451 https://github.com/simonw/datasette/issues/1226#issuecomment-779467451 https://api.github.com/repos/simonw/datasette/issues/1226 MDEyOklzc3VlQ29tbWVudDc3OTQ2NzQ1MQ== simonw 9599 2021-02-15T22:02:46Z 2021-02-15T22:02:46Z OWNER

I'm OK with the current error message shown if you try to use too low a port: datasette fivethirtyeight.db -p 800 INFO: Started server process [45511] INFO: Waiting for application startup. INFO: Application startup complete. ERROR: [Errno 13] error while attempting to bind on address ('127.0.0.1', 800): permission denied INFO: Waiting for application shutdown. INFO: Application shutdown complete.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
--port option should validate port is between 0 and 65535 808843401  
779467160 https://github.com/simonw/datasette/issues/1226#issuecomment-779467160 https://api.github.com/repos/simonw/datasette/issues/1226 MDEyOklzc3VlQ29tbWVudDc3OTQ2NzE2MA== simonw 9599 2021-02-15T22:01:53Z 2021-02-15T22:01:53Z OWNER

This check needs to happen in two places:

https://github.com/simonw/datasette/blob/9603d893b9b72653895318c9104d754229fdb146/datasette/cli.py#L222-L227

https://github.com/simonw/datasette/blob/9603d893b9b72653895318c9104d754229fdb146/datasette/cli.py#L328-L333

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
--port option should validate port is between 0 and 65535 808843401  

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