-
Notifications
You must be signed in to change notification settings - Fork 42
Adding evidence to badge instances #118
base: master
Are you sure you want to change the base?
Conversation
Seems reasonable to me, handing off to @cmcavoy to hit the merge button. |
👍 Thanks, @christensenep -- We'll start using this right away. |
Hey @christensenep shouldn't these |
Well, I thought this was a little bit different than the evidence that comes with an application. For one thing, there can be multiple evidences per application, and each evidence can have a "reflection" attached to it. But the OBI spec has the "evidence" field as a simple URL, so I think they're kind of different. I initially was doing something fairly complicated where you'd send along which application was involved with a badge award, and it would duplicate the evidence that was in that application (remember, badgekit API does not associate badge awards with application reviews, and has no idea what application resulted in a given badge award, if any). But then I realized that the OBI spec just wants a single URL for evidence, whereas we can have an arbitrary number of evidences in an application. So I figured that API consumers could decide what they want to link to (possibly a url that displays all the evidence submitted by the user in the first place). If there's some specific implementation you have in mind, though, let me know. |
I'd like a method that I could use either for badge issuing or claim code |
Have you guys considered using a document store style database for badge objects: assertions, claim-codes-for-badges, badgeclasses, issuer organizations, evidence? It would be a huge change, but in a lot of ways, I think a datastore approach to this information might be a better fit with what is getting stored. |
@ottonomy |
The spec says,
So if someone submits multiple pieces of evidence through an application, all of those links should show up on a single page, right? How are we displaying evidence urls submitted through the application process? Unless I'm wrong, it doesn't look like we're attaching them to our hosted assertions...which is a whole different issue. But, assuming we were attaching the url's to the assertions, shouldn't we use that system instead of adding a new column to the badgeinstance table? What if we extended,
to include a link to the badgeinstance (if the badge is awarded)
Something about having evidence url's in two different places depending on the way the evidence got into the system bothers me. What say ye? |
@simonwex here's the feature I was talking about! |
Thanks, @acabunoc! I'll add this to the list. |
This adds the ability to specify an evidenceUrl when awarding a badge. This will appear in the instance's assertion under the new field "evidence", as described by the specification.