out-of-cheese-error / gooseberry

A command line utility to generate a knowledge base from Hypothesis annotations
Apache License 2.0
152 stars 9 forks source link

please support fetching other annotations than personal ones #108

Open jonassmedegaard opened 3 months ago

jonassmedegaard commented 3 months ago

I do research collaboratively, using hypothes.is.

We do annotations in public, and I would love to be able to use Gooseberry for rendering annotations for the whole group.

I guess Gooseberry somewhere in the code hardcodes the username as a constraint for which annotations to fetch, and I would like to optionally be able to specify additional acct: values.

Ninjani commented 3 months ago

Implemented in PR #109, still needs testing though. You should be able to add a list of usernames to your config as hypothesis_users = [] (without the acct: part, and no need to add your own, that's always used) and then get all public annotations from those users as well. Would you be up for some testing? I've changed the tagging and deleting functionality to make sure it doesn't even attempt to modify other people's annotations but still not sure for instance how it works for annotations which are private to a group which you belong to. Also, trying to think how to add a test for this since it necessarily needs another hypothesis account.