mozillascience / PaperBadger

Issuing badges to credit authors for their work on academic papers
https://badges.mozillascience.org/
Mozilla Public License 2.0
95 stars 45 forks source link

Issue with different badge slugs #209

Open josmas opened 8 years ago

josmas commented 8 years ago

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):

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

josmas commented 8 years ago

this is on review #211. No more work needed for now.