Skip to content

fix: add backwards-compatible shim(s) for 0.x to 1.0 transition#2656

Open
RamiNoodle733 wants to merge 1 commit intosimonw:mainfrom
RamiNoodle733:fix/issue-2638
Open

fix: add backwards-compatible shim(s) for 0.x to 1.0 transition#2656
RamiNoodle733 wants to merge 1 commit intosimonw:mainfrom
RamiNoodle733:fix/issue-2638

Conversation

@RamiNoodle733
Copy link
Copy Markdown

@RamiNoodle733 RamiNoodle733 commented Mar 7, 2026

Implements a minimal backwards-compatible shim for permission APIs to ease plugin compatibility across Datasette 0.x and 1.0.

What this does

  • Adds Datasette.permission_allowed(...) as a compatibility wrapper that delegates to Datasette.allowed(...).
  • Supports legacy resource formats accepted by older plugins:
    • None
    • "database"
    • ("database", "table")
  • Adds targeted tests for mapping behavior and invalid resource handling.

Fixes #2638


📚 Documentation preview 📚: https://datasette--2656.org.readthedocs.build/en/2656/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ease transition from 0.x to 1.0 through backwards compatible shims

1 participant