interface/src/app/sample_annotation/annotation.js
Function success
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
sidPromise.then(function success(validSamples) {
Sample.get(
{'id__in': validSamples, 'limit': 0}, // parameters of GET
function success(response) {
// If no valid sample records are found, report the error.
Function getSampleIDPromise
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var getSampleIDPromise = function() {
var deferred = $q.defer();
// If 'signature' is found in the URL, get the activity values based on
// signature and sample(s):
if ($stateParams.signature) {