Sha256: 5e064ecc1e97b3f78dfe3fd04575c885ff4d8ffde2f94b351187f8afa60f7f26

Contents?: true

Size: 1020 Bytes

Versions: 25

Compression:

Stored size: 1020 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

25 entries across 25 versions & 1 rubygems

Version Path
katello-3.5.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.4.5 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.4.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.4.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.4.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.4.0.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.4.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.3.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.4.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.4.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.4.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.3.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.3.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.3.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.3.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.3.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.3.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.2.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
katello-3.2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js