Sha256: 087c43fe15075a7437402c12946f882d7fd8ecccc088c7f339b7fe12fa8e6a2a

Contents?: true

Size: 915 Bytes

Versions: 13

Compression:

Stored size: 915 Bytes

Contents

/**
 * @ngdoc service
 * @name  Bastion.content-hosts.factory:HostErratum
 *
 * @requires BastionResource
 *
 * @description
 *   Provides a BastionResource for the errata of a single content host
 */
angular.module('Bastion.hosts').factory('HostErratum',
    ['BastionResource', function (BastionResource) {

        return BastionResource('/api/v2/hosts/:id/errata/:errata_id/:action', {id: '@id'}, {
            get: {method: 'GET', isArray: false, transformResponse: function (data) {
                data = angular.fromJson(data);
                angular.forEach(data.results, function (errata) {
                    errata.unselectable = !errata.installable;
                });
                return data;
            }},
            autocomplete: {method: 'GET', isArray: true, params: {action: 'auto_complete_search'}},
            apply: {method: 'PUT', params: {action: 'apply'}}
        });

    }]
);

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
katello-3.1.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.1.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.1.0.rc2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.0.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.1.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.0.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.0.0.rc7 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.0.0.rc5 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.0.0.rc4 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.0.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.0.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.0.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js