app/assets/javascripts/angular/services/query/query.js.es6 in aleph_analytics-0.2.0 vs app/assets/javascripts/angular/services/query/query.js.es6 in aleph_analytics-0.3.0

- old
+ new

@@ -1,30 +1,41 @@ !(angular => { 'use strict'; - function QueryModelImports(QueryResource, ParameterMethods, StandardModel, $q) { + function QueryModelImports(QueryResource, ParameterMethods, StandardModel, TagsAndRolesComparator, $q) { return class Query extends StandardModel { constructor() { super( 'query', QueryResource, { title: '', tags: [], + roles: [], version: { body: '', + comment: '', parameters: [] - } + }, + scheduled_flag: false, + email: '' }, [ 'title', 'version.body', + 'version.comment', 'roles', - 'tags' - ] + 'tags', + 'scheduled_flag', + 'email' + ], + { + tags: ((l, r) => TagsAndRolesComparator.compare(l, r)), + roles: ((l, r) => TagsAndRolesComparator.compare(l, r)) + } ); } initItem(queryId, queryVersionId) { if (queryId && queryVersionId) { @@ -47,9 +58,9 @@ this.item.version.parameters.push(parameter); } }; } - QueryModelImports.$inject = ['QueryResource', 'ParameterMethods', 'StandardModel', '$q']; + QueryModelImports.$inject = ['QueryResource', 'ParameterMethods', 'StandardModel', 'TagsAndRolesComparator', '$q']; angular.module('alephServices.query', []).service('Query', QueryModelImports); }(angular));