home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

8 rows where "created_at" is on date 2020-10-01 and "updated_at" is on date 2020-10-01 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

issue 6

  • Allow facet by primary keys, fixes #985 2
  • Documented HTML hooks for JavaScript plugin authors 2
  • Extract codemirror SQL editor out into a plugin 1
  • base_url doesn't seem to work when adding criteria and clicking "apply" 1
  • Review accessibility of new column action menus 1
  • Column actions should support facet by compound primary keys 1

user 2

  • simonw 7
  • codecov[bot] 1

author_association 2

  • OWNER 7
  • NONE 1
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
702418045 https://github.com/simonw/datasette/issues/865#issuecomment-702418045 https://api.github.com/repos/simonw/datasette/issues/865 MDEyOklzc3VlQ29tbWVudDcwMjQxODA0NQ== simonw 9599 2020-10-01T21:54:00Z 2020-10-01T21:54:00Z OWNER

Had a thought: this is likely to break in plugins too, such as datasette-edit-schema which constructs URLs for redirects e.g. here: https://github.com/simonw/datasette-edit-schema/blob/dbd0abee6dd3385b114cfe9671f7ead1c4855b60/datasette_edit_schema/init.py#L46-L48

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
base_url doesn't seem to work when adding criteria and clicking "apply" 644582921  
702265255 https://github.com/simonw/datasette/pull/986#issuecomment-702265255 https://api.github.com/repos/simonw/datasette/issues/986 MDEyOklzc3VlQ29tbWVudDcwMjI2NTI1NQ== simonw 9599 2020-10-01T16:51:45Z 2020-10-01T16:51:45Z OWNER

Thanks for taking a look! The fix ended up being a little different from this because I still want to disable faceting on regular single primary keys (since faceting by those won't ever produce interesting results) - here's what I used: https://github.com/simonw/datasette/commit/5d6bc4c268f9f155e59561671f8617addd3e91bc

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Allow facet by primary keys, fixes #985 712889459  
702241397 https://github.com/simonw/datasette/issues/987#issuecomment-702241397 https://api.github.com/repos/simonw/datasette/issues/987 MDEyOklzc3VlQ29tbWVudDcwMjI0MTM5Nw== simonw 9599 2020-10-01T16:11:31Z 2020-10-01T16:11:31Z OWNER

This should be a new page in the documentation, which will be expanded later on to cover things like the proposed JavaScript plugin hooks system from #983.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Documented HTML hooks for JavaScript plugin authors 712984738  
702240916 https://github.com/simonw/datasette/issues/987#issuecomment-702240916 https://api.github.com/repos/simonw/datasette/issues/987 MDEyOklzc3VlQ29tbWVudDcwMjI0MDkxNg== simonw 9599 2020-10-01T16:10:44Z 2020-10-01T16:10:44Z OWNER

https://github.com/simonw/datasette/blob/141544613f9e76ddb74eee38d6f8ee1e0e70f833/datasette/templates/_table.html#L6

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Documented HTML hooks for JavaScript plugin authors 712984738  
702171636 https://github.com/simonw/datasette/pull/986#issuecomment-702171636 https://api.github.com/repos/simonw/datasette/issues/986 MDEyOklzc3VlQ29tbWVudDcwMjE3MTYzNg== codecov[bot] 22429695 2020-10-01T14:24:11Z 2020-10-01T14:24:11Z NONE

Codecov Report

Merging #986 into main will not change coverage. The diff coverage is n/a.

```diff @@ Coverage Diff @@

main #986 +/-

======================================= Coverage 84.28% 84.28%
======================================= Files 28 28
Lines 3850 3850
======================================= Hits 3245 3245
Misses 605 605
```


Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 1415446...76f7094. Read the comment docs.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Allow facet by primary keys, fixes #985 712889459  
702132019 https://github.com/simonw/datasette/issues/985#issuecomment-702132019 https://api.github.com/repos/simonw/datasette/issues/985 MDEyOklzc3VlQ29tbWVudDcwMjEzMjAxOQ== simonw 9599 2020-10-01T13:23:48Z 2020-10-01T13:23:48Z OWNER

The code that skips the "facet by this" menu option for primary key columns could take into account if there are multiple primary keys.

https://github.com/simonw/datasette/blob/141544613f9e76ddb74eee38d6f8ee1e0e70f833/datasette/static/table.js#L91-L98

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Column actions should support facet by compound primary keys 712839383  
701720034 https://github.com/simonw/datasette/issues/530#issuecomment-701720034 https://api.github.com/repos/simonw/datasette/issues/530 MDEyOklzc3VlQ29tbWVudDcwMTcyMDAzNA== simonw 9599 2020-10-01T00:42:08Z 2020-10-01T00:42:08Z OWNER

I've changed my mind - especially since Datasette now ships with default JavaScript for the column menus in #981. I'm not going to extract CodeMirror into a plugin, I'll leave it where it is.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Extract codemirror SQL editor out into a plugin 460540321  
701708072 https://github.com/simonw/datasette/issues/984#issuecomment-701708072 https://api.github.com/repos/simonw/datasette/issues/984 MDEyOklzc3VlQ29tbWVudDcwMTcwODA3Mg== simonw 9599 2020-10-01T00:01:36Z 2020-10-01T00:01:36Z OWNER

Column action menus are the cog icons on https://latest.datasette.io/fixtures/facetable

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Review accessibility of new column action menus 712368432  

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