Skip to content

Menu plugin hooks should include the request #1371

@simonw

Description

@simonw

https://docs.datasette.io/en/stable/plugin_hooks.html#menu-links-datasette-actor

  • menu_links(datasette, actor)
  • table_actions(datasette, actor, database, table)
  • database_actions(datasette, actor, database)

All three of these should optionally also accept the request object. This would allow them to take into account additional cookies, Authorization headers or the current request URL (including the domain/subdomain) - or even access request.scope for extra context that might have been passed down from ASGI middleware.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions