home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

14 rows where author_association = "OWNER" and "created_at" is on date 2022-12-31 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

issue 5

  • Redesign default .json format 6
  • Upgrade for Sphinx 6.0 (once Furo has support for it) 3
  • Add favicon to documentation 2
  • Path "None" in _internal database table 2
  • Broken link to live demo in Getting started docs 1

user 1

  • simonw 14

author_association 1

  • OWNER · 14 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
1368269732 https://github.com/simonw/datasette/issues/782#issuecomment-1368269732 https://api.github.com/repos/simonw/datasette/issues/782 IC_kwDOBm6k_c5RjiOk simonw 9599 2022-12-31T19:32:33Z 2023-01-17T02:05:45Z OWNER

New thinking on the trimmed-down default. Previously I was going to use "row" and "next_url" - I now want to do this instead: json { "ok": true, "rows": [ { "pk1": "a", "pk2": "a", "pk3": "a", "content": "a-a-a" }, { "pk1": "a", "pk2": "a", "pk3": "b", "content": "a-a-b" } ], "next": "a,a,b" } If there isn't a next page it will return "next": null.

This is even more succinct. I'm OK with people having to request next_url if they don't want to construct the new URL themselves.

The "ok": true is there so it can be false for errors, consistently.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Redesign default .json format 627794879  
1368285442 https://github.com/simonw/datasette/issues/782#issuecomment-1368285442 https://api.github.com/repos/simonw/datasette/issues/782 IC_kwDOBm6k_c5RjmEC simonw 9599 2022-12-31T22:02:16Z 2022-12-31T22:02:16Z OWNER

https://latest.datasette.io/fixtures/compound_three_primary_keys.json?_size=2 now returns count:

json { "database": "fixtures", "table": "compound_three_primary_keys", "is_view": false, "human_description_en": "", "rows": [ { "pk1": "a", "pk2": "a", "pk3": "a", "content": "a-a-a" }, { "pk1": "a", "pk2": "a", "pk3": "b", "content": "a-a-b" } ], "truncated": false, "count": 1001,

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Redesign default .json format 627794879  
1368278278 https://github.com/simonw/datasette/issues/782#issuecomment-1368278278 https://api.github.com/repos/simonw/datasette/issues/782 IC_kwDOBm6k_c5RjkUG simonw 9599 2022-12-31T20:49:38Z 2022-12-31T20:49:38Z OWNER

I'm going to rename filtered_table_rows_count to count - to match the SQL count(*) function.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Redesign default .json format 627794879  
1368269811 https://github.com/simonw/datasette/issues/782#issuecomment-1368269811 https://api.github.com/repos/simonw/datasette/issues/782 IC_kwDOBm6k_c5RjiPz simonw 9599 2022-12-31T19:33:09Z 2022-12-31T19:33:09Z OWNER

Here's the so-far updated documentation for this change: https://github.com/simonw/datasette/blob/a2dca62360ad4a961d4c46f68eae41b7d5c7b2c9/docs/json_api.rst#different-shapes

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Redesign default .json format 627794879  
1368269283 https://github.com/simonw/datasette/issues/782#issuecomment-1368269283 https://api.github.com/repos/simonw/datasette/issues/782 IC_kwDOBm6k_c5RjiHj simonw 9599 2022-12-31T19:29:45Z 2022-12-31T19:29:45Z OWNER

https://latest.datasette.io/fixtures/compound_three_primary_keys.json?_size=2 now shows the new default: json { "database": "fixtures", "table": "compound_three_primary_keys", "is_view": false, "human_description_en": "", "rows": [ { "pk1": "a", "pk2": "a", "pk3": "a", "content": "a-a-a" }, { "pk1": "a", "pk2": "a", "pk3": "b", "content": "a-a-b" } ], The old format can be had like this: https://latest.datasette.io/fixtures/compound_three_primary_keys.json?_size=2&_shape=arrays

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Redesign default .json format 627794879  
1368268233 https://github.com/simonw/datasette/issues/1970#issuecomment-1368268233 https://api.github.com/repos/simonw/datasette/issues/1970 IC_kwDOBm6k_c5Rjh3J simonw 9599 2022-12-31T19:22:58Z 2022-12-31T19:22:58Z OWNER

https://latest.datasette.io/_internal/databases shows the fix now:

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Path "None" in _internal database table 1515182998  
1368268148 https://github.com/simonw/datasette/issues/782#issuecomment-1368268148 https://api.github.com/repos/simonw/datasette/issues/782 IC_kwDOBm6k_c5Rjh10 simonw 9599 2022-12-31T19:22:07Z 2022-12-31T19:22:07Z OWNER

It turned out the most significant part of this change - switching from an array of arrays to an array of objects for the "rows" key - was really easy: Datasette already had a ?_shape=arrays v.s. ?_shape=objects mechanism, so I switched which one was the default in https://github.com/simonw/datasette/commit/234230e59574ccb8d8a24c45ccd325f725812377

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Redesign default .json format 627794879  
1368267484 https://github.com/simonw/datasette/pull/1967#issuecomment-1368267484 https://api.github.com/repos/simonw/datasette/issues/1967 IC_kwDOBm6k_c5Rjhrc simonw 9599 2022-12-31T19:15:50Z 2022-12-31T19:15:50Z OWNER

My Firefox tab before:

And after:

{
    "total_count": 1,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 1,
    "rocket": 0,
    "eyes": 0
}
Add favicon to documentation 1503010009  
1368267406 https://github.com/simonw/datasette/issues/1966#issuecomment-1368267406 https://api.github.com/repos/simonw/datasette/issues/1966 IC_kwDOBm6k_c5RjhqO simonw 9599 2022-12-31T19:15:10Z 2022-12-31T19:15:10Z OWNER

It's working again now - not sure what happened there, I was paying for Heroku for that already.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Broken link to live demo in Getting started docs 1501900064  
1368266904 https://github.com/simonw/datasette/issues/1971#issuecomment-1368266904 https://api.github.com/repos/simonw/datasette/issues/1971 IC_kwDOBm6k_c5RjhiY simonw 9599 2022-12-31T19:09:48Z 2022-12-31T19:09:48Z OWNER

For the moment I'm going to pin to Sphinx 5.3.0

Note that I got this warning there:

[sphinx-autobuild] > sphinx-build -b html /Users/simon/Dropbox/Development/datasette/docs /Users/simon/Dropbox/Development/datasette/docs/_build Running Sphinx v5.3.0 loading pickled environment... done WARNING: extlinks: Sphinx-6.0 will require a caption string to contain exactly one '%s' and all other '%' need to be escaped as '%%'. So I should probably fix that in advance of the 6.0 upgrade.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Upgrade for Sphinx 6.0 (once Furo has support for it) 1515185383  
1368266658 https://github.com/simonw/datasette/issues/1971#issuecomment-1368266658 https://api.github.com/repos/simonw/datasette/issues/1971 IC_kwDOBm6k_c5Rjhei simonw 9599 2022-12-31T19:07:19Z 2022-12-31T19:07:19Z OWNER

So it looks like Furo doesn't work with Sphinx 6.0 yet - there' s a fix on main but it hasn't been released:

  • https://github.com/pradyunsg/furo/discussions/569
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Upgrade for Sphinx 6.0 (once Furo has support for it) 1515185383  
1368266457 https://github.com/simonw/datasette/issues/1971#issuecomment-1368266457 https://api.github.com/repos/simonw/datasette/issues/1971 IC_kwDOBm6k_c5RjhbZ simonw 9599 2022-12-31T19:05:26Z 2022-12-31T19:05:26Z OWNER

Ran this locally:

pip install -U Sphinx

Got these warnings:

Installing collected packages: Sphinx Attempting uninstall: Sphinx Found existing installation: Sphinx 5.1.1 Uninstalling Sphinx-5.1.1: Successfully uninstalled Sphinx-5.1.1 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. sphinx-basic-ng 0.0.1a12 requires sphinx<6.0,>=4.0, but you have sphinx 6.0.0 which is incompatible. furo 2022.6.21 requires sphinx<6.0,>=4.0, but you have sphinx 6.0.0 which is incompatible.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Upgrade for Sphinx 6.0 (once Furo has support for it) 1515185383  
1368265354 https://github.com/simonw/datasette/pull/1967#issuecomment-1368265354 https://api.github.com/repos/simonw/datasette/issues/1967 IC_kwDOBm6k_c5RjhKK simonw 9599 2022-12-31T18:56:35Z 2022-12-31T18:56:35Z OWNER

Thanks for this!

Datasette has a favicon in this file: https://github.com/simonw/datasette/blob/2b4a8aa0833068da25072b6247bf349949ca00ee/datasette/static/favicon.png - so I'll copy that over and use it here as well.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Add favicon to documentation 1503010009  
1368264882 https://github.com/simonw/datasette/issues/1970#issuecomment-1368264882 https://api.github.com/repos/simonw/datasette/issues/1970 IC_kwDOBm6k_c5RjhCy simonw 9599 2022-12-31T18:52:01Z 2022-12-31T18:52:01Z OWNER

Relevant code: https://github.com/simonw/datasette/blob/e03aed00026cc2e59c09ca41f69a247e1a85cc89/datasette/app.py#L418-L424

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Path "None" in _internal database table 1515182998  

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