The manual migration of badge info from badgekit to badgr resulted in some of the badge class slugs being different (data-curation != data_curation), and this is problematic for the client.
The bin folder has a script to migrate instance data, but the badge class data had previously been added manually. Automating badge info should take care of this issue (or as a quick fix, overriding the manual data in badges_only.local.sqlite would also be a good fix for now.
note: This is only reproducible from the badgr-dev branch, which I haven't pushed up yet!
For instance the two following url produce different results (0 and 1):
The manual migration of badge info from badgekit to badgr resulted in some of the badge class slugs being different (data-curation != data_curation), and this is problematic for the client.
The bin folder has a script to migrate instance data, but the badge class data had previously been added manually. Automating badge info should take care of this issue (or as a quick fix, overriding the manual data in badges_only.local.sqlite would also be a good fix for now.
For instance the two following url produce different results (0 and 1):
http://localhost:5000/papers/10.1186/2047-217X-2-10/users/0000-0002-3881-294X/badges/data_curation/count
http://localhost:5000/papers/10.1186/2047-217X-2-10/users/0000-0002-3881-294X/badges/data-curation/count