You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
graph: GET /extensions/org.libregraph/tags returns an arbitrary, unstably ordered subset of 100 tags #3889
When more than 100 distinct tags are in use, GetTags returns an arbitrary 100 of them, and the order of the list changes between calls.
GetTags collects the tags of all search results into one tags.Tags object. That type is meant for the tags of a single resource: it stops accepting tags at 100 without an error, and it puts every new tag in front of the existing ones. So which 100 tags are returned depends on the order of the search results, and so does the order of the list.
Fix: collect the distinct tags, sort them in byte order (the order in which search engines sort keyword values), and then cut the list at a documented constant of 100, so the result is deterministic and its size stays bounded.
Activity
fix(graph): list the tags in use sorted and cut at a fixed limit