       student_id: $scope.studentId,
       points_possible: $scope.pointsPossible,
       rubric_grades: $scope.gradedMetricsParams(),
-      metric_badges: $scope.metricBadgesParams(),
       tier_badges: $scope.tierBadgesParams(),
       tier_ids: $scope.selectedTierIds(),
       metric_ids: $scope.allMetricIds(),

    }

  $scope.submitGrade = ()->
    if confirm "Are you sure you want to submit the grade for this assignment?"
      self = this
      $http.put("/assignments/#{$scope.assignmentId}/grade/submit_rubric", self.gradedRubricParams()).success(
        window.location = "/assignments/#{$scope.assignmentId}"
      )

@gradecraft.controller 'GradeRubricCtrl', ['$scope', 'Restangular', '$http', ($scope, Restangular, $http) -> 

  $scope.metrics = []
  $scope.courseBadges = {}
  $scope.rubricGrades = {} # index in hash with metric_id as key
  $scope.gsiGradeStatuses = ["In Progress", "Graded"]
