home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

14 rows where author_association = "OWNER", "created_at" is on date 2020-08-16 and "updated_at" is on date 2020-08-16 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 4

  • extra_ plugin hooks should take the same arguments 6
  • Move CI to GitHub Issues 4
  • Pass columns to extra CSS/JS/etc plugin hooks 3
  • "Object of type bytes is not JSON serializable" for _nl=on 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
674589472 https://github.com/simonw/datasette/issues/940#issuecomment-674589472 https://api.github.com/repos/simonw/datasette/issues/940 MDEyOklzc3VlQ29tbWVudDY3NDU4OTQ3Mg== simonw 9599 2020-08-16T23:05:57Z 2020-08-16T23:05:57Z OWNER

When I figure this out I'll update the https://github.com/simonw/datasette-plugin/blob/main/datasette-%7B%7Bcookiecutter.hyphenated%7D%7D/.github/workflows/publish.yml default workflow to do this - right now it runs the tests once on just a single version of Python as part of the package deploy to PyPI step.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Move CI to GitHub Issues 679808124  
674589321 https://github.com/simonw/datasette/issues/940#issuecomment-674589321 https://api.github.com/repos/simonw/datasette/issues/940 MDEyOklzc3VlQ29tbWVudDY3NDU4OTMyMQ== simonw 9599 2020-08-16T23:04:34Z 2020-08-16T23:04:34Z OWNER

https://docs.github.com/en/actions/getting-started-with-github-actions/core-concepts-for-github-actions#job

A set of steps that execute on the same runner. You can define the dependency rules for how jobs run in a workflow file. Jobs can run at the same time in parallel or run sequentially depending on the status of a previous job. For example, a workflow can have two sequential jobs that build and test code, where the test job is dependent on the status of the build job. If the build job fails, the test job will not run.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Move CI to GitHub Issues 679808124  
674589035 https://github.com/simonw/datasette/issues/940#issuecomment-674589035 https://api.github.com/repos/simonw/datasette/issues/940 MDEyOklzc3VlQ29tbWVudDY3NDU4OTAzNQ== simonw 9599 2020-08-16T23:02:23Z 2020-08-16T23:02:23Z OWNER

I'd like to set these up as different workflows that depend on each other, if that's possible.

I want to start three test runs in parallel (on three different Python versions), then if all three pass kick off the PyPI push (without running more tests), then if that passes do the Docker build and push.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Move CI to GitHub Issues 679808124  
674578388 https://github.com/simonw/datasette/issues/914#issuecomment-674578388 https://api.github.com/repos/simonw/datasette/issues/914 MDEyOklzc3VlQ29tbWVudDY3NDU3ODM4OA== simonw 9599 2020-08-16T21:10:27Z 2020-08-16T21:10:27Z OWNER

Demo of the fix: https://latest.datasette.io/fixtures/binary_data.json?_sort_desc=data&_shape=array&_nl=on

{"rowid": 2, "data": {"$base64": true, "encoded": "FRwDx60F/g=="}} {"rowid": 1, "data": {"$base64": true, "encoded": "FRwCx60F/g=="}}

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
"Object of type bytes is not JSON serializable" for _nl=on 671056788  
674566618 https://github.com/simonw/datasette/issues/940#issuecomment-674566618 https://api.github.com/repos/simonw/datasette/issues/940 MDEyOklzc3VlQ29tbWVudDY3NDU2NjYxOA== simonw 9599 2020-08-16T19:20:58Z 2020-08-16T19:20:58Z OWNER

I need to figure out how to build and push the Docker image on releases. Here's the Travis code for that: https://github.com/simonw/datasette/blob/52eabb019d4051084b21524bd0fd9c2731126985/.travis.yml#L38-L47

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Move CI to GitHub Issues 679808124  
674558631 https://github.com/simonw/datasette/issues/938#issuecomment-674558631 https://api.github.com/repos/simonw/datasette/issues/938 MDEyOklzc3VlQ29tbWVudDY3NDU1ODYzMQ== simonw 9599 2020-08-16T18:10:23Z 2020-08-16T18:10:23Z OWNER

Documentation: https://github.com/simonw/datasette/blob/3a4c8ed36aa97211e46849d32a09f2f386f342dd/docs/plugin_hooks.rst#extra-template-vars-template-database-table-columns-view-name-request-datasette

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Pass columns to extra CSS/JS/etc plugin hooks 679700269  
674551826 https://github.com/simonw/datasette/issues/938#issuecomment-674551826 https://api.github.com/repos/simonw/datasette/issues/938 MDEyOklzc3VlQ29tbWVudDY3NDU1MTgyNg== simonw 9599 2020-08-16T17:07:57Z 2020-08-16T17:07:57Z OWNER

extra_tenplate_vars should he documented first and should be the only one to document the arguments and the async return feature. Others should refer back to it rather than duplicating that.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Pass columns to extra CSS/JS/etc plugin hooks 679700269  
674548163 https://github.com/simonw/datasette/issues/939#issuecomment-674548163 https://api.github.com/repos/simonw/datasette/issues/939 MDEyOklzc3VlQ29tbWVudDY3NDU0ODE2Mw== simonw 9599 2020-08-16T16:34:30Z 2020-08-16T16:34:30Z OWNER

Docs also need to note that request may be None for all of these hooks.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
extra_ plugin hooks should take the same arguments 679779797  
674547811 https://github.com/simonw/datasette/issues/939#issuecomment-674547811 https://api.github.com/repos/simonw/datasette/issues/939 MDEyOklzc3VlQ29tbWVudDY3NDU0NzgxMQ== simonw 9599 2020-08-16T16:31:20Z 2020-08-16T16:31:20Z OWNER

And the docs need to be updated too.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
extra_ plugin hooks should take the same arguments 679779797  
674547788 https://github.com/simonw/datasette/issues/939#issuecomment-674547788 https://api.github.com/repos/simonw/datasette/issues/939 MDEyOklzc3VlQ29tbWVudDY3NDU0Nzc4OA== simonw 9599 2020-08-16T16:31:08Z 2020-08-16T16:31:08Z OWNER

Also: they should all be able to return async def inner functions. At the moment only extra_template_vars supports that pattern.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
extra_ plugin hooks should take the same arguments 679779797  
674545058 https://github.com/simonw/datasette/issues/939#issuecomment-674545058 https://api.github.com/repos/simonw/datasette/issues/939 MDEyOklzc3VlQ29tbWVudDY3NDU0NTA1OA== simonw 9599 2020-08-16T16:07:20Z 2020-08-16T16:07:20Z OWNER

I'm going to implement this first as a single commit, then implement columns from #938 as a separate change.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
extra_ plugin hooks should take the same arguments 679779797  
674544973 https://github.com/simonw/datasette/issues/939#issuecomment-674544973 https://api.github.com/repos/simonw/datasette/issues/939 MDEyOklzc3VlQ29tbWVudDY3NDU0NDk3Mw== simonw 9599 2020-08-16T16:06:34Z 2020-08-16T16:06:34Z OWNER

They should also be next to each other in the documentation - right now they're a bit scattered in terms of page order:

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
extra_ plugin hooks should take the same arguments 679779797  
674544875 https://github.com/simonw/datasette/issues/939#issuecomment-674544875 https://api.github.com/repos/simonw/datasette/issues/939 MDEyOklzc3VlQ29tbWVudDY3NDU0NDg3NQ== simonw 9599 2020-08-16T16:05:36Z 2020-08-16T16:05:36Z OWNER

They should all take:

template, database, table, view_name, request, datasette, columns

columns is new, see #938.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
extra_ plugin hooks should take the same arguments 679779797  
674544691 https://github.com/simonw/datasette/issues/938#issuecomment-674544691 https://api.github.com/repos/simonw/datasette/issues/938 MDEyOklzc3VlQ29tbWVudDY3NDU0NDY5MQ== simonw 9599 2020-08-16T16:03:52Z 2020-08-16T16:03:52Z OWNER

Four plugin hooks need this extra columns argument:

  • extra_css_urls(template, database, table, datasette)
  • extra_js_urls(template, database, table, datasette)
  • extra_body_script(template, database, table, view_name, datasette)
  • extra_template_vars(template, database, table, view_name, request, datasette)

It's weird that these take different arguments. I should fix that too.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Pass columns to extra CSS/JS/etc plugin hooks 679700269  

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