home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

9 rows where author_association = "OWNER" and "updated_at" is on date 2023-01-11 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 3

  • installpython3.com is now a spam website 4
  • Reconsider pattern where plugins could break existing template context 4
  • Don't let Datasette(path) without a list cause weird errors 1

user 1

  • simonw 9

author_association 1

  • OWNER · 9 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
1379502161 https://github.com/simonw/datasette/issues/1988#issuecomment-1379502161 https://api.github.com/repos/simonw/datasette/issues/1988 IC_kwDOBm6k_c5SOYhR simonw 9599 2023-01-11T21:24:24Z 2023-01-11T21:25:05Z OWNER

Renaming sql() to template_sql() in https://github.com/simonw/datasette-template-sql and shipping a 2.0 release of that plugin (it is currently at 1.0.2) would be a sensible short-term fix too.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Reconsider pattern where plugins could break existing template context 1529707837  
1379500131 https://github.com/simonw/datasette/issues/1988#issuecomment-1379500131 https://api.github.com/repos/simonw/datasette/issues/1988 IC_kwDOBm6k_c5SOYBj simonw 9599 2023-01-11T21:22:31Z 2023-01-11T21:22:31Z OWNER

Relevant code:

https://github.com/simonw/datasette/blob/6a352e99ab988dbf8fd22a100049caa6ad33f1ec/datasette/app.py#L1138-L1149

https://github.com/simonw/datasette/blob/6a352e99ab988dbf8fd22a100049caa6ad33f1ec/datasette/app.py#L1193-L1195

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Reconsider pattern where plugins could break existing template context 1529707837  
1379492499 https://github.com/simonw/datasette/issues/1988#issuecomment-1379492499 https://api.github.com/repos/simonw/datasette/issues/1988 IC_kwDOBm6k_c5SOWKT simonw 9599 2023-01-11T21:15:01Z 2023-01-11T21:20:14Z OWNER

This is tricky. datasette-template-sql registers a custom sql() function, but @cldellow spotted a situation where this would interfere with an existing {{ sql }} variable in a template context!

https://github.com/simonw/datasette-template-sql/blob/70483fd94bb0349761830e37c9ab928e8966841a/datasette_template_sql/init.py

```python @hookimpl def extra_template_vars(datasette): async def execute_sql(sql, args=None, database=None): db = datasette.get_database(database) return (await db.execute(sql, args)).rows

return {"sql": execute_sql}

```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Reconsider pattern where plugins could break existing template context 1529707837  
1379495504 https://github.com/simonw/datasette/issues/1988#issuecomment-1379495504 https://api.github.com/repos/simonw/datasette/issues/1988 IC_kwDOBm6k_c5SOW5Q simonw 9599 2023-01-11T21:18:00Z 2023-01-11T21:18:25Z OWNER

A few options: - Ensure that the explicit template context overrides anything that plugins might do - so in this case the sql(...) function would not be available on that page. This would break people who have custom templates that use that function though. - Encourage naming conventions where functions and variables from plugins are less likely to interfere with existing functionality. - Completely change how templates work, so you never have a variable called {{ sql }} - it is always accessed via some parent object instead, such as {{ page.sql }}.

That last option actually fits quite well with my efforts to unify template rendering with JSON (and JSON extras) so it might be the best way to address this.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Reconsider pattern where plugins could break existing template context 1529707837  
1379313564 https://github.com/simonw/datasette/issues/1987#issuecomment-1379313564 https://api.github.com/repos/simonw/datasette/issues/1987 IC_kwDOBm6k_c5SNqec simonw 9599 2023-01-11T18:29:25Z 2023-01-11T18:29:25Z OWNER

Fixed: - https://docs.datasette.io/en/latest/installation.html#using-pip - https://docs.datasette.io/en/stable/installation.html#using-pip - https://docs.datasette.io/en/0.64.1/installation.html#using-pip

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
installpython3.com is now a spam website 1529452371  
1379311498 https://github.com/simonw/datasette/issues/1987#issuecomment-1379311498 https://api.github.com/repos/simonw/datasette/issues/1987 IC_kwDOBm6k_c5SNp-K simonw 9599 2023-01-11T18:27:30Z 2023-01-11T18:27:46Z OWNER

I'm going to leave the bad link in the old versions, because I can't figure out a way to update them using ReadTheDocs - shipping 0.64.1 will at least mean that both /latest/ and /stable/ have a good link.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
installpython3.com is now a spam website 1529452371  
1379282756 https://github.com/simonw/datasette/issues/1987#issuecomment-1379282756 https://api.github.com/repos/simonw/datasette/issues/1987 IC_kwDOBm6k_c5SNi9E simonw 9599 2023-01-11T18:04:22Z 2023-01-11T18:04:22Z OWNER

That change is now live on https://docs.datasette.io/en/latest/installation.html#using-pip

I may need to ship a new stable dot-release to update the /en/stable/ page though.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
installpython3.com is now a spam website 1529452371  
1379276484 https://github.com/simonw/datasette/issues/1987#issuecomment-1379276484 https://api.github.com/repos/simonw/datasette/issues/1987 IC_kwDOBm6k_c5SNhbE simonw 9599 2023-01-11T18:00:35Z 2023-01-11T18:00:35Z OWNER

Next challenge: how to best deploy this.

Ideally I'd like to fix all of the older versions of the docs too - pages like https://docs.datasette.io/en/0.59.4/installation.html#using-pip

Not sure if ReadTheDocs has a mechanism for that.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
installpython3.com is now a spam website 1529452371  
1378253346 https://github.com/simonw/datasette/issues/1985#issuecomment-1378253346 https://api.github.com/repos/simonw/datasette/issues/1985 IC_kwDOBm6k_c5SJnoi simonw 9599 2023-01-11T05:18:05Z 2023-01-11T05:18:05Z OWNER

Datasette(path) should either work or it should return an easily debugged error message.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Don't let Datasette(path) without a list cause weird errors 1528448642  

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