Permalink
Commits on Jun 3, 2013
  1. Minor refactoring.

    brianloveswords committed Jun 3, 2013
  2. Recommend offline badges.

    Though we bias towards online badges, we will now also recommend offline
    badges so long as they are active. A program is "active" if it's after
    the start date, but before the end date (both inclusive).
    brianloveswords committed Jun 3, 2013
  3. Fix badge fixture.

    brianloveswords committed Jun 3, 2013
  4. Merge pull request #182 from mozilla/172-user-recommendations

    User recommendations, level 1
    cmcavoy committed Jun 3, 2013
  5. Starting the recommendation system.

    Right now we are doing the following:
    
    * Filter earned badges
    * Filter category-level badges
    * Filter offline badges
    
    We store this collection as `allBadges`, then
    
    * Filter participation badges
    * Filter badges that belong to categories where the user has already
      earned the category-level badge
    * Filter badges that are "off-track", meaning, badges in categories
      where the user hasn't completed any other badges.
    
    And we store this collection as `filtered`. If `filtered` is an empty
    set, we shuffle `allBadges` and recommend that set.
    
    There are a number of ways this can be improved which I have marked in a
    TODO in models/badge.js
    brianloveswords committed Jun 3, 2013
  6. Add comment.

    brianloveswords committed Jun 3, 2013
  7. Self-document options for various badge fields.

    Before now we could get away with those fields being loosely defined
    since they weren't used internally, however the badge recommendation
    engine is going to expect certain values for some of those fields. In
    order to make the model more self-documenting, I've added enum
    validators to some of the fields where we expect certain data to have a
    specific form.
    brianloveswords committed Jun 2, 2013
  8. Add authUser to req when performing an API auth

    This will make (possibly) make it simpler to use the authenticated API
    endpoints since the auth token should have the user email embedded in
    it. Endpoints that take advantage of `req.authUser` should no longer
    have to ask for the user email address.
    brianloveswords committed Jun 2, 2013
  9. Merge pull request #179 from stenington/ok-ok-okay-not-ok

    Return status ok instead of okay
    cmcavoy committed Jun 3, 2013
  10. Added a health check at /health_check, which is run at server startup.

    Also, routes/health-check.js was written to be a generic module that
    isn't specific to openbadger. We can move it to its own npm module, or
    separate git repo, if we decide it's nice.
    toolness committed Jun 3, 2013
Commits on Jun 2, 2013
  1. Rename method getRecommendations to getSimilar

    The method on the Badge model `getRecommendations` was actually getting
    similar badges based on the category of a badge. I'm about to implement
    the *actual* `getRecommendations` function, which is based on a user's
    earned badges history, as well as a handful of other rules.
    brianloveswords committed Jun 2, 2013
  2. Merge pull request #176 from mozilla/172-dumb-stub

    Badge recommendations stub.
    cmcavoy committed Jun 2, 2013
  3. Add api endpoint.

    brianloveswords committed Jun 2, 2013
  4. Show rubric items in badge detail screen.

    Fixes #171.
    toolness committed Jun 2, 2013
  5. Merge pull request #173 from mozilla/newrelic

    Add newrelic to the badger
    cmcavoy committed Jun 2, 2013
  6. Add newrelic to the badger

    JP Schneider committed Jun 2, 2013
  7. Merge pull request #170 from mozilla/165-recommend-without-user

    Add badge recommendations endpoint (for other badges, not users).
    brianloveswords committed Jun 2, 2013
  8. Update docs

    brianloveswords committed Jun 2, 2013
  9. Use categories in recommendations, remove self.

    We aren't really using tags anymore, so we should use categories to
    generate the recommended badges. Also, the badge that is used to seed
    the recommendations should not be included in the returned list.
    brianloveswords committed Jun 2, 2013
  10. upgrade node-tap.

    toolness committed Jun 2, 2013