home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

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

  • Support SSL/TLS directly · 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
1356639873 https://github.com/simonw/datasette/issues/1221#issuecomment-1356639873 https://api.github.com/repos/simonw/datasette/issues/1221 IC_kwDOBm6k_c5Q3K6B simonw 9599 2022-12-18T02:39:04Z 2022-12-18T02:39:04Z OWNER

I ended up moving this test out of Python and into a bash script here: https://github.com/simonw/datasette/commit/d1d369456a7319b9de39175605568cbc9b852478

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Support SSL/TLS directly 806849424  
777901052 https://github.com/simonw/datasette/issues/1221#issuecomment-777901052 https://api.github.com/repos/simonw/datasette/issues/1221 MDEyOklzc3VlQ29tbWVudDc3NzkwMTA1Mg== simonw 9599 2021-02-12T01:09:54Z 2021-02-12T01:09:54Z OWNER

I also tested this manually. I generated certificate files like so:

cd /tmp
python -m trustme

This created /tmp/server.pem, /tmp/client.pem and /tmp/server.key

Then I started Datasette like this:

datasette --memory --ssl-keyfile=/tmp/server.key --ssl-certfile=/tmp/server.pem

And exercise it using curl like so:

/tmp % curl --cacert /tmp/client.pem 'https://localhost:8001/_memory.json'
{"database": "_memory", "path": "/_memory", "size": 0, "tables": [], "hidden_count": 0, "views": [], "queries": [],
"private": false, "allow_execute_sql": true, "query_ms": 0.8843200000114848}

Note that without the --cacert option I get an error:

``` /tmp % curl 'https://localhost:8001/_memory.json' curl: (60) SSL certificate problem: Invalid certificate chain More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Support SSL/TLS directly 806849424  
777887190 https://github.com/simonw/datasette/issues/1221#issuecomment-777887190 https://api.github.com/repos/simonw/datasette/issues/1221 MDEyOklzc3VlQ29tbWVudDc3Nzg4NzE5MA== simonw 9599 2021-02-12T00:29:18Z 2021-02-12T00:29:18Z OWNER

I can use this recipe to start a datasette server in a sub-process during the pytest run and exercise it with real HTTP requests: https://til.simonwillison.net/pytest/subprocess-server

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Support SSL/TLS directly 806849424  
777883452 https://github.com/simonw/datasette/issues/1221#issuecomment-777883452 https://api.github.com/repos/simonw/datasette/issues/1221 MDEyOklzc3VlQ29tbWVudDc3Nzg4MzQ1Mg== simonw 9599 2021-02-12T00:19:30Z 2021-02-12T00:19:40Z OWNER

Uvicorn supports these options: https://www.uvicorn.org/#command-line-options ``` --ssl-keyfile TEXT SSL key file --ssl-certfile TEXT SSL certificate file --ssl-keyfile-password TEXT SSL keyfile password --ssl-version INTEGER SSL version to use (see stdlib ssl module's) [default: 2]

--ssl-cert-reqs INTEGER Whether client certificate is required (see stdlib ssl module's) [default: 0]

--ssl-ca-certs TEXT CA certificates file --ssl-ciphers TEXT Ciphers to use (see stdlib ssl module's) [default: TLSv1] `` For the moment I'm going to support just--ssl-keyfileand--ssl-certfileas arguments todatasette serve`. I'll add other options if people ask for them.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Support SSL/TLS directly 806849424  

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