home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

19 rows where "updated_at" is on date 2020-03-24 and user = 9599 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: issue_url, created_at (date), updated_at (date)

issue 10

  • base_url configuration setting 6
  • Search box CSS doesn't look great on OS X Safari 3
  • latest.datasette.io is no longer updating 2
  • base_url configuration setting, refs #394 2
  • prepare_context() plugin hook 1
  • Set up a live demo Datasette instance 1
  • Quick (and uninformed and perhaps misguided) attempt to add a <base> url for hosting datasette at a particular host/URI 1
  • Release 1.0 1
  • Each plugin hook should link to example plugins built with it 1
  • Remove Zeit Now v1 support 1

author_association 2

  • OWNER 17
  • MEMBER 2

user 1

  • simonw · 19 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
603561207 https://github.com/simonw/datasette/issues/705#issuecomment-603561207 https://api.github.com/repos/simonw/datasette/issues/705 MDEyOklzc3VlQ29tbWVudDYwMzU2MTIwNw== simonw 9599 2020-03-24T23:42:42Z 2020-03-24T23:42:42Z OWNER

I'd like to still provide https://v0-35.datasette.io/ URLs for every named release, but I'm not sure how to best automate the provisioning of those subdomains.

For the moment I'm going to focus on getting latest.datasette.io working again, using Cloud Run.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
latest.datasette.io is no longer updating 585626199  
603560898 https://github.com/simonw/datasette/issues/705#issuecomment-603560898 https://api.github.com/repos/simonw/datasette/issues/705 MDEyOklzc3VlQ29tbWVudDYwMzU2MDg5OA== simonw 9599 2020-03-24T23:41:32Z 2020-03-24T23:41:32Z OWNER

I can switch over to deploying that using Cloud Run. Unfortunately if I move away from Zeit Now v1 (since it's no longer supported and might stop working) I don't think I'll be able to deploy a permanent URL for every commit hash that I push any more, which is a real shame.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
latest.datasette.io is no longer updating 585626199  
603547065 https://github.com/simonw/datasette/issues/701#issuecomment-603547065 https://api.github.com/repos/simonw/datasette/issues/701 MDEyOklzc3VlQ29tbWVudDYwMzU0NzA2NQ== simonw 9599 2020-03-24T22:56:47Z 2020-03-24T22:56:47Z OWNER

From the comments on that css-tricks article, this appears to work: css input[type=search] { -webkit-appearance: textfield; } input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-results-button, input[type="search"]::-webkit-search-results-decoration { display: none; }

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Search box CSS doesn't look great on OS X Safari 583970196  
603545257 https://github.com/simonw/datasette/issues/701#issuecomment-603545257 https://api.github.com/repos/simonw/datasette/issues/701 MDEyOklzc3VlQ29tbWVudDYwMzU0NTI1Nw== simonw 9599 2020-03-24T22:51:29Z 2020-03-24T22:51:29Z OWNER

It looks like the problem is that the padding: 9px 4px rule is being ignored.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Search box CSS doesn't look great on OS X Safari 583970196  
603544779 https://github.com/simonw/datasette/issues/701#issuecomment-603544779 https://api.github.com/repos/simonw/datasette/issues/701 MDEyOklzc3VlQ29tbWVudDYwMzU0NDc3OQ== simonw 9599 2020-03-24T22:50:05Z 2020-03-24T22:50:05Z OWNER

https://css-tricks.com/webkit-html5-search-inputs/ talks about this.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Search box CSS doesn't look great on OS X Safari 583970196  
603542037 https://github.com/simonw/datasette/issues/710#issuecomment-603542037 https://api.github.com/repos/simonw/datasette/issues/710 MDEyOklzc3VlQ29tbWVudDYwMzU0MjAzNw== simonw 9599 2020-03-24T22:41:19Z 2020-03-24T22:41:19Z OWNER

For the moment I'm just going to remove it from the documentation.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Remove Zeit Now v1 support 587322443  
603538291 https://github.com/simonw/datasette/issues/709#issuecomment-603538291 https://api.github.com/repos/simonw/datasette/issues/709 MDEyOklzc3VlQ29tbWVudDYwMzUzODI5MQ== simonw 9599 2020-03-24T22:30:10Z 2020-03-24T22:30:10Z OWNER

https://datasette.readthedocs.io/en/latest/plugins.html#plugin-hooks

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Each plugin hook should link to example plugins built with it 587314002  
603534725 https://github.com/simonw/datasette/issues/227#issuecomment-603534725 https://api.github.com/repos/simonw/datasette/issues/227 MDEyOklzc3VlQ29tbWVudDYwMzUzNDcyNQ== simonw 9599 2020-03-24T22:19:54Z 2020-03-24T22:19:54Z OWNER

I think the extra_template_vars() hook covers this.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
prepare_context() plugin hook 315960272  
603532876 https://github.com/simonw/datasette/pull/652#issuecomment-603532876 https://api.github.com/repos/simonw/datasette/issues/652 MDEyOklzc3VlQ29tbWVudDYwMzUzMjg3Ng== simonw 9599 2020-03-24T22:14:50Z 2020-03-24T22:14:50Z OWNER

This has been replaced by #708, which is close to being ready.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Quick (and uninformed and perhaps misguided) attempt to add a <base> url for hosting datasette at a particular host/URI 539985017  
603531775 https://github.com/simonw/datasette/pull/708#issuecomment-603531775 https://api.github.com/repos/simonw/datasette/issues/708 MDEyOklzc3VlQ29tbWVudDYwMzUzMTc3NQ== simonw 9599 2020-03-24T22:11:57Z 2020-03-24T22:11:57Z OWNER

This is now ready for people to try out. Quoting https://github.com/simonw/datasette/issues/394#issuecomment-603525339

Anyone willing to give it a quick test and see if it works for your particular use-case? You can install it with:

pip install https://github.com/simonw/datasette/archive/base-url.zip

Then you can run Datasette like this:

datasette fixtures.db --config base_url:/new-base/path/here/

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
base_url configuration setting, refs #394 587302139  
603525339 https://github.com/simonw/datasette/issues/394#issuecomment-603525339 https://api.github.com/repos/simonw/datasette/issues/394 MDEyOklzc3VlQ29tbWVudDYwMzUyNTMzOQ== simonw 9599 2020-03-24T21:55:46Z 2020-03-24T22:07:40Z OWNER

OK, I have an implementation of this over in the base-url branch (see pull request #708) which is passing all of the unit tests.

Anyone willing to give it a quick test and see if it works for your particular use-case? You can install it with:

pip install https://github.com/simonw/datasette/archive/base-url.zip

Then you can run Datasette like this:

datasette fixtures.db --config base_url:/new-base/path/here/
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
base_url configuration setting 396212021  
603525872 https://github.com/simonw/datasette/pull/708#issuecomment-603525872 https://api.github.com/repos/simonw/datasette/issues/708 MDEyOklzc3VlQ29tbWVudDYwMzUyNTg3Mg== simonw 9599 2020-03-24T21:57:02Z 2020-03-24T21:57:02Z OWNER

Spotted a bug: <link rel="stylesheet" href="/-/static/app.css?ffa51a"> in the templates. I need to ensure the static assets are served from the new location as well (and any plugin assets too).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
base_url configuration setting, refs #394 587302139  
603509266 https://github.com/simonw/datasette/issues/394#issuecomment-603509266 https://api.github.com/repos/simonw/datasette/issues/394 MDEyOklzc3VlQ29tbWVudDYwMzUwOTI2Ng== simonw 9599 2020-03-24T21:16:34Z 2020-03-24T21:16:34Z OWNER

Actually I'll teach DatasetteRouter since that subclasses AsgiRouter but has access to a datasette instance (which it can read configuration values from): https://github.com/simonw/datasette/blob/298a899e792ebd0cd82a5f01b613c31f19082e51/datasette/app.py#L750-L753

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
base_url configuration setting 396212021  
603508785 https://github.com/simonw/datasette/issues/394#issuecomment-603508785 https://api.github.com/repos/simonw/datasette/issues/394 MDEyOklzc3VlQ29tbWVudDYwMzUwODc4NQ== simonw 9599 2020-03-24T21:15:28Z 2020-03-24T21:15:28Z OWNER

That means I should teach AsgiRouter how to handle an optional prefix: https://github.com/simonw/datasette/blob/298a899e792ebd0cd82a5f01b613c31f19082e51/datasette/utils/asgi.py#L81-L93

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
base_url configuration setting 396212021  
603508356 https://github.com/simonw/datasette/issues/394#issuecomment-603508356 https://api.github.com/repos/simonw/datasette/issues/394 MDEyOklzc3VlQ29tbWVudDYwMzUwODM1Ng== simonw 9599 2020-03-24T21:14:31Z 2020-03-24T21:14:31Z OWNER

I'm going to assume that whatever is proxying to Datasette leaves the full incoming URL path intact, so I'm going to need to teach the URL routing code to strip off the prefix before processing the incoming request.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
base_url configuration setting 396212021  
603501719 https://github.com/simonw/datasette/issues/394#issuecomment-603501719 https://api.github.com/repos/simonw/datasette/issues/394 MDEyOklzc3VlQ29tbWVudDYwMzUwMTcxOQ== simonw 9599 2020-03-24T20:59:28Z 2020-03-24T20:59:28Z OWNER

Here's the line I'm stuck on now:

https://github.com/simonw/datasette/blob/298a899e792ebd0cd82a5f01b613c31f19082e51/datasette/views/base.py#L417

Tricky question: do I continue to rebuild URLs based on the incoming request (on the assumption that it has been modified to the new thing) or do I expect that I may still see un-prefixed incoming requests and need to change them?

If the incoming URL paths contain the prefix, at what point do I drop that so I can run the regular URL matching code?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
base_url configuration setting 396212021  
602955699 https://github.com/simonw/datasette/issues/394#issuecomment-602955699 https://api.github.com/repos/simonw/datasette/issues/394 MDEyOklzc3VlQ29tbWVudDYwMjk1NTY5OQ== simonw 9599 2020-03-24T01:34:06Z 2020-03-24T01:34:15Z OWNER

I don't think I'll go with the <base> solution purely because it doesn't work with JSON APIs - and there are quite a few places where Datasette APIs return URLs (for things like toggling facets - e.g. suggested_facets on https://latest.datasette.io/fixtures/facetable.json?_labels=on&_size=0 )

The good news is that if you look at the templates almost all of the URLs have been generated in Python code: https://github.com/simonw/datasette/blob/a498d0fe6590f9bdbc4faf9e0dd5faeb3b06002c/datasette/templates/table.html - so it shouldn't be too hard to fix in Python. Ideally I'd like to fix this with as few template changes as possible.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
base_url configuration setting 396212021  
602928533 https://github.com/dogsheep/github-to-sqlite/issues/23#issuecomment-602928533 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/23 MDEyOklzc3VlQ29tbWVudDYwMjkyODUzMw== simonw 9599 2020-03-24T00:15:49Z 2020-03-24T00:15:49Z MEMBER

https://github.com/dogsheep/github-to-sqlite/releases/tag/1.0

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Release 1.0 586595839  
602924714 https://github.com/dogsheep/github-to-sqlite/issues/13#issuecomment-602924714 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/13 MDEyOklzc3VlQ29tbWVudDYwMjkyNDcxNA== simonw 9599 2020-03-24T00:03:25Z 2020-03-24T00:03:25Z MEMBER

This is good enough for the 1.0 release.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Set up a live demo Datasette instance 521275281  

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 531.624ms · About: github-to-sqlite