Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with different badge slugs #209

Open
josmas opened this issue Oct 1, 2016 · 1 comment
Open

Issue with different badge slugs #209

josmas opened this issue Oct 1, 2016 · 1 comment

Comments

@josmas
Copy link
Member

josmas commented Oct 1, 2016

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
Copy link
Member Author

josmas commented Oct 27, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant