home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

17 rows where "created_at" is on date 2021-08-19 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: updated_at (date)

issue 6

  • Mechanism to cause specific branches to deploy their own demos 6
  • Error: Use either --since or --since_id, not both 4
  • Manage /robots.txt in Datasette core, block robots by default 3
  • feature request: document minimum permissions for service account for cloudrun 2
  • Enrich arbitrary query results with foreign key links and column descriptions 1
  • datasette.databases should be a documented property 1

author_association 2

  • OWNER 13
  • MEMBER 4

user 1

  • simonw 17
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
902329455 https://github.com/dogsheep/twitter-to-sqlite/issues/57#issuecomment-902329455 https://api.github.com/repos/dogsheep/twitter-to-sqlite/issues/57 IC_kwDODEm0Qs41yHRv simonw 9599 2021-08-19T23:59:56Z 2021-08-19T23:59:56Z MEMBER

This looks like the bug to me:

https://github.com/dogsheep/twitter-to-sqlite/blob/197e69cec40052c423a5ed071feb5f7cccea41b9/twitter_to_sqlite/cli.py#L239-L241

type=str, default=False

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Error: Use either --since or --since_id, not both 907645813  
902328760 https://github.com/dogsheep/twitter-to-sqlite/issues/57#issuecomment-902328760 https://api.github.com/repos/dogsheep/twitter-to-sqlite/issues/57 IC_kwDODEm0Qs41yHG4 simonw 9599 2021-08-19T23:57:41Z 2021-08-19T23:57:41Z MEMBER

Weird, added debug code and got this: {'screen_name': 'simonw', 'count': 200, 'since_id': 'False', 'tweet_mode': 'extended'} - so maybe it's a twitter-to-sqlite bug where somehow the string False is being passed somewhere.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Error: Use either --since or --since_id, not both 907645813  
902328369 https://github.com/dogsheep/twitter-to-sqlite/issues/57#issuecomment-902328369 https://api.github.com/repos/dogsheep/twitter-to-sqlite/issues/57 IC_kwDODEm0Qs41yHAx simonw 9599 2021-08-19T23:56:26Z 2021-08-19T23:56:26Z MEMBER

https://developer.twitter.com/en/docs/twitter-api/v1/tweets/timelines/api-reference/get-statuses-user_timeline says the API has been replaced by the new v2 one, but it should still work - and the since_id parameter is still documented on that page.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Error: Use either --since or --since_id, not both 907645813  
902327457 https://github.com/dogsheep/twitter-to-sqlite/issues/57#issuecomment-902327457 https://api.github.com/repos/dogsheep/twitter-to-sqlite/issues/57 IC_kwDODEm0Qs41yGyh simonw 9599 2021-08-19T23:53:25Z 2021-08-19T23:53:25Z MEMBER

I'm getting this too. Looking into it now.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Error: Use either --since or --since_id, not both 907645813  
902263367 https://github.com/simonw/datasette/issues/1426#issuecomment-902263367 https://api.github.com/repos/simonw/datasette/issues/1426 IC_kwDOBm6k_c41x3JH simonw 9599 2021-08-19T21:33:51Z 2021-08-19T21:36:28Z OWNER

I was worried about if it's possible to allow access to /fixtures but deny access to /fixtures?sql=...

From various answers on Stack Overflow it looks like this should handle that:

User-agent: * Disallow: /fixtures? I could use this for tables too - it may well be OK to access table index pages while still avoiding pagination, facets etc. I think this should block both query strings and row pages while allowing the table page itself: User-agent: * Disallow: /fixtures/searchable? Disallow: /fixtures/searchable/* Could even accompany that with a sitemap.xml that explicitly lists all of the tables - which would mean adding sitemaps to Datasette core too.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Manage /robots.txt in Datasette core, block robots by default 964322136  
902260338 https://github.com/simonw/datasette/issues/1426#issuecomment-902260338 https://api.github.com/repos/simonw/datasette/issues/1426 IC_kwDOBm6k_c41x2Zy simonw 9599 2021-08-19T21:28:25Z 2021-08-19T21:29:40Z OWNER

Actually it looks like you can send a sitemap.xml to Google using an unauthenticated GET request to:

https://www.google.com/ping?sitemap=FULL_URL_OF_SITEMAP

According to https://developers.google.com/search/docs/advanced/sitemaps/build-sitemap

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Manage /robots.txt in Datasette core, block robots by default 964322136  
902260799 https://github.com/simonw/datasette/issues/1426#issuecomment-902260799 https://api.github.com/repos/simonw/datasette/issues/1426 IC_kwDOBm6k_c41x2g_ simonw 9599 2021-08-19T21:29:13Z 2021-08-19T21:29:13Z OWNER

Bing's equivalent is: https://www.bing.com/webmasters/help/Sitemaps-3b5cf6ed

http://www.bing.com/ping?sitemap=FULL_URL_OF_SITEMAP
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Manage /robots.txt in Datasette core, block robots by default 964322136  
902258509 https://github.com/simonw/datasette/issues/1443#issuecomment-902258509 https://api.github.com/repos/simonw/datasette/issues/1443 IC_kwDOBm6k_c41x19N simonw 9599 2021-08-19T21:25:07Z 2021-08-19T21:25:07Z OWNER

https://docs.datasette.io/en/latest/internals.html#databases

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
datasette.databases should be a documented property 974995592  
902254712 https://github.com/simonw/datasette/pull/1434#issuecomment-902254712 https://api.github.com/repos/simonw/datasette/issues/1434 IC_kwDOBm6k_c41x1B4 simonw 9599 2021-08-19T21:18:31Z 2021-08-19T21:18:57Z OWNER

I deployed a demo to https://datasette-latest-query-info-j7hipcg4aq-uc.a.run.app using the mechanism from #1442.

e.g. demo here: https://datasette-latest-query-info-j7hipcg4aq-uc.a.run.app/fixtures?sql=select+*+from+searchable

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Enrich arbitrary query results with foreign key links and column descriptions 970463436  
902251316 https://github.com/simonw/datasette/issues/1415#issuecomment-902251316 https://api.github.com/repos/simonw/datasette/issues/1415 IC_kwDOBm6k_c41x0M0 simonw 9599 2021-08-19T21:14:15Z 2021-08-19T21:14:15Z OWNER

https://github.com/ahmetb/cloud-run-faq#how-do-i-continuously-deploy-to-cloud-run suggests the following:

  • roles/run.admin to deploy applications
  • roles/iam.serviceAccountUser on the service account that your app will use

It also links to https://cloud.google.com/run/docs/reference/iam/roles

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
feature request: document minimum permissions for service account for cloudrun 959137143  
902250361 https://github.com/simonw/datasette/issues/1415#issuecomment-902250361 https://api.github.com/repos/simonw/datasette/issues/1415 IC_kwDOBm6k_c41xz95 simonw 9599 2021-08-19T21:12:28Z 2021-08-19T21:12:28Z OWNER

I would love to know this too! I always find figuring out minimal permissions to be really difficult.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
feature request: document minimum permissions for service account for cloudrun 959137143  
902243498 https://github.com/simonw/datasette/issues/1442#issuecomment-902243498 https://api.github.com/repos/simonw/datasette/issues/1442 IC_kwDOBm6k_c41xySq simonw 9599 2021-08-19T21:04:01Z 2021-08-19T21:04:01Z OWNER

That successfully deployed to https://datasette-latest-deploy-this-branch-j7hipcg4aq-uc.a.run.app/ even though the tests failed.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Mechanism to cause specific branches to deploy their own demos 974987856  
902239215 https://github.com/simonw/datasette/issues/1442#issuecomment-902239215 https://api.github.com/repos/simonw/datasette/issues/1442 IC_kwDOBm6k_c41xxPv simonw 9599 2021-08-19T20:56:46Z 2021-08-19T20:56:46Z OWNER

I'm going to only run the tests if it's a push to main - that way I can ship demo branches really quickly, even if they don't yet have passing tests.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Mechanism to cause specific branches to deploy their own demos 974987856  
902235714 https://github.com/simonw/datasette/issues/1442#issuecomment-902235714 https://api.github.com/repos/simonw/datasette/issues/1442 IC_kwDOBm6k_c41xwZC simonw 9599 2021-08-19T20:50:38Z 2021-08-19T20:50:38Z OWNER

Would this allow anyone to push a PR to this repo that would result in their code being deployed against my Cloud Run account? I'm reasonably confident that it would not, since the secrets would not be visible to their PR branch.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Mechanism to cause specific branches to deploy their own demos 974987856  
902231018 https://github.com/simonw/datasette/issues/1442#issuecomment-902231018 https://api.github.com/repos/simonw/datasette/issues/1442 IC_kwDOBm6k_c41xvPq simonw 9599 2021-08-19T20:42:08Z 2021-08-19T20:42:08Z OWNER

If I get this working I should document it on https://docs.datasette.io/en/stable/contributing.html

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Mechanism to cause specific branches to deploy their own demos 974987856  
902217726 https://github.com/simonw/datasette/issues/1442#issuecomment-902217726 https://api.github.com/repos/simonw/datasette/issues/1442 IC_kwDOBm6k_c41xr_- simonw 9599 2021-08-19T20:21:47Z 2021-08-19T20:21:47Z OWNER

I think the neatest way to implement this would be for the on -> push -> branches list to be the list of branches that should be deployed in this way. The rest of the code can react to that.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Mechanism to cause specific branches to deploy their own demos 974987856  
902191150 https://github.com/simonw/datasette/issues/1442#issuecomment-902191150 https://api.github.com/repos/simonw/datasette/issues/1442 IC_kwDOBm6k_c41xlgu simonw 9599 2021-08-19T19:43:05Z 2021-08-19T19:43:59Z OWNER

Maybe as simple as teaching https://github.com/simonw/datasette/blob/main/.github/workflows/deploy-latest.yml to run on pushes to ALL branches:

https://github.com/simonw/datasette/blob/adb5b70de5cec3c3dd37184defe606a082c232cf/.github/workflows/deploy-latest.yml#L3-L6

And then quit early if the branch is not in some allow-list.

If it IS in the allow-list, use the name of the branch to dynamically construct the name of the Cloud Run service here: https://github.com/simonw/datasette/blob/adb5b70de5cec3c3dd37184defe606a082c232cf/.github/workflows/deploy-latest.yml#L60

Need to skip the documentation build and deployment stuff for other branches though.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Mechanism to cause specific branches to deploy their own demos 974987856  

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