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 · 1 comment
Open

List issued labels #237

paboum opened this issue Nov 19, 2024 · 1 comment

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;

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

1 participant