codewars / codewars.com

Issue tracker for Codewars
https://www.codewars.com
BSD 2-Clause "Simplified" License
2.08k stars 219 forks source link

Search for kata with outdated testing frameworks returns false positive results #3124

Open hobovsky opened 6 months ago

hobovsky commented 6 months ago

Adding the outdated=1 search parameter is meant to filter kata which do not have the latest version of the respective language enabled. However it seems that it returns also results for languages which have only one version, for example:

The amount of outdated kata used to be a lot bigger, so I believe the broken data got fixed at some point, but it seems to come back from time to time.

kazk commented 6 months ago

The outdated search works by finding kata without the latest language version in the list of enabled versions. So we shouldn't have any for languages with only one supported version like you found, but something must have messed up the data.

Kata without any language version enabled shows a warning when you start the kata: image

I used the script to update the compatible ones when you first told me about this on Discord. The remaining ones should be incompatible, unless it came back since then for some reason.

I haven't found the root cause yet.