-
-
Notifications
You must be signed in to change notification settings - Fork 772
Closed
Labels
Description
In building Datasette Cloud we realized that a bunch of the features we are building need a way of resolving an actor ID to the actual actor, in order to display something more interesting than just an integer ID.
Social plugins in particular need this - comments by X, CSV uploaded by X, that kind of thing.
I think the solution is a new plugin hook: actors_from_ids(datasette, ids)
which can return a list of actor dictionaries.
The default implementation can return [{"id": "..."}]
for the IDs passed to it.
Pluggy has a firstresult=True
option which is relevant here, since this is the first plugin hook we will have implemented where only one plugin should provide an answer.