Return plugins and hooks in predictable order

This commit is contained in:
Simon Willison 2022-01-19 21:14:04 -08:00
commit e1770766ce
3 changed files with 23 additions and 24 deletions

View file

@ -109,24 +109,6 @@ You can also use the ``datasette plugins`` command::
If you run ``datasette plugins --all`` it will include default plugins that ship as part of Datasette::
[
{
"name": "datasette.publish.heroku",
"static": false,
"templates": false,
"version": null,
"hooks": [
"publish_subcommand"
]
},
{
"name": "datasette.sql_functions",
"static": false,
"templates": false,
"version": null,
"hooks": [
"prepare_connection"
]
},
{
"name": "datasette.actor_auth_cookie",
"static": false,
@ -145,15 +127,6 @@ If you run ``datasette plugins --all`` it will include default plugins that ship
"register_output_renderer"
]
},
{
"name": "datasette.facets",
"static": false,
"templates": false,
"version": null,
"hooks": [
"register_facet_classes"
]
},
{
"name": "datasette.default_magic_parameters",
"static": false,
@ -163,6 +136,15 @@ If you run ``datasette plugins --all`` it will include default plugins that ship
"register_magic_parameters"
]
},
{
"name": "datasette.default_menu_links",
"static": false,
"templates": false,
"version": null,
"hooks": [
"menu_links"
]
},
{
"name": "datasette.default_permissions",
"static": false,
@ -173,12 +155,12 @@ If you run ``datasette plugins --all`` it will include default plugins that ship
]
},
{
"name": "datasette.default_menu_links",
"name": "datasette.facets",
"static": false,
"templates": false,
"version": null,
"hooks": [
"menu_links"
"register_facet_classes"
]
},
{
@ -198,6 +180,24 @@ If you run ``datasette plugins --all`` it will include default plugins that ship
"hooks": [
"publish_subcommand"
]
},
{
"name": "datasette.publish.heroku",
"static": false,
"templates": false,
"version": null,
"hooks": [
"publish_subcommand"
]
},
{
"name": "datasette.sql_functions",
"static": false,
"templates": false,
"version": null,
"hooks": [
"prepare_connection"
]
}
]