home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

23 rows where "updated_at" is on date 2022-08-14 and user = 9599 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 8

  • google cloudrun updated their limits on maxscale based on memory and cpu count 11
  • Upgrade to 3.10.6-slim-bullseye Docker base image 3
  • Writable canned queries fail with useless non-error against immutable databases 2
  • "Cannot use _sort and _sort_desc at the same time" 2
  • Release notes for Datasette 0.62 2
  • `handle_exception` plugin hook for custom error handling 1
  • 500 error if sorted by a column not in the ?_col= list 1
  • Ensure Datasette Lite is promoted in docs and README 1

user 1

  • simonw · 23 ✖

author_association 1

  • OWNER 23
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
1214420905 https://github.com/simonw/datasette/issues/1782#issuecomment-1214420905 https://api.github.com/repos/simonw/datasette/issues/1782 IC_kwDOBm6k_c5IYpep simonw 9599 2022-08-14T17:40:45Z 2022-08-14T17:40:45Z OWNER

Now live here: https://docs.datasette.io/en/latest/changelog.html#v0-62

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Release notes for Datasette 0.62 1338278056  
1214420523 https://github.com/simonw/datasette/issues/1782#issuecomment-1214420523 https://api.github.com/repos/simonw/datasette/issues/1782 IC_kwDOBm6k_c5IYpYr simonw 9599 2022-08-14T17:37:39Z 2022-08-14T17:37:39Z OWNER

I'm not going to write annotated release notes for this one. I think the existing release notes are detailed enough, and the most exciting parts of this release relate to Datasette Lite which I have already written about extensively (and linked from the new release notes).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Release notes for Datasette 0.62 1338278056  
1214416491 https://github.com/simonw/datasette/issues/1779#issuecomment-1214416491 https://api.github.com/repos/simonw/datasette/issues/1779 IC_kwDOBm6k_c5IYoZr simonw 9599 2022-08-14T17:07:34Z 2022-08-14T17:07:34Z OWNER

Tested that with:

datasette publish cloudrun fixtures.db --service issue-1779 --min-instances 2 --max-instances 4

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
google cloudrun updated their limits on maxscale based on memory and cpu count 1334628400  
1214414471 https://github.com/simonw/datasette/issues/1779#issuecomment-1214414471 https://api.github.com/repos/simonw/datasette/issues/1779 IC_kwDOBm6k_c5IYn6H simonw 9599 2022-08-14T16:55:40Z 2022-08-14T16:55:40Z OWNER

Here's the start of the man page for gcloud run deploy: ``` NAME gcloud run deploy - deploy a container to Cloud Run

SYNOPSIS gcloud run deploy [[SERVICE] --namespace=NAMESPACE] [--args=[ARG,...]] [--async] [--command=[COMMAND,...]] [--concurrency=CONCURRENCY] [--cpu=CPU] [--ingress=INGRESS; default="all"] [--max-instances=MAX_INSTANCES] [--memory=MEMORY] [--min-instances=MIN_INSTANCES] `` I'm going to expose--max-instancesand--min-instancesas extra option todatasette publish cloudrun`.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
google cloudrun updated their limits on maxscale based on memory and cpu count 1334628400  
1214414320 https://github.com/simonw/datasette/issues/1779#issuecomment-1214414320 https://api.github.com/repos/simonw/datasette/issues/1779 IC_kwDOBm6k_c5IYn3w simonw 9599 2022-08-14T16:54:32Z 2022-08-14T16:54:32Z OWNER

(I deleted my issue-1779 project using the UI at https://console.cloud.google.com/run?project=datasette-222320)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
google cloudrun updated their limits on maxscale based on memory and cpu count 1334628400  
1214414013 https://github.com/simonw/datasette/issues/1779#issuecomment-1214414013 https://api.github.com/repos/simonw/datasette/issues/1779 IC_kwDOBm6k_c5IYny9 simonw 9599 2022-08-14T16:52:14Z 2022-08-14T16:52:14Z OWNER

Just tried this instead, and it still worked and deployed OK:

datasette publish cloudrun fixtures.db --memory 16Gi --cpu 4 --service issue-1779

@fgregg I'm not able to replicate your deployment failure I'm afraid.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
google cloudrun updated their limits on maxscale based on memory and cpu count 1334628400  
1214413750 https://github.com/simonw/datasette/issues/1779#issuecomment-1214413750 https://api.github.com/repos/simonw/datasette/issues/1779 IC_kwDOBm6k_c5IYnu2 simonw 9599 2022-08-14T16:50:08Z 2022-08-14T16:50:08Z OWNER

Just spotted this in the failing Actions workflow:

gcloud config set run/region us-central1

I tried that locally too but the deploy still succeeds.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
google cloudrun updated their limits on maxscale based on memory and cpu count 1334628400  
1214413534 https://github.com/simonw/datasette/issues/1779#issuecomment-1214413534 https://api.github.com/repos/simonw/datasette/issues/1779 IC_kwDOBm6k_c5IYnre simonw 9599 2022-08-14T16:48:28Z 2022-08-14T16:48:28Z OWNER

datasette publish cloudrun fixtures.db --memory 8Gi --cpu 2 --service issue-1779 still works.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
google cloudrun updated their limits on maxscale based on memory and cpu count 1334628400  
1214413419 https://github.com/simonw/datasette/issues/1779#issuecomment-1214413419 https://api.github.com/repos/simonw/datasette/issues/1779 IC_kwDOBm6k_c5IYnpr simonw 9599 2022-08-14T16:47:27Z 2022-08-14T16:47:27Z OWNER

Maybe I need to upgrade: % gcloud --version Google Cloud SDK 378.0.0 alpha 2022.03.18 bq 2.0.74 core 2022.03.18 gsutil 5.8 Updates are available for some Google Cloud CLI components. To install them, please run: $ gcloud components update ``` % gcloud components update Beginning update. This process may take several minutes.

Your current Google Cloud CLI version is: 378.0.0 You will be upgraded to version: 397.0.0

┌─────────────────────────────────────────────────────────────────────────────┐ │ These components will be updated. │ ├─────────────────────────────────────────────────────┬────────────┬──────────┤ │ Name │ Version │ Size │ ├─────────────────────────────────────────────────────┼────────────┼──────────┤ │ BigQuery Command Line Tool │ 2.0.75 │ 1.6 MiB │ │ BigQuery Command Line Tool (Platform Specific) │ 2.0.75 │ < 1 MiB │ │ Cloud Storage Command Line Tool │ 5.11 │ 15.5 MiB │ │ Cloud Storage Command Line Tool (Platform Specific) │ 5.11 │ < 1 MiB │ │ Google Cloud CLI Core Libraries │ 2022.08.05 │ 24.3 MiB │ │ Google Cloud CLI Core Libraries (Platform Specific) │ 2022.08.05 │ < 1 MiB │ │ anthoscli │ 0.2.28 │ 48.0 MiB │ │ gcloud Alpha Commands │ 2022.08.05 │ < 1 MiB │ │ gcloud cli dependencies │ 2022.07.29 │ 11.2 MiB │ └─────────────────────────────────────────────────────┴────────────┴──────────┘

A lot has changed since your last upgrade. For the latest full release notes, please visit: https://cloud.google.com/sdk/release_notes % gcloud --version
Google Cloud SDK 397.0.0 alpha 2022.08.05 bq 2.0.75 core 2022.08.05 gsutil 5.11 ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
google cloudrun updated their limits on maxscale based on memory and cpu count 1334628400  
1214413161 https://github.com/simonw/datasette/issues/1779#issuecomment-1214413161 https://api.github.com/repos/simonw/datasette/issues/1779 IC_kwDOBm6k_c5IYnlp simonw 9599 2022-08-14T16:45:36Z 2022-08-14T16:45:36Z OWNER

Tried duplicating this error locally but the following command succeeded when I expected it to fail:

datasette publish cloudrun fixtures.db --memory 8Gi --cpu 2 --service issue-1779
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
google cloudrun updated their limits on maxscale based on memory and cpu count 1334628400  
1214412382 https://github.com/simonw/datasette/issues/1779#issuecomment-1214412382 https://api.github.com/repos/simonw/datasette/issues/1779 IC_kwDOBm6k_c5IYnZe simonw 9599 2022-08-14T16:40:02Z 2022-08-14T16:40:02Z OWNER

Here's the relevant part of the datasette publish command from that failed Actions workflow: datasette publish cloudrun f7.db nlrb.db opdr.db old_nlrb.db voluntary_recognitions.db work_stoppages.db lm20.db chips.db \ --memory 8Gi \ --cpu 2

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
google cloudrun updated their limits on maxscale based on memory and cpu count 1334628400  
1214412135 https://github.com/simonw/datasette/issues/1779#issuecomment-1214412135 https://api.github.com/repos/simonw/datasette/issues/1779 IC_kwDOBm6k_c5IYnVn simonw 9599 2022-08-14T16:38:08Z 2022-08-14T16:38:08Z OWNER

Actually I disagree that Datasette isn't setup to make use of container scaling: part of the idea behind the Baked Data pattern is that you can scale to handle effectively unlimited traffic by running multiple copies of your application, each with their own duplicate copy of the database.

So I'm going to default maxScale to 10 and still let people customize it.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
google cloudrun updated their limits on maxscale based on memory and cpu count 1334628400  
1214411951 https://github.com/simonw/datasette/issues/1779#issuecomment-1214411951 https://api.github.com/repos/simonw/datasette/issues/1779 IC_kwDOBm6k_c5IYnSv simonw 9599 2022-08-14T16:36:55Z 2022-08-14T16:36:55Z OWNER

I'm going to default maxscale to 2 but provide an extra command line option for datasette publish cloudrun which lets people set it to something higher if they want to.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
google cloudrun updated their limits on maxscale based on memory and cpu count 1334628400  
1214411623 https://github.com/simonw/datasette/issues/1728#issuecomment-1214411623 https://api.github.com/repos/simonw/datasette/issues/1728 IC_kwDOBm6k_c5IYnNn simonw 9599 2022-08-14T16:34:20Z 2022-08-14T16:34:20Z OWNER

Here's what it looks like:

I put the disabled attribute on the form submission button too. There's no visible difference in how that button is displayed but since this is only a state that should be seen by the developer I think that's OK, especially combined with the warning at the top of the page.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Writable canned queries fail with useless non-error against immutable databases 1218133366  
1214408558 https://github.com/simonw/datasette/issues/1728#issuecomment-1214408558 https://api.github.com/repos/simonw/datasette/issues/1728 IC_kwDOBm6k_c5IYmdu simonw 9599 2022-08-14T16:14:36Z 2022-08-14T16:14:36Z OWNER

Decision: I'm going to implement this:

Don't allow the user to even submit the form - show a message saying that this canned query is unavailable because the database cannot be written to

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Writable canned queries fail with useless non-error against immutable databases 1218133366  
1214408429 https://github.com/simonw/datasette/issues/1738#issuecomment-1214408429 https://api.github.com/repos/simonw/datasette/issues/1738 IC_kwDOBm6k_c5IYmbt simonw 9599 2022-08-14T16:13:55Z 2022-08-14T16:13:55Z OWNER

That fixed both bugs.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
"Cannot use _sort and _sort_desc at the same time" 1223527226  
1214407462 https://github.com/simonw/datasette/issues/1738#issuecomment-1214407462 https://api.github.com/repos/simonw/datasette/issues/1738 IC_kwDOBm6k_c5IYmMm simonw 9599 2022-08-14T16:08:23Z 2022-08-14T16:09:49Z OWNER

This isn't just a mobile display issue.

https://latest.datasette.io/fixtures/compound_three_primary_keys?_sort_desc=pk1 - click "Apply" and each time it adds another ?_sort_desc=pk1 to the URL.

This doesn't happen for ?_sort=pk - only for ?_sort_desc=pk1: https://latest.datasette.io/fixtures/compound_three_primary_keys?_sort=pk1

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
"Cannot use _sort and _sort_desc at the same time" 1223527226  
1214407104 https://github.com/simonw/datasette/issues/1773#issuecomment-1214407104 https://api.github.com/repos/simonw/datasette/issues/1773 IC_kwDOBm6k_c5IYmHA simonw 9599 2022-08-14T16:06:25Z 2022-08-14T16:06:25Z OWNER

https://latest.datasette.io/fixtures/sortable?_sort_desc=sortable&_col=sortable_with_nulls works now.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
500 error if sorted by a column not in the ?_col= list 1318907685  
1214405023 https://github.com/simonw/datasette/issues/1768#issuecomment-1214405023 https://api.github.com/repos/simonw/datasette/issues/1768 IC_kwDOBm6k_c5IYlmf simonw 9599 2022-08-14T15:54:11Z 2022-08-14T15:54:11Z OWNER

Also trying this locally:

datasette publish cloudrun fixtures.db --service issue-1768

https://issue-1768-j7hipcg4aq-uc.a.run.app/-/versions

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Upgrade to 3.10.6-slim-bullseye Docker base image 1296222572  
1214404690 https://github.com/simonw/datasette/issues/1768#issuecomment-1214404690 https://api.github.com/repos/simonw/datasette/issues/1768 IC_kwDOBm6k_c5IYlhS simonw 9599 2022-08-14T15:52:02Z 2022-08-14T15:52:02Z OWNER

Tested locally with:

datasette package fixtures.db --extra-options="--setting sql_time_limit_ms 2500" \
  -t datasette-package-python-upgrade

And then:

docker run -p 8081:8001 datasette-package-python-upgrade INFO: Started server process [8] INFO: Waiting for application startup. INFO: Application startup complete. INFO: Uvicorn running on http://0.0.0.0:8001 (Press CTRL+C to quit)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Upgrade to 3.10.6-slim-bullseye Docker base image 1296222572  
1214403875 https://github.com/simonw/datasette/issues/1768#issuecomment-1214403875 https://api.github.com/repos/simonw/datasette/issues/1768 IC_kwDOBm6k_c5IYlUj simonw 9599 2022-08-14T15:46:49Z 2022-08-14T15:46:49Z OWNER

https://hub.docker.com/layers/python/library/python/3.10.6-slim-bullseye/images/sha256-cf85cd32e60184a94d88a0103c289d09024abffaa77680d116d7cc837668ea15?context=explore is the most recent - 3.10.6-slim-bullseye.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Upgrade to 3.10.6-slim-bullseye Docker base image 1296222572  
1214400698 https://github.com/simonw/datasette/issues/1770#issuecomment-1214400698 https://api.github.com/repos/simonw/datasette/issues/1770 IC_kwDOBm6k_c5IYki6 simonw 9599 2022-08-14T15:25:51Z 2022-08-14T15:25:51Z OWNER

I've tested this with datasette-sentry and it works well.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
`handle_exception` plugin hook for custom error handling 1306492437  
1214399749 https://github.com/simonw/datasette/issues/1781#issuecomment-1214399749 https://api.github.com/repos/simonw/datasette/issues/1781 IC_kwDOBm6k_c5IYkUF simonw 9599 2022-08-14T15:20:09Z 2022-08-14T15:20:09Z OWNER

I'm going to promote it here too: https://docs.datasette.io/en/latest/getting_started.html

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Ensure Datasette Lite is promoted in docs and README 1338137350  

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