Datasette 1.0a28のリリース
本文の状態
日本語全文を表示中
詳細モードで約1分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
Simon Willison Blog
Simon Willison氏により、Datasette Cloudのアップグレードで発見された1.0a27版の互換性バグを修正した「Datasette 1.0a28」がリリースされた。
Continue in AI NEW LAB
このニュースを、実務の判断につなげる
AI NEW LABで、試したことや先に確認したい条件を共有できます。まずはログインなしで読めます。
AI NEW LABで論点を見るSource Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
datasette 1.0a28
リリース: datasette 1.0a28
Datasette Cloudを1.0a27にアップグレードしていた際、そのアルファ版(alpha)の変更によって引き起こされた厄介な一連の予期せぬ破壊(バグ)を発見しました。この新しいアルファ版は、それらを直接修正しています:
- 1.0a27で導入された互換性バグを修正しました。conn以外のパラメータ名を持つexecute_write_fn()(データベース書き込み関数)のコールバックでエラーが発生する問題です。(#2691)
- database.close()(データベースのクローズ)メソッドは、現在、そのデータベースの書き込み接続もシャットダウンするようになりました。
- Datasetteインスタンスに関連するすべてのデータベースとリソースを閉じるための新しいdatasette.close()(Datasetteのクローズ)メソッドを追加しました。これはサーバーがシャットダウンする際に自動的に呼び出されます。(#2693)
- Datasetteには、関数スコープのフィクスチャ(function-scoped fixtures)やテスト中に作成された一時インスタンスに対してdatasette.close()を自動的に呼び出すpytestプラグイン(pytest plugin)が含まれるようになりました。詳細は「Datasetteインスタンスの自動クリーンアップ」をご覧ください。これにより、Datasette 1.0a27で導入されたDatabase(is_temp_disk=True)(一時ディスクを使用するデータベース)機能以前に書かれたプラグインのテストスイートでファイルディスクリプタ(file descriptors)が枯渇するのを防ぐのに役立ちます。(#2692)
タグ: datasette
原文を表示
Release: datasette 1.0a28
I was upgrading Datasette Cloud to 1.0a27 and discovered a nasty collection of accidental breakages caused by changes in that alpha. This new alpha addresses those directly:
Fixed a compatibility bug introduced in 1.0a27 where execute_write_fn() callbacks with a parameter name other than conn were seeing errors. (#2691)
The database.close() method now also shuts down the write connection for that database.
New datasette.close() method for closing down all databases and resources associated with a Datasette instance. This is called automatically when the server shuts down. (#2693)
Datasette now includes a pytest plugin which automatically calls datasette.close() on temporary instances created in function-scoped fixtures and during tests. See Automatic cleanup of Datasette instances for details. This helps avoid running out of file descriptors in plugin test suites that were written before the Database(is_temp_disk=True) feature introduced in Datasette 1.0a27. (#2692)
Tags: datasette
関連記事
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み