home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

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

  • Maybe let plugins define custom serve options? 3
  • Add a CLI reference page to the docs, inspired by sqlite-utils 3
  • Add a glossary to the documentation 1
  • Document turning on WAL for live served SQLite databases 1
  • Add Datasette Desktop to installation documentation 1
  • Command for creating an empty database 1
  • `explain query plan select` is too strict about whitespace 1
  • Table+query JSON and CSV links broken when using `base_url` setting 1
  • Release notes for 0.60 1

user 1

  • simonw 13

author_association 1

  • OWNER · 13 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
1012583091 https://github.com/simonw/datasette/issues/1590#issuecomment-1012583091 https://api.github.com/repos/simonw/datasette/issues/1590 IC_kwDOBm6k_c48Wsqz simonw 9599 2022-01-13T22:41:15Z 2022-01-13T22:41:15Z OWNER

Seeing as this area of the code has produced so many bugs in the past, I think part of the fix may be to write comprehensive documentation about how routing works for the internals documentation. Doing so might help me figure this bug out!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Table+query JSON and CSV links broken when using `base_url` setting 1099723916  
1012575013 https://github.com/simonw/datasette/issues/1595#issuecomment-1012575013 https://api.github.com/repos/simonw/datasette/issues/1595 IC_kwDOBm6k_c48Wqsl simonw 9599 2022-01-13T22:29:22Z 2022-01-13T22:29:22Z OWNER

Most of these are already written for these two alpha releases: - https://github.com/simonw/datasette/releases/tag/0.60a0 - https://github.com/simonw/datasette/releases/tag/0.60a1

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Release notes for 0.60 1102484126  
1012554208 https://github.com/simonw/datasette/issues/1588#issuecomment-1012554208 https://api.github.com/repos/simonw/datasette/issues/1588 IC_kwDOBm6k_c48Wlng simonw 9599 2022-01-13T22:07:15Z 2022-01-13T22:07:15Z OWNER

This works now: https://latest.datasette.io/fixtures?sql=explain+query+plan++select+*+from+facetable

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
`explain query plan select` is too strict about whitespace 1097101917  
1012552760 https://github.com/simonw/datasette/issues/650#issuecomment-1012552760 https://api.github.com/repos/simonw/datasette/issues/650 IC_kwDOBm6k_c48WlQ4 simonw 9599 2022-01-13T22:04:56Z 2022-01-13T22:04:56Z OWNER

Challenge: explain the difference between view as in SQL view, and view as in the code that serves TableView / DatabaseView etc.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Add a glossary to the documentation 534629631  
1012546924 https://github.com/simonw/datasette/issues/1336#issuecomment-1012546924 https://api.github.com/repos/simonw/datasette/issues/1336 IC_kwDOBm6k_c48Wj1s simonw 9599 2022-01-13T21:55:58Z 2022-01-13T21:55:58Z OWNER

See also: - #1412

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Document turning on WAL for live served SQLite databases 895686039  
1012546223 https://github.com/simonw/datasette/issues/1466#issuecomment-1012546223 https://api.github.com/repos/simonw/datasette/issues/1466 IC_kwDOBm6k_c48Wjqv simonw 9599 2022-01-13T21:54:51Z 2022-01-13T21:54:51Z OWNER

Going with this for the copy:

Datasette Desktop is a packaged Mac application which bundles Datasette together with Python and allows you to install and run Datasette directly on your laptop. This is the best option for local installation if you are not comfortable using the command line.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Add Datasette Desktop to installation documentation 991467558  
1012536257 https://github.com/simonw/datasette/issues/1594#issuecomment-1012536257 https://api.github.com/repos/simonw/datasette/issues/1594 IC_kwDOBm6k_c48WhPB simonw 9599 2022-01-13T21:38:48Z 2022-01-13T21:38:48Z OWNER

https://docs.datasette.io/en/latest/cli-reference.html

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Add a CLI reference page to the docs, inspired by sqlite-utils 1102359726  
1012535024 https://github.com/simonw/datasette/issues/1594#issuecomment-1012535024 https://api.github.com/repos/simonw/datasette/issues/1594 IC_kwDOBm6k_c48Wg7w simonw 9599 2022-01-13T21:36:53Z 2022-01-13T21:36:53Z OWNER

I went with a simpler pattern that sqlite-utils because Datasette has a lot less commands: https://github.com/simonw/datasette/blob/4b23f01f3e668c8f2a2f1a294be49f49b4073969/docs/cli-reference.rst#L9-L35

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Add a CLI reference page to the docs, inspired by sqlite-utils 1102359726  
1012508787 https://github.com/simonw/datasette/issues/1594#issuecomment-1012508787 https://api.github.com/repos/simonw/datasette/issues/1594 IC_kwDOBm6k_c48Wahz simonw 9599 2022-01-13T20:56:14Z 2022-01-13T20:56:34Z OWNER

The implementation can be almost exactly the same as this: https://github.com/simonw/sqlite-utils/blame/74586d3cb26fa3cc3412721985ecdc1864c2a31d/docs/cli-reference.rst#L11-L76

I need to do something extra to ensure the output of datasette --help-settings is shown too.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Add a CLI reference page to the docs, inspired by sqlite-utils 1102359726  
1012506595 https://github.com/simonw/datasette/issues/1591#issuecomment-1012506595 https://api.github.com/repos/simonw/datasette/issues/1591 IC_kwDOBm6k_c48WZ_j simonw 9599 2022-01-13T20:52:56Z 2022-01-13T20:52:56Z OWNER

You can already run datasette --help-settings to see detailed help on available settings. Maybe datasette --help-plugin-settings could do the same thing for plugin settings?

Or I could even have available plugin settings show up as a list at the bottom of the datasette --help-settings output - which currently looks like this:

% datasette --help-settings Settings: default_page_size Default page size for the table view (default=100) max_returned_rows Maximum rows that can be returned from a table or custom query (default=1000) num_sql_threads Number of threads in the thread pool for executing SQLite queries (default=3) sql_time_limit_ms Time limit for a SQL query in milliseconds (default=1000) default_facet_size Number of values to return for requested facets (default=30) facet_time_limit_ms Time limit for calculating a requested facet (default=200) facet_suggest_time_limit_ms Time limit for calculating a suggested facet (default=50) hash_urls Include DB file contents hash in URLs, for far- future caching (default=False) allow_facet Allow users to specify columns to facet using ?_facet= parameter (default=True) allow_download Allow users to download the original SQLite database files (default=True) suggest_facets Calculate and display suggested facets (default=True) default_cache_ttl Default HTTP cache TTL (used in Cache-Control: max-age= header) (default=5) default_cache_ttl_hashed Default HTTP cache TTL for hashed URL pages (default=31536000) cache_size_kb SQLite cache size in KB (0 == use SQLite default) (default=0) allow_csv_stream Allow .csv?_stream=1 to download all rows (ignoring max_returned_rows) (default=True) max_csv_mb Maximum size allowed for CSV export in MB - set 0 to disable this limit (default=100) truncate_cells_html Truncate cells longer than this in HTML table view - set 0 to disable (default=2048) force_https_urls Force URLs in API output to always use https:// protocol (default=False) template_debug Allow display of template debug information with ?_context=1 (default=False) trace_debug Allow display of SQL trace debug information with ?_trace=1 (default=False) base_url Datasette URLs should use this base path (default=/)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Maybe let plugins define custom serve options? 1100015398  
1012505706 https://github.com/simonw/datasette/issues/1591#issuecomment-1012505706 https://api.github.com/repos/simonw/datasette/issues/1591 IC_kwDOBm6k_c48WZxq simonw 9599 2022-01-13T20:51:30Z 2022-01-13T20:51:30Z OWNER

Another option: if I make plugin settings a higher level concept in Datasette than they are at the moment, I could allow them to be set either using --options OR using the existing metadata.yml/json mechanism. https://docs.datasette.io/en/stable/plugins.html#plugin-configuration

I want to make changes to that anyway, because I'm increasingly uncomfortable with plugin settings ending up in the "metadata" mechanism.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Maybe let plugins define custom serve options? 1100015398  
1012504251 https://github.com/simonw/datasette/issues/1591#issuecomment-1012504251 https://api.github.com/repos/simonw/datasette/issues/1591 IC_kwDOBm6k_c48WZa7 simonw 9599 2022-01-13T20:49:19Z 2022-01-13T20:49:59Z OWNER

I try to stick pretty closely to what Click supports, and Click likes you to define options explicitly so that it can display them in the output of --help.

But... that makes me think that actually showing these options in --help is likely a better idea. My --plugin-setting concept would have help that looks something like this: % datasette serve --help ... --plugin-setting <TEXT TEXT TEXT>... Setting for a specified plugin. That's not great help!

The alternative would be to allow plugins to register their extra options with the command - which would mean the help output could look like this instead: % datasette serve --help ... --tiddlywiki-db <TEXT> Name of database to use for datasette-tiddlywiki This feels like a good argument to me for plugins to explicitly register their settings. I'm not sure if I should enforce the name-of-plugin- prefix, or if I should allow plugins to define any setting they like. I'm still nervous about plugins over-riding existing or future default options to that command.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Maybe let plugins define custom serve options? 1100015398  
1011855133 https://github.com/simonw/sqlite-utils/issues/348#issuecomment-1011855133 https://api.github.com/repos/simonw/sqlite-utils/issues/348 IC_kwDOCGYnMM48T68d simonw 9599 2022-01-13T07:06:59Z 2022-01-13T07:06:59Z OWNER

Wrote a lot more about this feature here: https://simonwillison.net/2022/Jan/12/how-i-build-a-feature/

{
    "total_count": 3,
    "+1": 3,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Command for creating an empty database 1067771698  

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 566.549ms · About: github-to-sqlite
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows