Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show hooks implemented by each plugin on /-/plugins #794

Closed
simonw opened this issue Jun 2, 2020 · 2 comments
Closed

Show hooks implemented by each plugin on /-/plugins #794

simonw opened this issue Jun 2, 2020 · 2 comments

Comments

@simonw
Copy link
Owner

simonw commented Jun 2, 2020

e.g.

    {
        "name": "qs_actor.py",
        "static": false,
        "templates": false,
        "version": null,
        "hooks": [
            "actor_from_request"
        ]
    }
@simonw
Copy link
Owner Author

simonw commented Jun 2, 2020

Demo: https://latest.datasette.io/-/plugins?all=1

[
  {
    "name": "datasette.facets",
    "static": false,
    "templates": false,
    "version": null,
    "hooks": [
      "register_facet_classes"
    ]
  },
  {
    "name": "datasette.publish.cloudrun",
    "static": false,
    "templates": false,
    "version": null,
    "hooks": [
      "publish_subcommand"
    ]
  },
  {
    "name": "datasette.actor_auth_cookie",
    "static": false,
    "templates": false,
    "version": null,
    "hooks": [
      "actor_from_request"
    ]
  },
  {
    "name": "datasette.default_permissions",
    "static": false,
    "templates": false,
    "version": null,
    "hooks": [
      "permission_allowed"
    ]
  },
  {
    "name": "datasette.sql_functions",
    "static": false,
    "templates": false,
    "version": null,
    "hooks": [
      "prepare_connection"
    ]
  },
  {
    "name": "datasette.publish.heroku",
    "static": false,
    "templates": false,
    "version": null,
    "hooks": [
      "publish_subcommand"
    ]
  }
]

@simonw simonw added this to the Datasette 1.0 milestone Jun 2, 2020
@simonw
Copy link
Owner Author

simonw commented Jun 2, 2020

Another demo: https://til.simonwillison.net/-/plugins

simonw added a commit that referenced this issue Jun 2, 2020
Also added /-/plugins?all=1 parameter to see default plugins.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant