Sha256: 26cbabc236a04130215bce0ed36e53882ee0cbe063a0b4ccd0e27388dcbd4d5a

Contents?: true

Size: 878 Bytes

Versions: 9

Compression:

Stored size: 878 Bytes

Contents

/**
 * @ngdoc service
 * @name  Bastion.errata.factory:Erratum
 *
 * @requires BastionResource
 *
 * @description
 *   Provides a BastionResource for Errata
 */
angular.module('Bastion.errata').factory('Erratum',
    ['BastionResource', function (BastionResource) {

        return BastionResource('/katello/api/v2/errata/:id/',
            {id: '@id', 'sort_by': 'issued', 'sort_order': 'DESC'},
            {
                autocomplete: {method: 'GET', isArray: true, params: {id: 'auto_complete_search'}},
                applicableContentHosts: {method: 'GET', transformResponse: function (data) {
                    var erratum = angular.fromJson(data),
                        systems = erratum['systems_applicable'];
                    return {results: systems, subtotal: systems.length, total: systems.length};
                }}
            }
        );

    }]
);

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-2.4.5 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-2.4.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-2.4.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-2.4.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-2.4.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-2.4.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-2.4.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-2.4.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-2.4.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js