carpentries / feeds.carpentries.org

A repo to generate dynamic JSON data feeds for The Carpentries
https://feeds.carpentries.org
MIT License
3 stars 2 forks source link

tag filters in get-amy script needs be rewritten #4

Closed fmichonneau closed 5 years ago

fmichonneau commented 5 years ago

There are other changes to the API that make the current tag filters in the get-amy script not functional. Currently, any "tag" argument passed to the endpoint is ignored and all values are returned.

As indicated by Piotr (https://github.com/swcarpentry/amy/pull/1363#issuecomment-427594814), tag is now tags, and providing multiple values leads to an intersection instead of a union. Therefore the current approach of providing multiple tags (such as --tags-any=SWC,DC) will not work anymore as there shouldn't be any workshop that is both tagged with SWC and DC.