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

List issued labels #237

Open
paboum opened this issue Nov 19, 2024 · 3 comments
Open

List issued labels #237

paboum opened this issue Nov 19, 2024 · 3 comments

Comments

@paboum
Copy link

paboum commented Nov 19, 2024

I would like to know what labels have been already granted to whom from my instance. AFAIU, Ozone's database already contains a table of subjects with their tags, I would just like to see the labels too.

The specific UX for this is not that much relevant, even a script would do for me. But in the future, a workspace-like panel with list of subjects and buttons/checkboxes allowing to quickly add/remove each label would be the most convenient thing. Limited to admins only perhaps.

@paboum
Copy link
Author

paboum commented Nov 20, 2024

I was able to read it directly from database:

select uri, string_agg(val, ' ') from label group by uri;

Then I was able to export a comma-separated list of DID/AT-URIs that I can put into workspace:

select string_agg(uri::text, ',') from label;

@foysalit
Copy link
Contributor

event stream is the other way of getting this. you can filter the events page to show all label events and then adding the subjects to workspace should be pretty quick. however, the pagination here can be kinda annoying since we only allow loading a max of 100 events per page.

@paboum
Copy link
Author

paboum commented Dec 30, 2024

If pagination works the same way as in xrpc api, then I'm good with: bluesky-social/atproto#2012 (reply in thread)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants