sib-swiss / glittr

A web application for finding and comparing bioinformatics training materials on GitHub and GitLab
https://glittr.org
MIT License
35 stars 1 forks source link

Tag order during API calls #36

Closed GeertvanGeest closed 2 hours ago

GeertvanGeest commented 3 hours ago

When I do an API call for a specific repository, e.g. https://glittr.org/api/repositories?filter[name]=theislab/single-cell-tutorial, the tag order is the same as represented on the website. In the example the first (and main tag) would be 'Single-cell sequencing'. However, when I do an API call on all repositories with https://glittr.org/api/repositories. The order of the tags is different (the example is entry 42):

Screenshot 2024-10-18 at 09 59 34

Here, the main tag is 'Python'. I would expect to see the same tag order here as on the website.

GeertvanGeest commented 2 hours ago

The tag order is also correct with pages:

https://glittr.org/api/repositories?page[size]=50&page[number]=1

Screenshot 2024-10-18 at 10 23 11
yhaefligsib commented 2 hours ago

the order of tags has been fixed in API calls image

GeertvanGeest commented 2 hours ago

Thanks a lot @yhaefligsib !