dependabot[bot]
71f672c59d
Bump the python-packages group across 1 directory with 3 updates
...
Bumps the python-packages group with 3 updates in the / directory: [furo](https://github.com/pradyunsg/furo ), [blacken-docs](https://github.com/asottile/blacken-docs ) and [black](https://github.com/psf/black ).
Updates `furo` from 2024.8.6 to 2025.7.19
- [Release notes](https://github.com/pradyunsg/furo/releases )
- [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md )
- [Commits](https://github.com/pradyunsg/furo/compare/2024.08.06...2025.07.19 )
Updates `blacken-docs` from 1.19.1 to 1.20.0
- [Changelog](https://github.com/adamchainz/blacken-docs/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/asottile/blacken-docs/compare/1.19.1...1.20.0 )
Updates `black` from 25.1.0 to 25.9.0
- [Release notes](https://github.com/psf/black/releases )
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md )
- [Commits](https://github.com/psf/black/compare/25.1.0...25.9.0 )
---
updated-dependencies:
- dependency-name: furo
dependency-version: 2025.7.19
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: python-packages
- dependency-name: blacken-docs
dependency-version: 1.20.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: python-packages
- dependency-name: black
dependency-version: 25.9.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: python-packages
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-10-10 13:03:39 +00:00
Simon Willison
ec38ad3768
Add DatabaseContext dataclass for consistent template context documentation ( #2513 )
...
Refs:
- #1510
- #2333
Claude Code:
Created DatabaseContext as a documented dataclass following the same pattern
as the existing QueryContext. This change replaces the inline dictionary
context creation with an explicit dataclass that:
- Documents all 21 template context variables with help metadata
- Inherits from the Context base class for identification
- Provides better IDE support and type safety
- Makes template variables discoverable without reading code
Also updated QueryContext to inherit from Context for consistency.
2025-10-09 12:54:02 -07:00
Simon Willison
659673614a
Refactor debug templates to use shared JavaScript functions
...
Extracted common JavaScript utilities from debug_allowed.html, debug_check.html, and debug_rules.html into a new _debug_common_functions.html include template. This eliminates code duplication and improves maintainability.
The shared functions include:
- populateFormFromURL(): Populates form fields from URL query parameters
- updateURL(formId, page): Updates browser URL with form values
- escapeHtml(text): HTML escaping utility
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-08 21:53:34 -07:00
Simon Willison
e2a739c496
Fix for asyncio.iscoroutinefunction deprecation warnings
...
Closes #2512
Refs https://github.com/simonw/asyncinject/issues/18
2025-10-08 20:32:16 -07:00
Simon Willison
27084caa04
New allowed_resources_sql plugin hook and debug tools ( #2505 )
...
* allowed_resources_sql plugin hook and infrastructure
* New methods for checking permissions with the new system
* New /-/allowed and /-/check and /-/rules special endpoints
Still needs to be integrated more deeply into Datasette, especially for listing visible tables.
Refs: #2502
---------
Co-authored-by: Claude <noreply@anthropic.com>
2025-10-08 14:27:51 -07:00
Simon Willison
85da8474d4
Python 3.14, drop Python 3.9
...
Closes #2506
2025-10-08 13:11:32 -07:00
Simon Willison
909448fb7a
Run CLI coroutines on explicit event loops
...
With the help of Codex CLI: https://gist.github.com/simonw/d2de93bfdf85a014a29093720c511093
2025-10-01 12:59:14 -07:00
Simon Willison
5d09ab3ff1
Remove legacy event_loop fixture usage
2025-10-01 12:51:23 -07:00
Simon Willison
571ce651c1
Use venv Python to launch datasette fixtures
2025-10-01 12:49:09 -07:00
Simon Willison
d87bd12dbc
Remove obsolete mix_stderr=False
2025-09-30 14:33:24 -07:00
Simon Willison
9dc2a3ffe5
Removed broken refs to Glitch, closes #2503
2025-09-28 21:15:58 -07:00
Simon Willison
7a602140df
catalog_views table, closes #2495
...
Refs https://github.com/datasette/datasette-queries/issues/1#issuecomment-3074491003
2025-07-15 10:22:56 -07:00
Simon Willison
e2497fdb59
Replace Glitch with Codespaces, closes #2488
2025-05-28 19:17:22 -07:00
Simon Willison
1c77a7e33f
Fix global-power-points references
...
Refs https://github.com/simonw/datasette.io/issues/167
2025-05-28 19:07:46 -07:00
Simon Willison
6f7f4c7d89
Release 1.0a19
...
Refs #2479
2025-04-21 22:38:53 -07:00
Simon Willison
f4274e7a2e
CSS fix for table headings on mobile, closes #2479
2025-04-21 22:33:34 -07:00
Simon Willison
271aa09056
Release 1.0a18
...
Refs #2466 , #2468 , #2470 , #2476 , #2477
2025-04-16 22:16:25 -07:00
Jack Stratton
d5c6e502fb
fix: tilde encode database name in expanded foreign key links ( #2476 )
...
* Tilde encode database for expanded foreign key links
* Test for foreign key fix in #2476
---------
Co-authored-by: Simon Willison <swillison@gmail.com>
2025-04-16 22:15:11 -07:00
Simon Willison
f2485dce9c
Hide FTS tables that have content=
...
* Hide FTS tables that have content=, closes #2477
2025-04-16 21:44:09 -07:00
Simon Willison
f6446b3095
Further wording tweaks
2025-04-16 08:25:03 -07:00
Simon Willison
d03273e205
Wording tweak
2025-04-16 08:19:22 -07:00
Simon Willison
d021ce97aa
Note that only first actor_from_request value is respected
...
https://github.com/datasette/datasette-profiles/issues/4#issuecomment-2758588167
2025-03-27 09:09:57 -07:00
Simon Willison
7945f4fbf2
Improved docs for db.get_all_foreign_keys()
2025-03-12 15:42:11 -07:00
dependabot[bot]
da209ed2ba
Drop 3.8 testing, add 3.13 testing, upgrade Black
...
Also bump some GitHub Actions versions.
2025-03-09 20:45:18 -07:00
Simon Willison
333f786cb0
Correct syntax for link headers, closes #2470
2025-03-09 20:05:43 -05:00
Simon Willison
6e512caa59
Upgrade to actions/cache@v4
...
v2 no longer works.
2025-02-28 22:57:22 -08:00
Simon Willison
209bdee0e8
Don't run prepare_connection() on internal database, closes #2468
2025-02-18 10:23:23 -08:00
Simon Willison
e59fd01757
Fix for incorrect REFERENCES in internal DB
...
Refs #2466
2025-02-12 19:40:43 -08:00
Simon Willison
cd9182a551
Release 1.0a17
...
Refs #1690 , #1943 , #2422 , #2424 , #2441 , #2454 , #2455 , #2458 , #2460 , #2465
2025-02-06 11:12:34 -08:00
Simon Willison
7f23411002
Call db.close() in ds.remove_database()
...
https://github.com/simonw/datasette/issues/2465#issuecomment-2640712713
2025-02-06 10:46:11 -08:00
Simon Willison
f95ac19e71
Fix to support replacing a database, closes #2465
2025-02-06 10:32:47 -08:00
Simon Willison
53a3b3c80e
Test improvements and fixed deprecation warnings ( #2464 )
...
* `asyncio_default_fixture_loop_scope = function`
* Fix a bunch of BeautifulSoup deprecation warnings
* Fix for PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO [closed]>
* xfail for sql_time_limit tests (these can be flaky in CI)
Refs #2461
2025-02-04 14:49:52 -08:00
Simon Willison
962da77d61
Try the event_loop fixture ( #2463 )
...
Refs https://github.com/simonw/datasette/issues/2461#issuecomment-2634920351
2025-02-04 11:56:19 -08:00
Simon Willison
b9047d812a
Skip the serial marked tests in pytest coverage
...
Refs https://github.com/simonw/datasette/issues/2461#issuecomment-2634896235
2025-02-04 11:37:01 -08:00
Simon Willison
9e41d19f73
pytest.mark.serial on CLI tests, refs #2461
2025-02-04 11:28:16 -08:00
Simon Willison
f57977a08f
/-/permissions?filter=exclude-yours/only-yours - closes #2460
2025-02-04 11:09:44 -08:00
Simon Willison
4dff846271
simple_primary_key now uses integer id, helps close #2458
2025-02-01 21:44:53 -08:00
dependabot[bot]
d48e5ae0ce
Bump rollup from 3.3.0 to 3.29.5 ( #2432 )
...
Bumps [rollup](https://github.com/rollup/rollup ) from 3.3.0 to 3.29.5.
- [Release notes](https://github.com/rollup/rollup/releases )
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rollup/rollup/compare/v3.3.0...v3.29.5 )
---
updated-dependencies:
- dependency-name: rollup
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-01 17:03:30 -08:00
Simon Willison
b190b87ec6
Detect single unique text column in label_column_for_table, closes #2458
...
Also added new tests for label_column_for_table()
2025-02-01 17:02:49 -08:00
Simon Willison
d9a450b197
Show registered permissions on /-/permissions
...
Closes #1943
2025-01-15 17:42:13 -08:00
Simon Willison
308c243cfd
datasette.set_actor_cookie() and datasette.delete_actor_cookie(), closes #1690
2025-01-15 17:37:25 -08:00
Simon Willison
37873e02b0
Better breadcrumbs on database and table page, closes #2454
2025-01-09 10:07:03 -08:00
Simon Willison
34390bbed8
Fix for params metadata error, closes #2455
2025-01-09 09:54:06 -08:00
Solomon Himelbloom
1902735c63
docs: fix time travel bug via `changelog.rst` ( #2449 )
2025-01-01 15:41:42 -08:00
Simon Willison
72f8ac680a
CI against Python 3.13
2024-11-28 17:15:54 -08:00
Simon Willison
7077b8b1ba
Changelog for 0.65.1, refs #2443
2024-11-28 17:14:27 -08:00
Simon Willison
e85517dab3
blacken-docs, refs #2441
2024-11-15 13:34:45 -08:00
Simon Willison
dce718961c
Async support for magic parameters
...
Closes #2441
2024-11-15 13:17:45 -08:00
Simon Willison
b0b600b79f
Release notes for 0.65 in main branch
...
Refs #2434
2024-10-07 10:40:57 -07:00
Simon Willison
832f76ce26
Documentation for datasette serve environment variables
...
Refs #2422 , #2424
2024-09-09 09:18:47 -07:00