Sha256: 340896bf4f9855dc9ff1b2888fd22663caaa736dc398edf1e6b0634a113b0bb1

Contents?: true

Size: 1019 Bytes

Versions: 199

Compression:

Stored size: 1019 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;
            }},
            regenerateApplicability: {method: 'PUT', isArray: false, params: {action: 'applicability'}},
            autocomplete: {method: 'GET', isArray: true, params: {action: 'auto_complete_search'}},
            apply: {method: 'PUT', params: {action: 'apply'}}
        });

    }]
);

Version data entries

199 entries across 199 versions & 1 rubygems

Version Path
katello-4.15.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-4.15.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-4.14.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-4.14.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-4.14.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-4.14.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-4.14.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-4.14.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-4.13.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-4.13.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-4.12.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-4.13.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-4.12.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-4.12.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-4.12.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-4.12.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-4.11.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-4.11.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-4.11.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-4.11.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js