Sha256: 4c025b73fda1c5455d778d3e637dc4764bc4002c0f657189e64761793c2aec6b

Contents?: true

Size: 875 Bytes

Versions: 65

Compression:

Stored size: 875 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['hosts_applicable'];
                    return {results: systems, subtotal: systems.length, total: systems.length};
                }}
            }
        );

    }]
);

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
katello-3.15.3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-3.15.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-3.15.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-3.15.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-3.15.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-3.15.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-3.15.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-3.15.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-3.15.0.rc1.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-3.15.0.rc1.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-3.15.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-3.15.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-3.14.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-3.13.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-3.14.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-3.13.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-3.14.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-3.13.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-3.14.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js
katello-3.13.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js