Skip to content

Commit

Permalink
Link to datasette-saved-queries plugin, closes #852
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jun 20, 2020
1 parent 64cc536 commit 55a6ffb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Changelog
.. warning:: This is an **alpha** release. See :ref:`contributing_alpha_beta`.

- New :ref:`plugin_hook_startup` plugin hook. (`#834 <https://github.com/simonw/datasette/issues/834>`__)
- New :ref:`plugin_hook_canned_queries` plugin hook. (`#852 <https://github.com/simonw/datasette/issues/852>`__)
- New :ref:`plugin_hook_canned_queries` plugin hook. See `datasette-saved-queries <https://github.com/simonw/datasette-saved-queries>`__ for an example of this hook in action. (`#852 <https://github.com/simonw/datasette/issues/852>`__)
- Workaround for "Too many open files" error in test runs. (`#846 <https://github.com/simonw/datasette/issues/846>`__)
- Respect existing ``scope["actor"]`` if already set by ASGI middleware. (`#854 <https://github.com/simonw/datasette/issues/854>`__)
- New process for shipping :ref:`contributing_alpha_beta`. (`#807 <https://github.com/simonw/datasette/issues/807>`__)
Expand Down
6 changes: 5 additions & 1 deletion docs/ecosystem.rst
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,16 @@ datasette-leaflet-geojson

`datasette-leaflet-geojson <https://github.com/simonw/datasette-leaflet-geojson>`__ looks out for columns containing GeoJSON formatted geographical information and displays them on a `Leaflet-powered <https://leafletjs.com/>`__ map.


datasette-pretty-json
---------------------

`datasette-pretty-json <https://github.com/simonw/datasette-pretty-json>`__ seeks out JSON values in Datasette's table browsing interface and pretty-prints them, making them easier to read.

datasette-saved-queries
-----------------------

`datasette-saved-queries <https://github.com/simonw/datasette-saved-queries>`__ lets users interactively save queries to a ``saved_queries`` table. They are then made available as additional :ref:`canned queries <canned_queries>`.

datasette-haversine
-------------------

Expand Down
6 changes: 5 additions & 1 deletion docs/plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1028,9 +1028,11 @@ Or you can return an async function which will be awaited on startup. Use this o
Potential use-cases:

* Run some initialization code for the plugin
* Create database tables that a plugin needs
* Create database tables that a plugin needs on startup
* Validate the metadata configuration for a plugin on startup, and raise an error if it is invalid

Example: `datasette-saved-queries <https://github.com/simonw/datasette-saved-queries>`__

.. _plugin_hook_canned_queries:

canned_queries(datasette, database, actor)
Expand Down Expand Up @@ -1098,6 +1100,8 @@ The actor parameter can be used to include the currently authenticated actor in
} for result in results}
return inner
Example: `datasette-saved-queries <https://github.com/simonw/datasette-saved-queries>`__

.. _plugin_hook_actor_from_request:

actor_from_request(datasette, request)
Expand Down

0 comments on commit 55a6ffb

Please sign in to comment.