AmericanCouncils / AyamelResourceApiServer

RESTful API server for managing multimedia resource objects for language learning applications.
http://api.ayamel.org
MIT License
4 stars 5 forks source link

Filtering Problems in Production #233

Closed cmac1000 closed 4 years ago

cmac1000 commented 10 years ago

Although the tests seem to be properly testing the search filters, they aren't all working as expected in production.

For example, with this URL:

/search?filter:language=ar&limit=10&q=russian&skip=0

I get, among others, this result:

resource: {id:53501ea71bc7cb5f2a000000, title:Anastasia (Russian), description:Russian, keywords:Russian,…} client: {id:byu_demo, name:BYU Demos} content: {,…} dateAdded: "1397759655" dateModified: "1397759655" description: "Russian" id: "53501ea71bc7cb5f2a000000" keywords: "Russian" languages: {iso639_3:[rus]} iso639_3: [rus] relations: [] status: "normal" title: "Anastasia (Russian)" type: "document" score: 1.7022554

Which should not be included, as it lacks an "ar" language code. A few other filters are also performing unexpectedly in production.

evillemez commented 10 years ago

Huh... why that's preposterous! I'll look into it tomorrow.