Jump to content

Talk:Toolhub

Add topic
From Meta, a Wikimedia project coordination wiki
Latest comment: 1 month ago by BDavis (WMF) in topic Annotation of source code repository URL

Annotation of source code repository URL

[edit]

Is it possible for normal users to annotate tools with their source code repository URL? The API returns some annotations with repository URLs, for instance for Mix'n'Match's entry (see that the root repository field is blank, but the annotations.repository field is filled). This makes me suspect that such annotations have been possible at some point. But I can't find the corresponding field in the editing UI. Has it been removed on purpose? − Pintoch (talk) 08:19, 6 August 2025 (UTC)Reply

Repository should be available as an annotation, but I believe it will only show when you are editing via the web UI when the base toolinfo record has left the field blank. A perhaps non-obvious aspect of the annotations layer is that an annotation field is only displayed in the web UI if the corresponding core toolinfo field is empty. Because of this there is some business logic in the web edit interface to hide annotation fields that would not be rendered if they were populated.
When editing directly via the API (https://toolhub.wikimedia.org/api-docs#put-/api/tools/-name-/annotations/) the field would always be available. -- BDavis (WMF) (talk) 21:24, 7 January 2026 (UTC)Reply