katello 2.2.2 → 2.4.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of katello might be problematic. Click here for more details.
- data/app/assets/javascripts/katello/common/env_select.js +0 -12
- data/app/assets/javascripts/katello/common/experimental/katello-globals.module.js +0 -13
- data/app/assets/javascripts/katello/common/index.js +0 -17
- data/app/assets/javascripts/katello/common/jquery.jeditable.custominputs.js +0 -44
- data/app/assets/javascripts/katello/common/katello.common.js +0 -13
- data/app/assets/javascripts/katello/common/katello.global.js +0 -13
- data/app/assets/javascripts/katello/common/katello.js +2 -70
- data/app/assets/javascripts/katello/common/katello_object.js +0 -13
- data/app/assets/javascripts/katello/common/menu.js +0 -13
- data/app/assets/javascripts/katello/common/vendor.js +0 -13
- data/app/assets/javascripts/katello/containers/container.js +0 -13
- data/app/assets/javascripts/katello/hosts/activation_key_edit.js +3 -3
- data/app/assets/javascripts/katello/hosts/host_and_hostgroup_edit.js +18 -4
- data/app/assets/javascripts/katello/html5/index.js +0 -12
- data/app/assets/javascripts/katello/organizations/download_certificate.js +0 -13
- data/app/assets/javascripts/katello/providers/provider_redhat.js +2 -14
- data/app/assets/javascripts/katello/providers/redhat/index.js +0 -13
- data/app/assets/javascripts/katello/sync_management/index.js +0 -13
- data/app/assets/javascripts/katello/sync_management/sync_management.js +2 -17
- data/app/assets/javascripts/katello/widgets/auto_complete.js +0 -12
- data/app/assets/javascripts/katello/widgets/env_content_view_selector.js +0 -13
- data/app/assets/javascripts/katello/widgets/filtertable/filtertable.js +0 -12
- data/app/assets/javascripts/katello/widgets/jquery.jeditable.helpers.js +0 -38
- data/app/assets/javascripts/katello/widgets/one_panel.js +0 -13
- data/app/assets/javascripts/katello/widgets/path_selector.js +0 -14
- data/app/assets/javascripts/katello/widgets/subpanel_new.js +0 -12
- data/app/assets/javascripts/katello/widgets/tabs.js +0 -13
- data/app/assets/stylesheets/katello/_katello_colors.scss +0 -2
- data/app/assets/stylesheets/katello/_katello_mixins.scss +0 -13
- data/app/assets/stylesheets/katello/_overrides.scss +0 -12
- data/app/assets/stylesheets/katello/contents.scss +0 -1
- data/app/assets/stylesheets/katello/katello.scss +0 -71
- data/app/controllers/katello/api/api_controller.rb +0 -12
- data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +29 -21
- data/app/controllers/katello/api/v2/activation_keys_controller.rb +14 -37
- data/app/controllers/katello/api/v2/api_controller.rb +12 -14
- data/app/controllers/katello/api/v2/capsule_content_controller.rb +0 -12
- data/app/controllers/katello/api/v2/capsules_controller.rb +0 -12
- data/app/controllers/katello/api/v2/content_uploads_controller.rb +0 -12
- data/app/controllers/katello/api/v2/content_view_filter_rules_controller.rb +0 -12
- data/app/controllers/katello/api/v2/content_view_filters_controller.rb +28 -76
- data/app/controllers/katello/api/v2/content_view_puppet_modules_controller.rb +23 -25
- data/app/controllers/katello/api/v2/content_view_versions_controller.rb +19 -25
- data/app/controllers/katello/api/v2/content_views_controller.rb +30 -52
- data/app/controllers/katello/api/v2/docker_images_controller.rb +0 -13
- data/app/controllers/katello/api/v2/docker_tags_controller.rb +0 -13
- data/app/controllers/katello/api/v2/environments_controller.rb +0 -21
- data/app/controllers/katello/api/v2/errata_controller.rb +18 -15
- data/app/controllers/katello/api/v2/gpg_keys_controller.rb +1 -13
- data/app/controllers/katello/api/v2/host_collections_controller.rb +14 -55
- data/app/controllers/katello/api/v2/organizations_controller.rb +26 -22
- data/app/controllers/katello/api/v2/package_groups_controller.rb +21 -13
- data/app/controllers/katello/api/v2/packages_controller.rb +19 -15
- data/app/controllers/katello/api/v2/ping_controller.rb +0 -12
- data/app/controllers/katello/api/v2/products_bulk_actions_controller.rb +0 -12
- data/app/controllers/katello/api/v2/products_controller.rb +42 -44
- data/app/controllers/katello/api/v2/puppet_modules_controller.rb +0 -19
- data/app/controllers/katello/api/v2/repositories_bulk_actions_controller.rb +0 -12
- data/app/controllers/katello/api/v2/repositories_controller.rb +73 -48
- data/app/controllers/katello/api/v2/repository_sets_controller.rb +7 -17
- data/app/controllers/katello/api/v2/root_controller.rb +0 -12
- data/app/controllers/katello/api/v2/subscriptions_controller.rb +71 -99
- data/app/controllers/katello/api/v2/sync_controller.rb +0 -12
- data/app/controllers/katello/api/v2/sync_plans_controller.rb +2 -32
- data/app/controllers/katello/api/v2/system_errata_controller.rb +38 -13
- data/app/controllers/katello/api/v2/system_packages_controller.rb +1 -13
- data/app/controllers/katello/api/v2/systems_bulk_actions_controller.rb +9 -20
- data/app/controllers/katello/api/v2/systems_controller.rb +63 -54
- data/app/controllers/katello/api/v2/uebercerts_controller.rb +0 -12
- data/app/controllers/katello/application_controller.rb +2 -42
- data/app/controllers/katello/auto_complete_search_controller.rb +0 -12
- data/app/controllers/katello/concerns/api/api_controller.rb +0 -12
- data/app/controllers/katello/concerns/api/v2/bulk_systems_extensions.rb +10 -16
- data/app/controllers/katello/concerns/api/v2/hostgroups_controller_extensions.rb +0 -12
- data/app/controllers/katello/concerns/api/v2/hosts_controller_extensions.rb +0 -12
- data/app/controllers/katello/concerns/api/v2/repository_content_controller.rb +100 -72
- data/app/controllers/katello/concerns/authorization/api/v2/content_views_controller.rb +0 -12
- data/app/controllers/katello/concerns/containers/steps_controller_extensions.rb +0 -12
- data/app/controllers/katello/concerns/filtered_auto_complete_search.rb +4 -14
- data/app/controllers/katello/concerns/hosts_controller_extensions.rb +0 -12
- data/app/controllers/katello/concerns/operatingsystems_controller_extensions.rb +0 -12
- data/app/controllers/katello/concerns/organizations_controller_extensions.rb +0 -12
- data/app/controllers/katello/errata_controller.rb +0 -12
- data/app/controllers/katello/errors_controller.rb +0 -12
- data/app/controllers/katello/failed_authentication_controller.rb +0 -14
- data/app/controllers/katello/http_errors.rb +0 -12
- data/app/controllers/katello/organizations_controller.rb +0 -13
- data/app/controllers/katello/products_controller.rb +37 -43
- data/app/controllers/katello/providers_controller.rb +1 -14
- data/app/controllers/katello/sort_column_list.rb +0 -12
- data/app/controllers/katello/sync_management_controller.rb +1 -74
- data/app/helpers/katello/activation_keys_helper.rb +0 -12
- data/app/helpers/katello/application_helper.rb +1 -34
- data/app/helpers/katello/concerns/foreman_docker/container_steps_helper_extensions.rb +0 -12
- data/app/helpers/katello/errata_mailer_helper.rb +6 -12
- data/app/helpers/katello/host_collection_events_helper.rb +0 -12
- data/app/helpers/katello/hosts_and_hostgroups_helper.rb +0 -12
- data/app/helpers/katello/katello_form_builder.rb +0 -12
- data/app/helpers/katello/katello_url_helper.rb +0 -12
- data/app/helpers/katello/katello_urls_helper.rb +1 -13
- data/app/helpers/katello/layout_helper.rb +6 -12
- data/app/helpers/katello/organizations_helper.rb +0 -12
- data/app/helpers/katello/packages_helper.rb +0 -12
- data/app/helpers/katello/products_helper.rb +0 -12
- data/app/helpers/katello/providers_helper.rb +2 -14
- data/app/helpers/katello/repositories_helper.rb +0 -12
- data/app/helpers/katello/subscriptions_helper.rb +0 -12
- data/app/helpers/katello/sync_management_helper.rb +0 -12
- data/app/helpers/katello/system_events_helper.rb +0 -12
- data/app/helpers/katello/system_packages_helper.rb +0 -12
- data/app/helpers/katello/taxonomy_helper.rb +0 -12
- data/app/helpers/katello/translation_helper.rb +0 -12
- data/app/lib/actions/abstract_async_task.rb +0 -12
- data/app/lib/actions/candlepin/abstract.rb +2 -13
- data/app/lib/actions/candlepin/abstract_async_task.rb +15 -12
- data/app/lib/actions/candlepin/activation_key/create.rb +0 -12
- data/app/lib/actions/candlepin/activation_key/destroy.rb +0 -12
- data/app/lib/actions/candlepin/activation_key/update.rb +0 -12
- data/app/lib/actions/candlepin/candlepin_listening_service.rb +12 -24
- data/app/lib/actions/candlepin/consumer/auto_attach_subscriptions.rb +0 -12
- data/app/lib/actions/candlepin/consumer/create.rb +3 -13
- data/app/lib/actions/candlepin/consumer/destroy.rb +0 -12
- data/app/lib/actions/candlepin/consumer/update.rb +0 -12
- data/app/lib/actions/candlepin/environment/create.rb +0 -12
- data/app/lib/actions/candlepin/environment/destroy.rb +0 -12
- data/app/lib/actions/candlepin/environment/set_content.rb +27 -29
- data/app/lib/actions/candlepin/import_pool_handler.rb +82 -0
- data/app/lib/actions/candlepin/listen_on_candlepin_events.rb +43 -33
- data/app/lib/actions/candlepin/owner/auto_attach.rb +0 -12
- data/app/lib/actions/candlepin/owner/create.rb +0 -12
- data/app/lib/actions/candlepin/owner/destroy.rb +0 -12
- data/app/lib/actions/candlepin/product/content_add.rb +0 -12
- data/app/lib/actions/candlepin/product/content_create.rb +0 -12
- data/app/lib/actions/candlepin/product/content_destroy.rb +0 -12
- data/app/lib/actions/candlepin/product/content_remove.rb +0 -12
- data/app/lib/actions/candlepin/product/content_update.rb +0 -12
- data/app/lib/actions/candlepin/product/create.rb +0 -12
- data/app/lib/actions/candlepin/product/create_unlimited_subscription.rb +0 -12
- data/app/lib/actions/candlepin/product/delete_pools.rb +0 -12
- data/app/lib/actions/candlepin/product/delete_subscriptions.rb +0 -12
- data/app/lib/actions/candlepin/product/destroy.rb +0 -12
- data/app/lib/actions/candlepin/product/update.rb +0 -13
- data/app/lib/actions/elastic_search/abstract.rb +1 -12
- data/app/lib/actions/elastic_search/provider/reindex_subscriptions.rb +0 -12
- data/app/lib/actions/elastic_search/reindex.rb +0 -12
- data/app/lib/actions/elastic_search/reindex_on_association_change.rb +0 -12
- data/app/lib/actions/elastic_search/repository/filtered_index_content.rb +2 -14
- data/app/lib/actions/elastic_search/repository/index_content.rb +0 -12
- data/app/lib/actions/elastic_search/repository/remove_packages.rb +0 -12
- data/app/lib/actions/foreman/environment/destroy.rb +0 -12
- data/app/lib/actions/helpers/presenter.rb +0 -12
- data/app/lib/actions/katello/activation_key/create.rb +1 -16
- data/app/lib/actions/katello/activation_key/destroy.rb +0 -13
- data/app/lib/actions/katello/activation_key/reassign.rb +0 -13
- data/app/lib/actions/katello/activation_key/update.rb +0 -13
- data/app/lib/actions/katello/capsule_content/configure_capsule.rb +0 -12
- data/app/lib/actions/katello/capsule_content/manage_bound_repositories.rb +0 -12
- data/app/lib/actions/katello/capsule_content/sync.rb +0 -12
- data/app/lib/actions/katello/capsule_content/update_without_content.rb +0 -12
- data/app/lib/actions/katello/content_view/add_to_environment.rb +0 -12
- data/app/lib/actions/katello/content_view/capsule_generate_and_sync.rb +0 -12
- data/app/lib/actions/katello/content_view/create.rb +0 -14
- data/app/lib/actions/katello/content_view/destroy.rb +0 -13
- data/app/lib/actions/katello/content_view/environment_create.rb +1 -13
- data/app/lib/actions/katello/content_view/errata_mail.rb +6 -12
- data/app/lib/actions/katello/content_view/incremental_updates.rb +0 -12
- data/app/lib/actions/katello/content_view/node_metadata_generate.rb +0 -12
- data/app/lib/actions/katello/content_view/presenters/incremental_updates_presenter.rb +2 -14
- data/app/lib/actions/katello/content_view/promote.rb +0 -12
- data/app/lib/actions/katello/content_view/publish.rb +3 -13
- data/app/lib/actions/katello/content_view/remove.rb +3 -17
- data/app/lib/actions/katello/content_view/remove_from_environment.rb +0 -12
- data/app/lib/actions/katello/content_view/remove_version.rb +1 -14
- data/app/lib/actions/katello/content_view/update.rb +0 -32
- data/app/lib/actions/katello/content_view/update_environment.rb +0 -12
- data/app/lib/actions/katello/content_view_environment/destroy.rb +0 -12
- data/app/lib/actions/katello/content_view_environment/reassign_objects.rb +0 -12
- data/app/lib/actions/katello/content_view_puppet_environment/clear.rb +0 -12
- data/app/lib/actions/katello/content_view_puppet_environment/clone.rb +2 -13
- data/app/lib/actions/katello/content_view_puppet_environment/clone_content.rb +9 -17
- data/app/lib/actions/katello/content_view_puppet_environment/create.rb +0 -14
- data/app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb +0 -12
- data/app/lib/actions/katello/content_view_puppet_environment/destroy.rb +0 -13
- data/app/lib/actions/katello/content_view_puppet_module/destroy.rb +0 -12
- data/app/lib/actions/katello/content_view_version/destroy.rb +7 -15
- data/app/lib/actions/katello/content_view_version/incremental_update.rb +3 -15
- data/app/lib/actions/katello/environment/destroy.rb +0 -12
- data/app/lib/actions/katello/environment/library_create.rb +0 -12
- data/app/lib/actions/katello/foreman/abstract.rb +0 -12
- data/app/lib/actions/katello/foreman/content_update.rb +10 -21
- data/app/lib/actions/katello/organization/auto_attach_subscriptions.rb +0 -12
- data/app/lib/actions/katello/organization/create.rb +1 -13
- data/app/lib/actions/katello/organization/destroy.rb +1 -14
- data/app/lib/actions/katello/product/content_create.rb +0 -12
- data/app/lib/actions/katello/product/content_destroy.rb +0 -12
- data/app/lib/actions/katello/product/create.rb +0 -14
- data/app/lib/actions/katello/product/destroy.rb +5 -23
- data/app/lib/actions/katello/product/repositories_gpg_reset.rb +0 -12
- data/app/lib/actions/katello/product/update.rb +2 -16
- data/app/lib/actions/katello/provider/destroy.rb +0 -13
- data/app/lib/actions/katello/provider/manifest_delete.rb +0 -12
- data/app/lib/actions/katello/provider/manifest_import.rb +0 -12
- data/app/lib/actions/katello/provider/manifest_refresh.rb +0 -12
- data/app/lib/actions/katello/provider/update.rb +38 -0
- data/app/lib/actions/katello/repository/capsule_generate_and_sync.rb +0 -12
- data/app/lib/actions/katello/repository/clear.rb +0 -12
- data/app/lib/actions/katello/repository/clone_docker_content.rb +0 -12
- data/app/lib/actions/katello/repository/clone_to_environment.rb +0 -12
- data/app/lib/actions/katello/repository/clone_to_version.rb +0 -12
- data/app/lib/actions/katello/repository/clone_yum_content.rb +1 -12
- data/app/lib/actions/katello/repository/correct_checksum.rb +0 -12
- data/app/lib/actions/katello/repository/create.rb +0 -14
- data/app/lib/actions/katello/repository/destroy.rb +9 -14
- data/app/lib/actions/katello/repository/destroy_medium.rb +12 -0
- data/app/lib/actions/katello/repository/discover.rb +25 -24
- data/app/lib/actions/katello/repository/errata_mail.rb +6 -12
- data/app/lib/actions/katello/repository/finish_upload.rb +0 -12
- data/app/lib/actions/katello/repository/import_upload.rb +0 -12
- data/app/lib/actions/katello/repository/index_errata.rb +0 -12
- data/app/lib/actions/katello/repository/index_package_groups.rb +18 -0
- data/app/lib/actions/katello/repository/metadata_generate.rb +0 -12
- data/app/lib/actions/katello/repository/node_metadata_generate.rb +0 -12
- data/app/lib/actions/katello/repository/remove_content.rb +14 -25
- data/app/lib/actions/katello/repository/sync.rb +6 -17
- data/app/lib/actions/katello/repository/update.rb +3 -18
- data/app/lib/actions/katello/repository/update_media.rb +0 -12
- data/app/lib/actions/katello/repository/upload_files.rb +0 -12
- data/app/lib/actions/katello/repository_set/disable_repository.rb +16 -19
- data/app/lib/actions/katello/repository_set/enable_repository.rb +14 -20
- data/app/lib/actions/katello/repository_set/scan_cdn.rb +43 -20
- data/app/lib/actions/katello/sync_plan/add_products.rb +0 -12
- data/app/lib/actions/katello/sync_plan/destroy.rb +0 -12
- data/app/lib/actions/katello/sync_plan/remove_products.rb +0 -12
- data/app/lib/actions/katello/sync_plan/update.rb +0 -12
- data/app/lib/actions/katello/system/activation_keys.rb +0 -12
- data/app/lib/actions/katello/system/auto_attach_subscriptions.rb +2 -14
- data/app/lib/actions/katello/system/create.rb +2 -13
- data/app/lib/actions/katello/system/destroy.rb +0 -12
- data/app/lib/actions/katello/system/erratum/applicable_errata_install.rb +0 -12
- data/app/lib/actions/katello/system/erratum/install.rb +0 -12
- data/app/lib/actions/katello/system/generate_applicability.rb +1 -13
- data/app/lib/actions/katello/system/host_destroy.rb +0 -12
- data/app/lib/actions/katello/system/package/install.rb +0 -12
- data/app/lib/actions/katello/system/package/remove.rb +0 -12
- data/app/lib/actions/katello/system/package/update.rb +0 -12
- data/app/lib/actions/katello/system/package_group/install.rb +0 -12
- data/app/lib/actions/katello/system/package_group/remove.rb +0 -12
- data/app/lib/actions/katello/system/reassign.rb +0 -12
- data/app/lib/actions/katello/system/update.rb +4 -16
- data/app/lib/actions/middleware/backend_services_check.rb +40 -0
- data/app/lib/actions/middleware/candlepin_services_check.rb +9 -0
- data/app/lib/actions/middleware/elasticsearch_services_check.rb +9 -0
- data/app/lib/actions/middleware/keep_locale.rb +0 -12
- data/app/lib/actions/middleware/propagate_candlepin_errors.rb +0 -12
- data/app/lib/actions/middleware/pulp_services_check.rb +9 -0
- data/app/lib/actions/middleware/record_fixtures.rb +0 -12
- data/app/lib/actions/middleware/remote_action.rb +3 -15
- data/app/lib/actions/pulp/abstract.rb +1 -12
- data/app/lib/actions/pulp/abstract_async_task.rb +19 -12
- data/app/lib/actions/pulp/consumer.rb +0 -12
- data/app/lib/actions/pulp/consumer/abstract_content_action.rb +0 -12
- data/app/lib/actions/pulp/consumer/abstract_node_distributor_task.rb +0 -12
- data/app/lib/actions/pulp/consumer/abstract_sync_node_task.rb +0 -12
- data/app/lib/actions/pulp/consumer/activate_node.rb +0 -12
- data/app/lib/actions/pulp/consumer/bind_node_distributor.rb +0 -12
- data/app/lib/actions/pulp/consumer/content_install.rb +0 -12
- data/app/lib/actions/pulp/consumer/content_uninstall.rb +0 -12
- data/app/lib/actions/pulp/consumer/content_update.rb +0 -12
- data/app/lib/actions/pulp/consumer/create.rb +0 -12
- data/app/lib/actions/pulp/consumer/deactivate_node.rb +0 -12
- data/app/lib/actions/pulp/consumer/destroy.rb +0 -12
- data/app/lib/actions/pulp/consumer/generate_applicability.rb +0 -12
- data/app/lib/actions/pulp/consumer/sync_node.rb +0 -12
- data/app/lib/actions/pulp/consumer/unbind_node_distributor.rb +0 -12
- data/app/lib/actions/pulp/consumer/update.rb +0 -12
- data/app/lib/actions/pulp/content_view_puppet_environment/index_content.rb +17 -0
- data/app/lib/actions/pulp/expect_one_task.rb +0 -12
- data/app/lib/actions/pulp/repos/update.rb +0 -13
- data/app/lib/actions/pulp/repository/abstract_copy_content.rb +0 -12
- data/app/lib/actions/pulp/repository/abstract_remove_content.rb +0 -12
- data/app/lib/actions/pulp/repository/associate_distributor.rb +0 -12
- data/app/lib/actions/pulp/repository/copy_distribution.rb +0 -12
- data/app/lib/actions/pulp/repository/copy_docker_image.rb +0 -12
- data/app/lib/actions/pulp/repository/copy_docker_tag.rb +0 -13
- data/app/lib/actions/pulp/repository/copy_errata.rb +0 -12
- data/app/lib/actions/pulp/repository/copy_package_group.rb +0 -12
- data/app/lib/actions/pulp/repository/copy_puppet_module.rb +0 -12
- data/app/lib/actions/pulp/repository/copy_rpm.rb +1 -13
- data/app/lib/actions/pulp/repository/copy_yum_metadata_file.rb +0 -12
- data/app/lib/actions/pulp/repository/create.rb +0 -12
- data/app/lib/actions/pulp/repository/create_in_plan.rb +0 -12
- data/app/lib/actions/pulp/repository/create_upload_request.rb +0 -12
- data/app/lib/actions/pulp/repository/delete_upload_request.rb +0 -12
- data/app/lib/actions/pulp/repository/destroy.rb +0 -12
- data/app/lib/actions/pulp/repository/distributor_publish.rb +0 -12
- data/app/lib/actions/pulp/repository/import_upload.rb +0 -12
- data/app/lib/actions/pulp/repository/presenters/abstract_sync_presenter.rb +0 -12
- data/app/lib/actions/pulp/repository/presenters/docker_presenter.rb +1 -13
- data/app/lib/actions/pulp/repository/presenters/iso_presenter.rb +0 -12
- data/app/lib/actions/pulp/repository/presenters/puppet_presenter.rb +6 -15
- data/app/lib/actions/pulp/repository/presenters/yum_presenter.rb +1 -13
- data/app/lib/actions/pulp/repository/purge_empty_errata.rb +0 -12
- data/app/lib/actions/pulp/repository/purge_empty_package_groups.rb +3 -16
- data/app/lib/actions/pulp/repository/refresh.rb +0 -12
- data/app/lib/actions/pulp/repository/refresh_distributor.rb +0 -12
- data/app/lib/actions/pulp/repository/regenerate_applicability.rb +0 -12
- data/app/lib/actions/pulp/repository/remove_distribution.rb +0 -12
- data/app/lib/actions/pulp/repository/remove_docker_image.rb +0 -12
- data/app/lib/actions/pulp/repository/remove_errata.rb +0 -12
- data/app/lib/actions/pulp/repository/remove_package_group.rb +0 -12
- data/app/lib/actions/pulp/repository/remove_puppet_module.rb +0 -12
- data/app/lib/actions/pulp/repository/remove_rpm.rb +1 -13
- data/app/lib/actions/pulp/repository/remove_schedule.rb +0 -11
- data/app/lib/actions/pulp/repository/sync.rb +5 -17
- data/app/lib/actions/pulp/repository/update_importer.rb +0 -12
- data/app/lib/actions/pulp/repository/update_schedule.rb +0 -11
- data/app/lib/actions/pulp/repository/upload_file.rb +1 -13
- data/app/lib/katello/api/constraints/activation_key_constraint.rb +0 -12
- data/app/lib/katello/api/v2/error_handling.rb +5 -12
- data/app/lib/katello/bulk_actions.rb +2 -16
- data/app/lib/katello/concerns/renderer_extensions.rb +21 -0
- data/app/lib/katello/errors.rb +5 -13
- data/app/lib/katello/foreman.rb +0 -12
- data/app/lib/katello/glue/queue.rb +0 -12
- data/app/lib/katello/glue/task.rb +0 -12
- data/app/lib/katello/http_resource.rb +2 -14
- data/app/lib/katello/lazy_accessor.rb +2 -14
- data/app/lib/katello/mapping.rb +0 -12
- data/app/lib/katello/repo_discovery.rb +27 -40
- data/app/lib/katello/resources/candlepin.rb +23 -34
- data/app/lib/katello/resources/cdn.rb +42 -18
- data/app/lib/katello/util/cdn_var_substitutor.rb +21 -16
- data/app/lib/katello/util/data.rb +0 -12
- data/app/lib/katello/util/errata.rb +0 -12
- data/app/lib/katello/util/filter_clause_generator.rb +0 -12
- data/app/lib/katello/util/model.rb +0 -12
- data/app/lib/katello/util/package.rb +21 -51
- data/app/lib/katello/util/package_clause_generator.rb +1 -13
- data/app/lib/katello/util/package_filter.rb +16 -62
- data/app/lib/katello/util/report_table.rb +0 -12
- data/app/lib/katello/util/search.rb +0 -23
- data/app/lib/katello/util/support.rb +13 -12
- data/app/lib/katello/util/task_status.rb +0 -12
- data/app/lib/katello/util/thread_session.rb +10 -22
- data/app/lib/katello/util/url_matcher.rb +0 -12
- data/app/lib/katello/validators/content_validator.rb +0 -12
- data/app/lib/katello/validators/content_view_environment_validator.rb +0 -12
- data/app/lib/katello/validators/content_view_erratum_filter_rule_validator.rb +0 -12
- data/app/lib/katello/validators/content_view_filter_version_validator.rb +0 -12
- data/app/lib/katello/validators/content_view_puppet_module_validator.rb +4 -15
- data/app/lib/katello/validators/gpg_key_content_validator.rb +0 -11
- data/app/lib/katello/validators/katello_label_format_validator.rb +0 -12
- data/app/lib/katello/validators/katello_name_format_validator.rb +0 -11
- data/app/lib/katello/validators/katello_url_format_validator.rb +0 -12
- data/app/lib/katello/validators/library_presence_validator.rb +0 -12
- data/app/lib/katello/validators/no_trailing_space_validator.rb +0 -12
- data/app/lib/katello/validators/non_library_environment_validator.rb +0 -12
- data/app/lib/katello/validators/not_in_library_validator.rb +0 -12
- data/app/lib/katello/validators/path_descendents_validator.rb +0 -12
- data/app/lib/katello/validators/prior_validator.rb +0 -12
- data/app/lib/katello/validators/product_unique_attribute_validator.rb +1 -15
- data/app/lib/katello/validators/repo_disablement_validator.rb +0 -12
- data/app/lib/katello/validators/repository_unique_attribute_validator.rb +0 -12
- data/app/lib/katello/validators/self_reference_environment_validator.rb +0 -12
- data/app/lib/katello/validators/unique_field_in_org.rb +0 -12
- data/app/mailers/katello/errata_mailer.rb +0 -12
- data/app/models/katello/activation_key.rb +23 -46
- data/app/models/katello/authorization/activation_key.rb +0 -13
- data/app/models/katello/authorization/content_view.rb +0 -13
- data/app/models/katello/authorization/content_view_environment.rb +0 -12
- data/app/models/katello/authorization/content_view_history.rb +14 -0
- data/app/models/katello/authorization/content_view_version.rb +0 -12
- data/app/models/katello/authorization/gpg_key.rb +0 -13
- data/app/models/katello/authorization/host_collection.rb +0 -13
- data/app/models/katello/authorization/lifecycle_environment.rb +0 -13
- data/app/models/katello/authorization/organization.rb +0 -13
- data/app/models/katello/authorization/pool.rb +13 -0
- data/app/models/katello/authorization/product.rb +0 -13
- data/app/models/katello/authorization/repository.rb +8 -16
- data/app/models/katello/authorization/subscription.rb +17 -0
- data/app/models/katello/authorization/sync_plan.rb +0 -13
- data/app/models/katello/authorization/system.rb +0 -13
- data/app/models/katello/candlepin/content.rb +28 -46
- data/app/models/katello/candlepin/product_content.rb +5 -12
- data/app/models/katello/capsule_lifecycle_environment.rb +0 -12
- data/app/models/katello/concerns/container_extensions.rb +0 -12
- data/app/models/katello/concerns/docker_container_wizard_state_extensions.rb +0 -12
- data/app/models/katello/concerns/environment_extensions.rb +7 -13
- data/app/models/katello/concerns/host_managed_extensions.rb +17 -11
- data/app/models/katello/concerns/hostgroup_extensions.rb +0 -11
- data/app/models/katello/concerns/location_extensions.rb +1 -13
- data/app/models/katello/concerns/medium_extensions.rb +14 -15
- data/app/models/katello/concerns/operatingsystem_extensions.rb +29 -0
- data/app/models/katello/concerns/organization_extensions.rb +21 -53
- data/app/models/katello/{glue/pulp/pulp_content_unit.rb → concerns/pulp_database_unit.rb} +23 -42
- data/app/models/katello/concerns/redhat_extensions.rb +13 -54
- data/app/models/katello/concerns/smart_proxy_extensions.rb +1 -13
- data/app/models/katello/concerns/user_extensions.rb +2 -190
- data/app/models/katello/content_view.rb +51 -81
- data/app/models/katello/content_view_component.rb +0 -12
- data/app/models/katello/content_view_environment.rb +4 -20
- data/app/models/katello/content_view_erratum_filter.rb +0 -14
- data/app/models/katello/content_view_erratum_filter_rule.rb +1 -13
- data/app/models/katello/content_view_filter.rb +20 -27
- data/app/models/katello/content_view_history.rb +42 -14
- data/app/models/katello/content_view_package_filter.rb +11 -23
- data/app/models/katello/content_view_package_filter_rule.rb +1 -13
- data/app/models/katello/content_view_package_group_filter.rb +3 -19
- data/app/models/katello/content_view_package_group_filter_rule.rb +1 -13
- data/app/models/katello/content_view_puppet_environment.rb +19 -18
- data/app/models/katello/content_view_puppet_environment_puppet_module.rb +13 -0
- data/app/models/katello/content_view_puppet_module.rb +18 -36
- data/app/models/katello/content_view_repository.rb +0 -12
- data/app/models/katello/content_view_version.rb +59 -26
- data/app/models/katello/content_view_version_component.rb +0 -12
- data/app/models/katello/cp_consumer_user.rb +0 -12
- data/app/models/katello/docker_image.rb +2 -14
- data/app/models/katello/docker_tag.rb +5 -13
- data/app/models/katello/erratum.rb +54 -34
- data/app/models/katello/erratum_bugzilla.rb +0 -13
- data/app/models/katello/erratum_cve.rb +0 -13
- data/app/models/katello/erratum_package.rb +0 -13
- data/app/models/katello/ext/indexed_model.rb +1 -13
- data/app/models/katello/ext/label_from_name.rb +0 -12
- data/app/models/katello/glue.rb +1 -13
- data/app/models/katello/glue/candlepin/activation_key.rb +20 -18
- data/app/models/katello/glue/candlepin/candlepin_object.rb +52 -0
- data/app/models/katello/glue/candlepin/consumer.rb +23 -56
- data/app/models/katello/glue/candlepin/content.rb +1 -13
- data/app/models/katello/glue/candlepin/environment.rb +0 -12
- data/app/models/katello/glue/candlepin/owner.rb +3 -23
- data/app/models/katello/glue/candlepin/owner_info.rb +0 -12
- data/app/models/katello/glue/candlepin/pool.rb +84 -155
- data/app/models/katello/glue/candlepin/product.rb +0 -27
- data/app/models/katello/glue/candlepin/subscription.rb +58 -0
- data/app/models/katello/glue/elastic_search/backend_indexed_model.rb +2 -13
- data/app/models/katello/glue/elastic_search/content_view_erratum_filter_rule.rb +0 -12
- data/app/models/katello/glue/elastic_search/content_view_history.rb +1 -13
- data/app/models/katello/glue/elastic_search/content_view_package_filter_rule.rb +0 -12
- data/app/models/katello/glue/elastic_search/content_view_package_group_filter_rule.rb +0 -12
- data/app/models/katello/glue/elastic_search/facet_item.rb +0 -12
- data/app/models/katello/glue/elastic_search/host_collection.rb +0 -33
- data/app/models/katello/glue/elastic_search/items.rb +1 -13
- data/app/models/katello/glue/elastic_search/job.rb +0 -12
- data/app/models/katello/glue/elastic_search/system.rb +0 -25
- data/app/models/katello/glue/elastic_search/task_status.rb +0 -12
- data/app/models/katello/glue/provider.rb +31 -122
- data/app/models/katello/glue/pulp/consumer.rb +2 -26
- data/app/models/katello/glue/pulp/consumer_group.rb +0 -12
- data/app/models/katello/glue/pulp/pulp_errors.rb +0 -12
- data/app/models/katello/glue/pulp/repo.rb +116 -173
- data/app/models/katello/glue/pulp/repos.rb +40 -89
- data/app/models/katello/glue/pulp/simple_package.rb +0 -12
- data/app/models/katello/gpg_key.rb +1 -13
- data/app/models/katello/hash_util.rb +0 -12
- data/app/models/katello/host_collection.rb +17 -15
- data/app/models/katello/hypervisor.rb +1 -13
- data/app/models/katello/job.rb +1 -13
- data/app/models/katello/job_task.rb +0 -12
- data/app/models/katello/key_host_collection.rb +0 -13
- data/app/models/katello/kt_environment.rb +9 -35
- data/app/models/katello/model.rb +0 -12
- data/app/models/katello/package_group.rb +41 -15
- data/app/models/katello/ping.rb +66 -52
- data/app/models/katello/pool.rb +44 -31
- data/app/models/katello/pool_activation_key.rb +6 -0
- data/app/models/katello/product.rb +37 -35
- data/app/models/katello/provider.rb +9 -28
- data/app/models/katello/proxy_association_owner.rb +0 -12
- data/app/models/katello/pulp_sync_status.rb +1 -13
- data/app/models/katello/pulp_task_status.rb +1 -13
- data/app/models/katello/puppet_module.rb +56 -16
- data/app/models/katello/repository.rb +129 -64
- data/app/models/katello/repository_docker_image.rb +0 -13
- data/app/models/katello/repository_erratum.rb +0 -13
- data/app/models/katello/repository_package_group.rb +8 -0
- data/app/models/katello/repository_puppet_module.rb +9 -0
- data/app/models/katello/repository_rpm.rb +9 -0
- data/app/models/katello/rpm.rb +62 -0
- data/app/models/katello/subscription.rb +17 -0
- data/app/models/katello/subscription_product.rb +7 -0
- data/app/models/katello/sync_plan.rb +0 -12
- data/app/models/katello/system.rb +55 -36
- data/app/models/katello/system_activation_key.rb +0 -12
- data/app/models/katello/system_erratum.rb +0 -13
- data/app/models/katello/system_host_collection.rb +0 -13
- data/app/models/katello/system_repository.rb +0 -13
- data/app/models/katello/task_status.rb +1 -13
- data/app/models/setting/katello.rb +2 -1
- data/app/overrides/add_activation_keys_input.rb +4 -4
- data/app/overrides/add_organization_attributes.rb +4 -4
- data/app/overrides/add_smart_proxy_form.rb +1 -1
- data/app/overrides/foreman/activation_keys/_host_environment_select.html.erb +2 -2
- data/app/overrides/foreman/organizations/_edit_override.html.erb +1 -1
- data/app/overrides/override_taxonomy_actions.rb +1 -1
- data/app/presenters/katello/content_view_version_compare_presenter.rb +0 -12
- data/app/presenters/katello/relation_presenter.rb +0 -12
- data/app/presenters/katello/repository_presenter.rb +0 -12
- data/app/presenters/katello/sync_status_presenter.rb +71 -0
- data/app/services/client/cert.rb +0 -12
- data/app/services/katello/authentication/client_authentication.rb +1 -13
- data/app/services/katello/pulp/docker_image.rb +7 -0
- data/app/services/katello/pulp/erratum.rb +11 -0
- data/app/services/katello/pulp/package_group.rb +14 -0
- data/app/services/katello/pulp/pulp_content_unit.rb +57 -0
- data/app/services/katello/pulp/puppet_module.rb +16 -0
- data/app/services/katello/pulp/rpm.rb +41 -0
- data/app/services/katello/puppet_class_importer_extensions.rb +0 -11
- data/app/views/dashboard/_content_views_widget.html.erb +34 -0
- data/app/views/dashboard/_errata_widget.html.erb +35 -0
- data/app/views/dashboard/_host_collection_widget.html.erb +38 -0
- data/app/views/dashboard/_subscription_status_widget.html.erb +32 -0
- data/app/views/dashboard/_subscription_widget.html.erb +37 -0
- data/app/views/dashboard/_sync_widget.html.erb +32 -0
- data/app/views/foreman/unattended/kickstart-katello.erb +1 -1
- data/app/views/foreman/unattended/snippets/_subscription_manager_registration.erb +0 -5
- data/app/views/katello/api/v2/activation_keys/product_content.json.rabl +12 -2
- data/app/views/katello/api/v2/content_view_filters/show.json.rabl +1 -1
- data/app/views/katello/api/v2/content_view_histories/show.json.rabl +4 -0
- data/app/views/katello/api/v2/content_view_puppet_modules/create.json.rabl +3 -0
- data/app/views/katello/api/v2/content_view_puppet_modules/index.json.rabl +5 -1
- data/app/views/katello/api/v2/content_view_puppet_modules/show.json.rabl +0 -4
- data/app/views/katello/api/v2/content_view_versions/base.json.rabl +4 -0
- data/app/views/katello/api/v2/content_view_versions/index.json.rabl +5 -2
- data/app/views/katello/api/v2/content_views/_content_view.json.rabl +5 -1
- data/app/views/katello/api/v2/content_views/puppet_modules.json.rabl +1 -1
- data/app/views/katello/api/v2/environments/show.json.rabl +2 -2
- data/app/views/katello/api/v2/layouts/collection.json.erb +1 -0
- data/app/views/katello/api/v2/layouts/resource.json.erb +5 -0
- data/app/views/katello/api/v2/organizations/show.json.rabl +2 -3
- data/app/views/katello/api/v2/package_groups/backend.json.rabl +4 -0
- data/app/views/katello/api/v2/package_groups/base.json.rabl +19 -0
- data/app/views/katello/api/v2/package_groups/index.json.rabl +1 -1
- data/app/views/katello/api/v2/package_groups/show.json.rabl +2 -22
- data/app/views/katello/api/v2/packages/backend.json.rabl +8 -0
- data/app/views/katello/api/v2/packages/base.json.rabl +5 -0
- data/app/views/katello/api/v2/packages/index.json.rabl +5 -1
- data/app/views/katello/api/v2/packages/show.json.rabl +2 -5
- data/app/views/katello/api/v2/products/base.json.rabl +1 -1
- data/app/views/katello/api/v2/puppet_modules/backend.json.rabl +7 -0
- data/app/views/katello/api/v2/puppet_modules/base.json.rabl +8 -0
- data/app/views/katello/api/v2/puppet_modules/index.json.rabl +5 -1
- data/app/views/katello/api/v2/puppet_modules/name.json.rabl +1 -2
- data/app/views/katello/api/v2/puppet_modules/show.json.rabl +2 -17
- data/app/views/katello/api/v2/repositories/base.json.rabl +34 -0
- data/app/views/katello/api/v2/repositories/index.json.rabl +5 -1
- data/app/views/katello/api/v2/repositories/show.json.rabl +10 -30
- data/app/views/katello/api/v2/subscriptions/base.json.rabl +15 -0
- data/app/views/katello/api/v2/subscriptions/index.json.rabl +6 -1
- data/app/views/katello/api/v2/subscriptions/show.json.rabl +11 -23
- data/app/views/katello/api/v2/{systems/errata.json.rabl → system_errata/index.json.rabl} +1 -1
- data/app/views/katello/api/v2/systems/_content.json.rabl +17 -0
- data/app/views/katello/api/v2/systems/content_override.json.rabl +3 -0
- data/app/views/katello/api/v2/systems/product_content.json.rabl +3 -0
- data/app/views/katello/api/v2/systems/show.json.rabl +0 -4
- data/app/views/katello/errata_mailer/_erratum.html.erb +10 -0
- data/app/views/katello/errata_mailer/sync_errata.html.erb +3 -3
- data/app/views/katello/layouts/katello.html.erb +23 -0
- data/app/views/katello/providers/redhat/_enable_errors.html.erb +12 -0
- data/app/views/katello/providers/redhat/_errors.html.erb +19 -0
- data/app/views/katello/providers/redhat/_repo_sets.html.erb +56 -0
- data/app/views/katello/providers/redhat/_repos.html.erb +56 -0
- data/app/views/katello/providers/redhat/_tab.html.erb +9 -0
- data/app/views/katello/providers/redhat/show.html.erb +35 -0
- data/app/views/katello/sync_management/_children.html.erb +14 -0
- data/app/views/katello/sync_management/_controls.html.erb +30 -0
- data/app/views/katello/sync_management/_product.html.erb +27 -0
- data/app/views/katello/sync_management/_products.html.erb +40 -0
- data/app/views/katello/sync_management/_repo.html.erb +43 -0
- data/app/views/katello/sync_management/_sync_plans.html.erb +23 -0
- data/app/views/katello/sync_management/index.html.erb +26 -0
- data/config/initializers/inflections.rb +0 -1
- data/config/initializers/runcible.rb +1 -1
- data/config/katello.yaml.example +91 -0
- data/config/katello.yml +223 -16
- data/config/katello_defaults.yml +0 -236
- data/config/routes.rb +1 -129
- data/config/routes/api/v2.rb +45 -29
- data/config/routes/overrides.rb +1 -13
- data/db/migrate/20140626204657_add_unlimited_to_activation_keys.rb +14 -10
- data/db/migrate/20140626204902_add_unlimited_to_host_collection.rb +14 -10
- data/db/migrate/20141003210742_add_docker_container_registry_url_to_providers.rb +0 -2
- data/db/migrate/20141209103005_disown_foreman_templates.rb +5 -1
- data/db/migrate/20150224083608_remove_docker_registry_url.rb +9 -0
- data/db/migrate/20150423134004_add_content_host_id_to_smart_proxy.rb +0 -15
- data/db/migrate/20150505180030_change_errata_timestamps_to_dates.rb +15 -0
- data/db/migrate/20150507131145_update_composite_default_for_content_view.rb +14 -0
- data/db/migrate/20150602153753_remove_help_tips.rb +16 -0
- data/db/migrate/20150602153754_remove_search_histories.rb +17 -0
- data/db/migrate/20150602153755_remove_search_favorites.rb +17 -0
- data/db/migrate/20150602153756_remove_user_notices.rb +16 -0
- data/db/migrate/20150602153757_remove_notices.rb +20 -0
- data/db/migrate/20150603045418_remove_user_fields.rb +18 -0
- data/db/migrate/20150606021722_create_puppet_modules.rb +58 -0
- data/db/migrate/20150611140455_remove_default_and_custom_info.rb +5 -0
- data/db/migrate/20150613134559_add_rpm.rb +38 -0
- data/db/migrate/20150623135424_create_package_groups.rb +29 -0
- data/db/migrate/20150715142649_assign_content_host_to_smart_proxies.rb +21 -0
- data/db/migrate/20150717142559_add_distributions_to_repository.rb +10 -0
- data/db/migrate/20150813185339_create_subscriptions.rb +82 -0
- data/db/migrate/20150901213759_remove_distributors.rb +25 -0
- data/db/migrate/20150902164543_remove_apply_info_task_id_from_taxonomies.rb +5 -0
- data/db/migrate/20150908222711_drop_marketing_engineering_products.rb +21 -0
- data/db/seeds.rb +3 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-key.factory.js +3 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js +5 -18
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-add-host-collections.controller.js +10 -23
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-add-subscriptions.controller.js +16 -28
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-details-info.controller.js +12 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-details.controller.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-host-collections.controller.js +10 -23
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-product-details.controller.js +14 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-products.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-subscriptions.controller.js +16 -29
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-add-subscriptions.html +59 -86
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-associations-content-hosts.html +6 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-host-collections-table.html +29 -29
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-info.html +7 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-subscriptions-list.html +55 -79
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/new/new-activation-key.controller.js +13 -26
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/views/activation-keys-table-full.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion-katello-bootstrap.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion_katello.js +0 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/capsules/capsule.factory.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/capsules/capsules.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action-environment.controller.js +9 -22
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action-errata.controller.js +14 -28
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action-host-collections.controller.js +11 -24
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action-packages.controller.js +20 -33
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action-subscriptions.controller.js +16 -29
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action.controller.js +12 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-environment.html +4 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-errata.html +7 -8
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-host-collections.html +4 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-erratum.factory.js +1 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-events.controller.js +0 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-package.factory.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-register.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-status.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host.factory.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts-helper.service.js +37 -50
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.controller.js +7 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.module.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js +24 -27
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages.controller.js +4 -17
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html +15 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages.html +49 -47
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-add-host-collections.controller.js +8 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-add-subscriptions.controller.js +22 -26
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-base-subscriptions.controller.js +11 -34
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details-info.controller.js +40 -104
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details.controller.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-host-collections.controller.js +8 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-product-details.controller.js +14 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-products.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-subscriptions.controller.js +20 -62
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-add-subscriptions.html +61 -96
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-details.html +8 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-events.html +21 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +3 -33
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-subscriptions-list.html +59 -91
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/host-collections-table.html +44 -42
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts-table-full.html +0 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/register.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-view.factory.js +3 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js +4 -17
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.routes.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-deletion.controller.js +12 -25
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-activation-keys.controller.js +7 -20
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-confirm.controller.js +18 -30
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-content-hosts.controller.js +8 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-environments.controller.js +5 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion.controller.js +9 -25
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-docker-repositories.controller.js +4 -17
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-puppet-modules.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-repositories.controller.js +4 -17
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-composite-available-content-views.controller.js +9 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-composite-content-views-list.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-details-history.controller.js +2 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-details.controller.js +77 -88
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-docker-repositories-list.controller.js +3 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-promotion.controller.js +60 -32
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-publish.controller.js +9 -22
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-repositories-list.controller.js +3 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-repositories.service.js +14 -27
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-versions.controller.js +34 -48
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/available-errata-filter.controller.js +24 -35
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/available-package-group-filter.controller.js +29 -35
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/date-type-errata-filter.controller.js +9 -22
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/edit-filter.controller.js +3 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/errata-filter-list.controller.js +34 -47
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/errata-filter.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-content-type.filter.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-details.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-repositories.controller.js +2 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-type.filter.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter.factory.js +3 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filters.controller.js +16 -29
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/new-filter.controller.js +33 -46
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/package-filter.controller.js +61 -74
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/package-group-filter.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/package-group-list-filter.controller.js +25 -36
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/rule.factory.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/edit-filter.html +18 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filter-repositories.html +0 -22
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filters.html +6 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/new-filter.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/package-filter-details.html +4 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/package-filter.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-module-names.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-module-versions.controller.js +2 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-module.factory.js +3 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-modules.controller.js +3 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-module-names.html +3 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-modules.html +3 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-composite-content-views-list.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-details-history.html +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-details.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-docker-repositories.html +46 -50
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-promotion.html +12 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-repositories.html +51 -55
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-versions.html +38 -38
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/new/content-view-new.controller.js +15 -28
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version-content.controller.js +9 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version.factory.js +1 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-versions.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-details.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-package-groups.html +8 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-packages.html +8 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/views/content-views-table-full.html +1 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/views/content-views.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-images/docker-image.factory.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-images/docker-images.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/details/docker-tags-details.controller.js +7 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js +4 -17
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.factory.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.routes.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/views/docker-tags.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/content.service.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/environment-content.controller.js +8 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/environment.controller.js +2 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-content-views.html +3 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-docker.html +4 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-errata.html +4 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-packages.html +4 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-puppet-modules.html +4 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-repositories.html +4 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environment.factory.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environments.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environments.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environments.routes.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/new-environment.controller.js +12 -25
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/apply-errata.controller.js +17 -28
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/errata-content-hosts.controller.js +5 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/errata-details-repositories.controller.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/errata-details.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/errata-details-content-hosts.html +7 -8
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/errata-details-info.html +3 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/errata-details-repositories.html +7 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata-counts.directive.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata-severity.filter.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata-type.filter.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata.controller.js +20 -29
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata.routes.js +3 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/apply-errata-confirm.html +8 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/errata.html +13 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/gpg-key-details-info.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/gpg-key-details.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/gpg-key.factory.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/gpg-keys.controller.js +5 -18
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/gpg-keys.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/new/new-gpg-key.controller.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-add-content-hosts.controller.js +11 -24
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-content-hosts.controller.js +5 -18
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-details.controller.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-add-content-hosts.html +39 -37
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-content-hosts-list.html +34 -32
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js +2 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js +5 -18
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.module.js +0 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/new/host-collection-form.controller.js +8 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/new/new-host-collection.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/README +12 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/bastion_katello.pot +4484 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/de.po +5324 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/es.po +5290 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/fr.po +5363 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/it.po +5349 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ja.po +5281 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ko.po +5191 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pt_BR.po +5321 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ru.po +5171 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_CN.po +5103 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_TW.po +5106 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/translations.js +14 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/check-current-organization.run.js +0 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organization-selector.controller.js +0 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organization.factory.js +5 -17
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organizations.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organizations.routes.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/package-groups/package-group.factory.js +4 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/package-groups/package-groups.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/package-details-repositories.controller.js +59 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/package-details.controller.js +23 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details-dependencies.html +19 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details-files.html +11 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details-info.html +75 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details-repositories.html +83 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details.html +57 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js +2 -17
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/packages.controller.js +65 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/packages.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/packages.routes.js +66 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/views/packages-table-collapsed.html +19 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/views/packages-table-full.html +22 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/views/packages.html +19 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/products-bulk-action-sync-plan.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/products-bulk-action-sync.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/products-bulk-action.controller.js +2 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/views/bulk-actions.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/product-details-info.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/product-details.controller.js +2 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/product-repositories.controller.js +16 -41
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-details.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-repositories.html +114 -115
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/discovery-form.controller.js +76 -94
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/discovery.controller.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/views/discovery.html +7 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/new-product.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/product-form.controller.js +7 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/views/product-new.html +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js +3 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.controller.js +11 -22
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.module.js +9 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/views/partials/product-table-sync-status.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/views/products-table-full.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-modules-details-content-views.controller.js +43 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-modules-details-repositories.controller.js +35 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-modules-details.controller.js +28 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-modules-details-content-views.html +37 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-modules-details-info.html +31 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-modules-details-repositories.html +52 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-modules-details.html +45 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-module.factory.js +5 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-modules.controller.js +35 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-modules.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-modules.routes.js +69 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/views/puppet-modules-table-collapsed.html +20 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/views/puppet-modules-table-full.html +29 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/views/puppet-modules.html +16 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/repository-details-info.controller.js +10 -20
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/repository-details-manage-content.controller.js +26 -37
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-info.html +59 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-manage-docker-images.html +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-manage-package-groups.html +25 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-manage-packages.html +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-manage-puppet-modules.html +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/new/new-repository.controller.js +20 -32
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/repositories.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/repository.factory.js +2 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-associations-activation-keys.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-associations-content-hosts.controller.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-details.controller.js +2 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-product-details.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-associations-activation-keys.html +8 -8
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-associations-content-hosts.html +7 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-details.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-info.html +3 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-products.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest-details.controller.js +2 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest-history.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest-import.controller.js +34 -47
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/views/manifest-import.html +0 -10
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-type.directive.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionAttachAmountFilter.filter.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions-helper.service.js +3 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.controller.js +18 -29
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js +3 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.module.js +3 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscriptions-table-full.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-add-products.controller.js +5 -18
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-details-info.controller.js +14 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-details.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-products.controller.js +5 -18
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-info.html +14 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-products-table.html +37 -35
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/new/new-sync-plan.controller.js +2 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js +2 -18
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js +7 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/views/sync-plans.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/aggregate-task.factory.js +17 -30
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-details.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js +6 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-part.directive.js +3 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-reduce.filter.js +2 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-short.filter.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task.factory.js +36 -43
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/tasks-nutupane.factory.js +3 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/tasks-table.directive.js +2 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/tasks.module.js +0 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/views/tasks-table.html +30 -28
- data/engines/bastion_katello/app/assets/stylesheets/bastion_katello/bastion_katello.less +6 -0
- data/engines/bastion_katello/app/assets/stylesheets/bastion_katello/systems.less +0 -24
- data/engines/bastion_katello/bastion_katello.gemspec +1 -1
- data/engines/bastion_katello/lib/bastion_katello/engine.rb +6 -1
- data/lib/katello.rb +2 -8
- data/lib/katello/apipie/validators.rb +1 -1
- data/lib/katello/engine.rb +54 -15
- data/lib/katello/permissions/content_host_permissions.rb +4 -5
- data/lib/katello/permissions/content_view_permissions.rb +2 -4
- data/lib/katello/permissions/host_collections_permissions.rb +0 -1
- data/lib/katello/permissions/product_permissions.rb +1 -2
- data/lib/katello/permissions/subscription_permissions.rb +1 -2
- data/lib/katello/permissions/sync_plan_permissions.rb +2 -1
- data/lib/katello/plugin.rb +36 -37
- data/lib/katello/tasks/reindex.rake +125 -18
- data/lib/katello/tasks/setup.rake +0 -3
- data/lib/katello/tasks/test.rake +92 -8
- data/lib/katello/tasks/upgrades/2.4/import_distributions.rake +12 -0
- data/lib/katello/tasks/upgrades/2.4/import_package_groups.rake +12 -0
- data/lib/katello/tasks/upgrades/2.4/import_puppet_modules.rake +12 -0
- data/lib/katello/tasks/upgrades/2.4/import_rpms.rake +12 -0
- data/lib/katello/tasks/upgrades/2.4/import_subscriptions.rake +13 -0
- data/lib/katello/tire_bridge.rb +20 -0
- data/lib/katello/url_constrained_cookie_store.rb +0 -12
- data/lib/katello/version.rb +1 -1
- data/lib/monkeys/passenger_tee_input.rb +0 -12
- data/locale/action_names.rb +47 -0
- data/locale/bn/katello.po +2728 -5025
- data/locale/cs/katello.po +1939 -2918
- data/locale/de/katello.po +3515 -5733
- data/locale/en/katello.po +1570 -1537
- data/locale/es/katello.po +3457 -5721
- data/locale/fr/katello.po +3604 -5753
- data/locale/gu/katello.po +2740 -5029
- data/locale/hi/katello.po +2731 -5032
- data/locale/it/katello.po +3502 -5769
- data/locale/ja/katello.po +3481 -5888
- data/locale/katello.pot +1277 -1472
- data/locale/kn/katello.po +2754 -5089
- data/locale/ko/katello.po +3327 -5775
- data/locale/mr/katello.po +2701 -5097
- data/locale/or/katello.po +2741 -5093
- data/locale/pa/katello.po +2601 -4937
- data/locale/pt/katello.po +1810 -1947
- data/locale/pt_BR/katello.po +3468 -5893
- data/locale/ru/katello.po +3352 -5856
- data/locale/ta/katello.po +2751 -5040
- data/locale/te/katello.po +2734 -5091
- data/locale/zh_CN/katello.po +3230 -5800
- data/locale/zh_TW/katello.po +3540 -5962
- metadata +1451 -1575
- checksums.yaml +0 -15
- data/app/assets/javascripts/katello/common/bastion-routes.js +0 -2870
- data/app/assets/javascripts/katello/common/notices.js +0 -176
- data/app/assets/javascripts/katello/common/panel.js +0 -1078
- data/app/assets/javascripts/katello/common/routes.js +0 -2878
- data/app/assets/javascripts/katello/common/search.js +0 -376
- data/app/assets/javascripts/katello/content_search/content_search.js +0 -854
- data/app/assets/javascripts/katello/content_search/index.js +0 -20
- data/app/assets/javascripts/katello/dashboard/dashboard.js +0 -210
- data/app/assets/javascripts/katello/dashboard/index.js +0 -14
- data/app/assets/javascripts/katello/notices/index.js +0 -14
- data/app/assets/javascripts/katello/notices/notices_list.js +0 -49
- data/app/assets/javascripts/katello/providers/index.js +0 -16
- data/app/assets/javascripts/katello/providers/products_repos.js +0 -46
- data/app/assets/javascripts/katello/providers/provider.js +0 -68
- data/app/assets/javascripts/katello/providers/provider_create.js +0 -21
- data/app/assets/javascripts/katello/providers/repo.js +0 -27
- data/app/assets/javascripts/katello/providers/repo_discovery.js +0 -376
- data/app/assets/javascripts/katello/providers/repo_discovery_create.js +0 -17
- data/app/assets/javascripts/katello/widgets/comparison_grid.js +0 -1033
- data/app/assets/javascripts/katello/widgets/slidingtree.js +0 -645
- data/app/assets/javascripts/katello/widgets/tipsy.custom.js +0 -197
- data/app/assets/stylesheets/katello/content_search.scss +0 -650
- data/app/assets/stylesheets/katello/custom_info.scss +0 -32
- data/app/assets/stylesheets/katello/dashboard.scss +0 -570
- data/app/assets/stylesheets/katello/widgets/tipsy_custom.scss +0 -81
- data/app/controllers/katello/api/v2/distributions_controller.rb +0 -50
- data/app/controllers/katello/api/v2/users_controller.rb +0 -16
- data/app/controllers/katello/concerns/api/v2/repository_db_content_controller.rb +0 -109
- data/app/controllers/katello/consumers_controller_logic.rb +0 -55
- data/app/controllers/katello/content_search_controller.rb +0 -676
- data/app/controllers/katello/content_views_controller.rb +0 -35
- data/app/controllers/katello/dashboard_controller.rb +0 -106
- data/app/controllers/katello/distributor_events_controller.rb +0 -114
- data/app/controllers/katello/distributors_controller.rb +0 -501
- data/app/controllers/katello/notices_controller.rb +0 -101
- data/app/controllers/katello/packages_controller.rb +0 -45
- data/app/controllers/katello/puppet_modules_controller.rb +0 -27
- data/app/controllers/katello/repositories_controller.rb +0 -39
- data/app/controllers/katello/search_controller.rb +0 -92
- data/app/helpers/katello/content_search_helper.rb +0 -62
- data/app/helpers/katello/dashboard_helper.rb +0 -204
- data/app/helpers/katello/distributors_helper.rb +0 -69
- data/app/helpers/katello/notices_helper.rb +0 -21
- data/app/helpers/katello/search_helper.rb +0 -35
- data/app/helpers/katello/users_helper.rb +0 -44
- data/app/lib/actions/candlepin/reindex_pool_subscription_handler.rb +0 -91
- data/app/lib/actions/elastic_search/content_view_puppet_environment/index_content.rb +0 -28
- data/app/lib/actions/elastic_search/repository/destroy.rb +0 -35
- data/app/lib/actions/elastic_search/repository/remove_puppet_modules.rb +0 -28
- data/app/lib/actions/katello/organization/index_subscriptions.rb +0 -61
- data/app/lib/actions/katello/repository/remove_docker_images.rb +0 -35
- data/app/lib/actions/katello/user/create.rb +0 -27
- data/app/lib/actions/katello/user/destroy.rb +0 -28
- data/app/lib/actions/pulp/superuser/abstract.rb +0 -35
- data/app/lib/actions/pulp/superuser/add.rb +0 -23
- data/app/lib/actions/pulp/superuser/remove.rb +0 -23
- data/app/lib/actions/pulp/user/create.rb +0 -35
- data/app/lib/actions/pulp/user/destroy.rb +0 -27
- data/app/lib/katello/content_search/cell.rb +0 -29
- data/app/lib/katello/content_search/column.rb +0 -18
- data/app/lib/katello/content_search/container_search.rb +0 -55
- data/app/lib/katello/content_search/content_view_comparison.rb +0 -200
- data/app/lib/katello/content_search/content_view_search.rb +0 -69
- data/app/lib/katello/content_search/element.rb +0 -57
- data/app/lib/katello/content_search/metadata_row.rb +0 -35
- data/app/lib/katello/content_search/product_row.rb +0 -35
- data/app/lib/katello/content_search/product_search.rb +0 -60
- data/app/lib/katello/content_search/repo_row.rb +0 -33
- data/app/lib/katello/content_search/repo_search.rb +0 -68
- data/app/lib/katello/content_search/row.rb +0 -25
- data/app/lib/katello/content_search/search.rb +0 -45
- data/app/lib/katello/content_search/search_utils.rb +0 -33
- data/app/lib/katello/content_search/span.rb +0 -21
- data/app/lib/katello/content_search/unit_row.rb +0 -55
- data/app/lib/katello/dashboard/content_views_widget.rb +0 -30
- data/app/lib/katello/dashboard/errata_widget.rb +0 -30
- data/app/lib/katello/dashboard/host_collections_widget.rb +0 -30
- data/app/lib/katello/dashboard/layout.rb +0 -73
- data/app/lib/katello/dashboard/notices_widget.rb +0 -23
- data/app/lib/katello/dashboard/subscriptions_totals_widget.rb +0 -29
- data/app/lib/katello/dashboard/subscriptions_widget.rb +0 -25
- data/app/lib/katello/dashboard/sync_widget.rb +0 -30
- data/app/lib/katello/dashboard/widget.rb +0 -45
- data/app/lib/katello/notifications.rb +0 -17
- data/app/lib/katello/notifications/controller_helper.rb +0 -43
- data/app/lib/katello/notifications/notifier.rb +0 -190
- data/app/lib/katello/notify.rb +0 -16
- data/app/lib/katello/validators/default_info_validator.rb +0 -40
- data/app/models/katello/authorization.rb +0 -25
- data/app/models/katello/authorization/distributor.rb +0 -58
- data/app/models/katello/custom_info.rb +0 -64
- data/app/models/katello/distribution.rb +0 -32
- data/app/models/katello/distributor.rb +0 -136
- data/app/models/katello/glue/elastic_search/activation_key.rb +0 -37
- data/app/models/katello/glue/elastic_search/content_view.rb +0 -58
- data/app/models/katello/glue/elastic_search/content_view_filter.rb +0 -39
- data/app/models/katello/glue/elastic_search/content_view_puppet_environment.rb +0 -72
- data/app/models/katello/glue/elastic_search/content_view_puppet_module.rb +0 -41
- data/app/models/katello/glue/elastic_search/distribution.rb +0 -72
- data/app/models/katello/glue/elastic_search/distributor.rb +0 -63
- data/app/models/katello/glue/elastic_search/marketing_product.rb +0 -21
- data/app/models/katello/glue/elastic_search/notice.rb +0 -36
- data/app/models/katello/glue/elastic_search/package.rb +0 -233
- data/app/models/katello/glue/elastic_search/package_group.rb +0 -136
- data/app/models/katello/glue/elastic_search/pool.rb +0 -185
- data/app/models/katello/glue/elastic_search/product.rb +0 -59
- data/app/models/katello/glue/elastic_search/provider.rb +0 -41
- data/app/models/katello/glue/elastic_search/puppet_module.rb +0 -251
- data/app/models/katello/glue/elastic_search/repository.rb +0 -133
- data/app/models/katello/glue/pulp/distribution.rb +0 -50
- data/app/models/katello/glue/pulp/package.rb +0 -76
- data/app/models/katello/glue/pulp/package_group.rb +0 -60
- data/app/models/katello/glue/pulp/puppet_module.rb +0 -76
- data/app/models/katello/glue/pulp/user.rb +0 -59
- data/app/models/katello/help_tip.rb +0 -20
- data/app/models/katello/marketing_engineering_product.rb +0 -21
- data/app/models/katello/marketing_product.rb +0 -21
- data/app/models/katello/notice.rb +0 -77
- data/app/models/katello/package.rb +0 -19
- data/app/models/katello/search_favorite.rb +0 -38
- data/app/models/katello/search_history.rb +0 -22
- data/app/models/katello/user_notice.rb +0 -27
- data/app/models/repository_docker_image.rb +0 -18
- data/app/views/katello/api/v2/custom_info/show.json.rabl +0 -5
- data/app/views/katello/api/v2/distributions/index.json.rabl +0 -3
- data/app/views/katello/api/v2/distributions/show.json.rabl +0 -9
- data/app/views/katello/api/v2/distributors/index.json.rabl +0 -9
- data/app/views/katello/api/v2/distributors/pools.json.rabl +0 -3
- data/app/views/katello/api/v2/distributors/show.json.rabl +0 -3
- data/app/views/katello/api/v2/distributors/task.json.rabl +0 -3
- data/app/views/katello/api/v2/distributors/tasks.json.rabl +0 -3
- data/app/views/katello/api/v2/layouts/collection.json.haml +0 -3
- data/app/views/katello/api/v2/layouts/resource.json.haml +0 -5
- data/app/views/katello/api/v2/organization_default_info/apply_to_all.json.rabl +0 -3
- data/app/views/katello/api/v2/organization_default_info/create.json.rabl +0 -5
- data/app/views/katello/api/v2/users/list_owners.json.rabl +0 -4
- data/app/views/katello/api/v2/users/show.json.rabl +0 -12
- data/app/views/katello/common/400.html.haml +0 -5
- data/app/views/katello/common/403.html.haml +0 -10
- data/app/views/katello/common/404.html.haml +0 -7
- data/app/views/katello/common/500.html.haml +0 -15
- data/app/views/katello/common/_ajax_notices.haml +0 -5
- data/app/views/katello/common/_common_i18n.html.haml +0 -45
- data/app/views/katello/common/_common_product_repo_selector.html.haml +0 -65
- data/app/views/katello/common/_common_products.html.haml +0 -24
- data/app/views/katello/common/_config.html.haml +0 -8
- data/app/views/katello/common/_edit_i18n.html.haml +0 -12
- data/app/views/katello/common/_env_select.html.haml +0 -40
- data/app/views/katello/common/_filter_table.html.haml +0 -5
- data/app/views/katello/common/_footer.haml +0 -5
- data/app/views/katello/common/_helptip.html.haml +0 -3
- data/app/views/katello/common/_helptip_button.html.haml +0 -2
- data/app/views/katello/common/_list_item.html.haml +0 -6
- data/app/views/katello/common/_list_items.html.haml +0 -2
- data/app/views/katello/common/_list_remove.js.haml +0 -3
- data/app/views/katello/common/_list_update.html.haml +0 -4
- data/app/views/katello/common/_notification.haml +0 -29
- data/app/views/katello/common/_one_panel.html.haml +0 -15
- data/app/views/katello/common/_one_panel_list_item.haml +0 -5
- data/app/views/katello/common/_package_actions_i18n.html.haml +0 -7
- data/app/views/katello/common/_panel.html.haml +0 -75
- data/app/views/katello/common/_post_action_close_subpanel.js.haml +0 -2
- data/app/views/katello/common/_post_delete_close_subpanel.js.haml +0 -2
- data/app/views/katello/common/_repo_selector.html.haml +0 -27
- data/app/views/katello/common/_search.html.haml +0 -17
- data/app/views/katello/common/_stats_line.html.haml +0 -3
- data/app/views/katello/common/_tupane.html.haml +0 -10
- data/app/views/katello/content_search/_browser_box.html.haml +0 -132
- data/app/views/katello/content_search/_container_hover.html.haml +0 -26
- data/app/views/katello/content_search/_grid.html.haml +0 -60
- data/app/views/katello/content_search/_repo_hover.html.haml +0 -18
- data/app/views/katello/content_search/index.html.haml +0 -32
- data/app/views/katello/custom_info/_edit.html.haml +0 -32
- data/app/views/katello/dashboard/_ajax_entry.html.haml +0 -11
- data/app/views/katello/dashboard/_content_views.haml +0 -22
- data/app/views/katello/dashboard/_entry.html.haml +0 -9
- data/app/views/katello/dashboard/_errata.haml +0 -21
- data/app/views/katello/dashboard/_host_collection_item.html.haml +0 -19
- data/app/views/katello/dashboard/_host_collections.html.haml +0 -31
- data/app/views/katello/dashboard/_notices.html.haml +0 -11
- data/app/views/katello/dashboard/_subscriptions.haml +0 -47
- data/app/views/katello/dashboard/_subscriptions_totals.haml +0 -19
- data/app/views/katello/dashboard/_sync.haml +0 -37
- data/app/views/katello/dashboard/_systems.html.haml +0 -22
- data/app/views/katello/dashboard/index.html.haml +0 -25
- data/app/views/katello/distributor_events/_details.html.haml +0 -32
- data/app/views/katello/distributor_events/_event_items.html.haml +0 -27
- data/app/views/katello/distributor_events/_events.html.haml +0 -36
- data/app/views/katello/distributor_events/_more_events.html.haml +0 -3
- data/app/views/katello/distributors/_actions.html.haml +0 -23
- data/app/views/katello/distributors/_distributor_tupane_header_nav.html.haml +0 -10
- data/app/views/katello/distributors/_edit.html.haml +0 -73
- data/app/views/katello/distributors/_edit_custom_info.html.haml +0 -10
- data/app/views/katello/distributors/_list_distributor.html.haml +0 -2
- data/app/views/katello/distributors/_list_distributor_show.html.haml +0 -18
- data/app/views/katello/distributors/_list_distributors.html.haml +0 -1
- data/app/views/katello/distributors/_more_products.html.haml +0 -5
- data/app/views/katello/distributors/_new.html.haml +0 -43
- data/app/views/katello/distributors/_products.html.haml +0 -23
- data/app/views/katello/distributors/_subs.html.haml +0 -149
- data/app/views/katello/distributors/_subs_update.js.haml +0 -1
- data/app/views/katello/distributors/_subscription_details.html.haml +0 -23
- data/app/views/katello/distributors/_subscriptions.html.haml +0 -22
- data/app/views/katello/distributors/index.html.haml +0 -10
- data/app/views/katello/errata/_short_details.html.haml +0 -44
- data/app/views/katello/layouts/katello.haml +0 -32
- data/app/views/katello/layouts/tupane_layout.html.haml +0 -45
- data/app/views/katello/nodes/_list.html.haml +0 -5
- data/app/views/katello/nodes/index.html.haml +0 -1
- data/app/views/katello/nodes/show.html.haml +0 -7
- data/app/views/katello/notices/_delete_all.js.haml +0 -1
- data/app/views/katello/notices/show.html.haml +0 -46
- data/app/views/katello/packages/_changelog.html.haml +0 -15
- data/app/views/katello/packages/_dependencies.html.haml +0 -27
- data/app/views/katello/packages/_details.html.haml +0 -100
- data/app/views/katello/packages/_filelist.html.haml +0 -15
- data/app/views/katello/packages/_show.html.haml +0 -90
- data/app/views/katello/providers/index.html.haml +0 -17
- data/app/views/katello/providers/redhat/_enable_errors.haml +0 -9
- data/app/views/katello/providers/redhat/_errors.html.haml +0 -13
- data/app/views/katello/providers/redhat/_repo_sets.haml +0 -31
- data/app/views/katello/providers/redhat/_repos.html.haml +0 -23
- data/app/views/katello/providers/redhat/_tab.html.haml +0 -8
- data/app/views/katello/providers/redhat/show.html.haml +0 -23
- data/app/views/katello/puppet_modules/_show.html.haml +0 -88
- data/app/views/katello/sync_management/_children.html.haml +0 -13
- data/app/views/katello/sync_management/_controls.html.haml +0 -13
- data/app/views/katello/sync_management/_product.html.haml +0 -21
- data/app/views/katello/sync_management/_products.html.haml +0 -20
- data/app/views/katello/sync_management/_repo.html.haml +0 -27
- data/app/views/katello/sync_management/_sync_plans.html.haml +0 -16
- data/app/views/katello/sync_management/index.html.haml +0 -22
- data/app/views/katello/sync_management/manage.html.haml +0 -25
- data/app/views/katello/user_mailer/logins.text.haml +0 -3
- data/app/views/katello/welcome/show.html.haml +0 -15
- data/config/initializers/tire.rb +0 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/custom-info/custom-info.factory.js +0 -34
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/custom-info/custom-info.module.js +0 -24
- data/lib/headpin/headpin.rb +0 -6
- data/lib/katello/app_config.rb +0 -22
- data/lib/katello/configuration.rb +0 -70
- data/lib/katello/configuration/loader.rb +0 -128
- data/lib/katello/configuration/node.rb +0 -145
- data/lib/katello/configuration/validator.rb +0 -85
- data/lib/katello/load_configuration.rb +0 -95
- data/lib/katello/logging.rb +0 -245
- data/lib/katello/middleware/log_request_uuid.rb +0 -28
- data/lib/katello/middleware/silenced_logger.rb +0 -35
- data/lib/katello/permissions/dashboard_permissions.rb +0 -6
- data/lib/monkeys/string_to_bool.rb +0 -19
- data/lib/monkeys/yard_svg_fix.rb +0 -26
- data/lib/util/password.rb +0 -137
- data/vendor/assets/javascripts/katello/jquery.tipsy.js +0 -358
- data/vendor/assets/stylesheets/katello/jquery.timepickr.css +0 -40
- data/vendor/assets/stylesheets/katello/jquery.tipsy.css +0 -25
@@ -1,67 +1,53 @@
|
|
1
|
-
#
|
2
|
-
# Copyright 2014 Red Hat, Inc.
|
3
|
-
#
|
4
|
-
# This software is licensed to you under the GNU General Public
|
5
|
-
# License as published by the Free Software Foundation; either version
|
6
|
-
# 2 of the License (GPLv2) or (at your option) any later version.
|
7
|
-
# There is NO WARRANTY for this software, express or implied,
|
8
|
-
# including the implied warranties of MERCHANTABILITY,
|
9
|
-
# NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
10
|
-
# have received a copy of GPLv2 along with this software; if not, see
|
11
|
-
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
12
|
-
|
13
1
|
require 'set'
|
14
2
|
|
15
3
|
module Katello
|
16
|
-
module
|
4
|
+
module Concerns::PulpDatabaseUnit
|
17
5
|
extend ActiveSupport::Concern
|
18
6
|
|
19
|
-
# Any class that includes this module should define:
|
20
|
-
# Class.unit_handler
|
21
|
-
# Class::CONTENT_TYPE
|
22
|
-
# Class::PULP_INDEXED_FIELDS (optional)
|
23
7
|
# Class.repository_association_class
|
24
8
|
# Class#update_from_json
|
25
9
|
|
26
10
|
def backend_data
|
27
|
-
self.class.pulp_data(uuid)
|
11
|
+
self.class.pulp_data(uuid) || {}
|
28
12
|
end
|
29
13
|
|
30
14
|
module ClassMethods
|
31
|
-
def
|
32
|
-
Katello
|
15
|
+
def content_unit_class
|
16
|
+
"::Katello::Pulp::#{self.name.demodulize}".constantize
|
33
17
|
end
|
34
18
|
|
35
19
|
def repository_association
|
36
20
|
repository_association_class.name.demodulize.pluralize.underscore
|
37
21
|
end
|
38
22
|
|
23
|
+
def with_identifiers(ids)
|
24
|
+
ids = [ids] unless ids.is_a?(Array)
|
25
|
+
ids.map!(&:to_s)
|
26
|
+
id_integers = ids.map { |string| Integer(string) rescue -1 }
|
27
|
+
where("#{self.table_name}.id = (?) or #{self.table_name}.uuid = (?)", id_integers, ids)
|
28
|
+
end
|
29
|
+
|
39
30
|
def in_repositories(repos)
|
40
31
|
self.joins(repository_association.to_sym)
|
41
32
|
.where("#{repository_association_class.table_name}.repository_id" => repos)
|
42
33
|
end
|
43
34
|
|
44
35
|
def pulp_data(uuid)
|
45
|
-
|
36
|
+
content_unit_class.new(uuid)
|
46
37
|
end
|
47
38
|
|
48
39
|
# Import all units of a single type and refresh their repository associations
|
49
|
-
def import_all
|
50
|
-
all_items =
|
51
|
-
until items.empty? #we can't know how many there are, so we have to keep looping until we get nothing
|
52
|
-
items = fetch_all(all_items.length, Katello.config.pulp.bulk_load_size)
|
53
|
-
all_items.concat(items)
|
54
|
-
end
|
55
|
-
|
40
|
+
def import_all(uuids = nil, additive = false)
|
41
|
+
all_items = uuids ? content_unit_class.fetch_by_uuids(uuids) : content_unit_class.fetch_all
|
56
42
|
all_items.each do |item_json|
|
57
43
|
item = self.find_or_create_by_uuid(:uuid => item_json['_id'])
|
58
44
|
item.update_from_json(item_json)
|
59
45
|
end
|
60
|
-
update_repository_associations(all_items)
|
46
|
+
update_repository_associations(all_items, additive)
|
61
47
|
all_items.count
|
62
48
|
end
|
63
49
|
|
64
|
-
def sync_repository_associations(repository, unit_uuids)
|
50
|
+
def sync_repository_associations(repository, unit_uuids, additive = false)
|
65
51
|
associated_ids = with_uuid(unit_uuids).pluck(:id)
|
66
52
|
table_name = self.repository_association_class.table_name
|
67
53
|
attribute_name = "#{self.name.demodulize.underscore}_id"
|
@@ -72,7 +58,7 @@ module Katello
|
|
72
58
|
|
73
59
|
queries = []
|
74
60
|
|
75
|
-
|
61
|
+
if delete_ids.any? && !additive
|
76
62
|
queries << "DELETE FROM #{table_name} WHERE repository_id=#{repository.id} AND #{attribute_name} IN (#{delete_ids.join(', ')})"
|
77
63
|
end
|
78
64
|
|
@@ -92,25 +78,20 @@ module Katello
|
|
92
78
|
where(:uuid => unit_uuids)
|
93
79
|
end
|
94
80
|
|
95
|
-
def
|
96
|
-
fields = self::PULP_INDEXED_FIELDS if self.constants.include?(:PULP_INDEXED_FIELDS)
|
97
|
-
criteria = {:limit => page_size, :skip => offset}
|
98
|
-
criteria[:fields] = fields if fields
|
99
|
-
Katello.pulp_server.resources.unit.search(self::CONTENT_TYPE, criteria, :include_repos => true)
|
100
|
-
end
|
101
|
-
|
102
|
-
def update_repository_associations(units_json)
|
81
|
+
def update_repository_associations(units_json, additive = false)
|
103
82
|
ActiveRecord::Base.transaction do
|
104
83
|
repo_unit_id = {}
|
105
84
|
units_json.each do |unit_json|
|
106
85
|
unit_json['repository_memberships'].each do |repo_pulp_id|
|
107
|
-
|
108
|
-
|
86
|
+
if Repository.exists?(:pulp_id => repo_pulp_id)
|
87
|
+
repo_unit_id[repo_pulp_id] ||= []
|
88
|
+
repo_unit_id[repo_pulp_id] << unit_json['_id']
|
89
|
+
end
|
109
90
|
end
|
110
91
|
end
|
111
92
|
|
112
93
|
repo_unit_id.each do |repo_pulp_id, unit_uuids|
|
113
|
-
sync_repository_associations(Repository.find_by_pulp_id(repo_pulp_id), unit_uuids)
|
94
|
+
sync_repository_associations(Repository.find_by_pulp_id(repo_pulp_id), unit_uuids, additive)
|
114
95
|
end
|
115
96
|
end
|
116
97
|
end
|
@@ -1,16 +1,4 @@
|
|
1
1
|
# rubocop:disable AccessModifierIndentation
|
2
|
-
#
|
3
|
-
# Copyright 2014 Red Hat, Inc.
|
4
|
-
#
|
5
|
-
# This software is licensed to you under the GNU General Public
|
6
|
-
# License as published by the Free Software Foundation; either version
|
7
|
-
# 2 of the License (GPLv2) or (at your option) any later version.
|
8
|
-
# There is NO WARRANTY for this software, express or implied,
|
9
|
-
# including the implied warranties of MERCHANTABILITY,
|
10
|
-
# NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
11
|
-
# have received a copy of GPLv2 along with this software; if not, see
|
12
|
-
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
13
|
-
|
14
2
|
module Katello
|
15
3
|
module Concerns
|
16
4
|
module RedhatExtensions
|
@@ -18,21 +6,22 @@ module Katello
|
|
18
6
|
|
19
7
|
included do
|
20
8
|
alias_method_chain :medium_uri, :content_uri
|
21
|
-
alias_method_chain :mediumpath, :content
|
22
9
|
alias_method_chain :boot_files_uri, :content
|
23
|
-
after_create :assign_templates!
|
24
10
|
end
|
25
11
|
|
26
12
|
module ClassMethods
|
27
|
-
def find_or_create_operating_system(
|
28
|
-
os_name = construct_name(
|
29
|
-
major, minor =
|
13
|
+
def find_or_create_operating_system(repo)
|
14
|
+
os_name = construct_name(repo.distribution_family)
|
15
|
+
major, minor = repo.distribution_version.split('.')
|
30
16
|
minor ||= '' # treat minor versions as empty string to not confuse with nil
|
31
17
|
|
32
|
-
|
33
|
-
os = create_operating_system(os_name, major, minor) unless os
|
18
|
+
create_os = lambda { ::Redhat.where(:name => os_name, :major => major, :minor => minor).first_or_create! }
|
34
19
|
|
35
|
-
|
20
|
+
begin
|
21
|
+
create_os.call
|
22
|
+
rescue ActiveRecord::RecordInvalid
|
23
|
+
create_os.call
|
24
|
+
end
|
36
25
|
end
|
37
26
|
|
38
27
|
def create_operating_system(name, major, minor)
|
@@ -55,22 +44,6 @@ module Katello
|
|
55
44
|
end
|
56
45
|
end
|
57
46
|
|
58
|
-
def assign_templates!
|
59
|
-
# Automatically assign default templates
|
60
|
-
TemplateKind.all.each do |kind|
|
61
|
-
if (template = ConfigTemplate.find_by_name(Setting["katello_default_#{kind.name}"]))
|
62
|
-
config_templates << template unless config_templates.include?(template)
|
63
|
-
if OsDefaultTemplate.where(:template_kind_id => kind.id, :operatingsystem_id => id).empty?
|
64
|
-
OsDefaultTemplate.create(:template_kind_id => kind.id, :config_template_id => template.id, :operatingsystem_id => id)
|
65
|
-
end
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
if (ptable = Ptable.find_by_name(Setting["katello_default_ptable"]))
|
70
|
-
ptables << ptable unless ptables.include?(ptable)
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
74
47
|
def medium_uri_with_content_uri(host, url = nil)
|
75
48
|
if host.try(:content_source) && (repo_details = kickstart_repo(host))
|
76
49
|
URI.parse(repo_details[:path])
|
@@ -79,10 +52,6 @@ module Katello
|
|
79
52
|
end
|
80
53
|
end
|
81
54
|
|
82
|
-
def mediumpath_with_content(host)
|
83
|
-
"url --url #{medium_uri(host)}"
|
84
|
-
end
|
85
|
-
|
86
55
|
def kickstart_repo(host)
|
87
56
|
distro = distribution_repositories(host).first
|
88
57
|
{:name => distro.name, :path => distro.full_path(host.content_source)} if distro && host.content_source
|
@@ -95,20 +64,10 @@ module Katello
|
|
95
64
|
lifecycle_environment = host.lifecycle_environment
|
96
65
|
|
97
66
|
if content_view && lifecycle_environment
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
filters = [{:terms => {:repoids => repo_ids}},
|
103
|
-
{:term => {:version => host.os.release}},
|
104
|
-
{:term => {:arch => host.architecture.name}}]
|
105
|
-
distributions = Katello::Distribution.search do
|
106
|
-
filter :and, filters
|
107
|
-
end
|
108
|
-
distributions = distributions.select { |dist| Katello::Distribution.new(dist.as_json).bootable? }
|
109
|
-
distribution_repo_ids = distributions.map(&:repoids).flatten
|
110
|
-
|
111
|
-
::Katello::Repository.where(:pulp_id => (repo_ids & distribution_repo_ids))
|
67
|
+
Katello::Repository.where(:distribution_version => host.os.release,
|
68
|
+
:distribution_arch => host.architecture.name,
|
69
|
+
:distribution_bootable => true
|
70
|
+
)
|
112
71
|
else
|
113
72
|
[]
|
114
73
|
end
|
@@ -1,16 +1,4 @@
|
|
1
1
|
# rubocop:disable AccessModifierIndentation
|
2
|
-
#
|
3
|
-
# Copyright 2014 Red Hat, Inc.
|
4
|
-
#
|
5
|
-
# This software is licensed to you under the GNU General Public
|
6
|
-
# License as published by the Free Software Foundation; either version
|
7
|
-
# 2 of the License (GPLv2) or (at your option) any later version.
|
8
|
-
# There is NO WARRANTY for this software, express or implied,
|
9
|
-
# including the implied warranties of MERCHANTABILITY,
|
10
|
-
# NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
11
|
-
# have received a copy of GPLv2 along with this software; if not, see
|
12
|
-
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
13
|
-
|
14
2
|
module Katello
|
15
3
|
module Concerns
|
16
4
|
module SmartProxyExtensions
|
@@ -53,7 +41,7 @@ module Katello
|
|
53
41
|
:inverse_of => :capsule,
|
54
42
|
:foreign_key => :content_host_id
|
55
43
|
|
56
|
-
scope :with_content, with_features(PULP_FEATURE, PULP_NODE_FEATURE)
|
44
|
+
scope :with_content, -> { with_features(PULP_FEATURE, PULP_NODE_FEATURE) }
|
57
45
|
|
58
46
|
def self.default_capsule
|
59
47
|
with_features(PULP_FEATURE).first
|
@@ -1,17 +1,4 @@
|
|
1
1
|
# rubocop:disable AccessModifierIndentation
|
2
|
-
#
|
3
|
-
# Copyright 2014 Red Hat, Inc.
|
4
|
-
#
|
5
|
-
# This software is licensed to you under the GNU General Public
|
6
|
-
# License as published by the Free Software Foundation; either version
|
7
|
-
# 2 of the License (GPLv2) or (at your option) any later version.
|
8
|
-
# There is NO WARRANTY for this software, express or implied,
|
9
|
-
# including the implied warranties of MERCHANTABILITY,
|
10
|
-
# NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
11
|
-
# have received a copy of GPLv2 along with this software; if not, see
|
12
|
-
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
13
|
-
|
14
|
-
require 'util/password'
|
15
2
|
|
16
3
|
module Katello
|
17
4
|
module Concerns
|
@@ -19,41 +6,13 @@ module Katello
|
|
19
6
|
extend ActiveSupport::Concern
|
20
7
|
|
21
8
|
included do
|
22
|
-
include Glue::Pulp::User if Katello.config.use_pulp
|
23
|
-
include Glue if Katello.config.use_cp || Katello.config.use_pulp
|
24
|
-
include ForemanTasks::Concerns::ActionSubject
|
25
|
-
include ForemanTasks::Concerns::ActionTriggering
|
26
|
-
|
27
|
-
def create_action
|
28
|
-
sync_action!
|
29
|
-
::Actions::Katello::User::Create
|
30
|
-
end
|
31
|
-
|
32
|
-
def destroy_action
|
33
|
-
sync_action!
|
34
|
-
::Actions::Katello::User::Destroy
|
35
|
-
end
|
36
|
-
|
37
9
|
include Util::ThreadSession::UserModel
|
38
10
|
|
39
|
-
has_many :help_tips, :dependent => :destroy, :class_name => "Katello::HelpTip"
|
40
|
-
has_many :user_notices, :dependent => :destroy, :class_name => "Katello::UserNotice"
|
41
|
-
has_many :notices, :through => :user_notices, :class_name => "Katello::Notice"
|
42
11
|
has_many :task_statuses, :dependent => :destroy, :class_name => "Katello::TaskStatus"
|
43
|
-
has_many :search_favorites, :dependent => :destroy, :class_name => "Katello::SearchFavorite"
|
44
|
-
has_many :search_histories, :dependent => :destroy, :class_name => "Katello::SearchHistory"
|
45
12
|
has_many :activation_keys, :dependent => :destroy, :class_name => "Katello::ActivationKey"
|
46
|
-
serialize :preferences, Hash
|
47
|
-
|
48
|
-
after_validation :setup_remote_id
|
49
|
-
before_save :setup_preferences
|
50
13
|
|
51
|
-
def
|
52
|
-
|
53
|
-
end
|
54
|
-
|
55
|
-
def preferences_hash
|
56
|
-
self.preferences.is_a?(Hash) ? self.preferences : self.preferences.unserialized_value
|
14
|
+
def self.remote_user
|
15
|
+
SETTINGS[:katello][:pulp][:default_login]
|
57
16
|
end
|
58
17
|
|
59
18
|
def self.cp_oauth_header
|
@@ -70,160 +29,13 @@ module Katello
|
|
70
29
|
User.current.is_a? CpConsumerUser
|
71
30
|
end
|
72
31
|
|
73
|
-
def disable_helptip(key)
|
74
|
-
return unless self.helptips_enabled? #don't update helptips if user has it disabled
|
75
|
-
return unless Katello::HelpTip.where(:key => key, :user_id => self.id).empty?
|
76
|
-
help = Katello::HelpTip.new
|
77
|
-
help.key = key
|
78
|
-
help.user = self
|
79
|
-
help.save
|
80
|
-
end
|
81
|
-
|
82
|
-
#Remove up to 5 un-viewed notices
|
83
|
-
def pop_notices(organization = nil, count = 5)
|
84
|
-
notices = Notice.for_user(self).for_org(organization).unread.limit(count == :all ? nil : count)
|
85
|
-
notices.each { |notice| notice.user_notices.each(&:read!) }
|
86
|
-
|
87
|
-
notices = notices.map do |notice|
|
88
|
-
{:text => notice.text, :level => notice.level, :request_type => notice.request_type}
|
89
|
-
end
|
90
|
-
return notices
|
91
|
-
end
|
92
|
-
|
93
|
-
def enable_helptip(key)
|
94
|
-
return unless self.helptips_enabled? #don't update helptips if user has it disabled
|
95
|
-
help = Katello::HelpTip.where(:key => key, :user_id => self.id).first
|
96
|
-
return if help.nil?
|
97
|
-
help.destroy
|
98
|
-
end
|
99
|
-
|
100
|
-
def clear_helptips
|
101
|
-
Katello::HelpTip.destroy_all(:user_id => self.id)
|
102
|
-
end
|
103
|
-
|
104
|
-
def helptip_enabled?(key)
|
105
|
-
return self.helptips_enabled && Katello::HelpTip.where(:key => key, :user_id => self.id).first.nil?
|
106
|
-
end
|
107
|
-
|
108
32
|
def cp_oauth_header
|
109
33
|
{ 'cp-user' => self.login }
|
110
34
|
end
|
111
35
|
|
112
|
-
def default_locale
|
113
|
-
self.preferences_hash[:user][:locale] rescue nil
|
114
|
-
end
|
115
|
-
|
116
|
-
def default_locale=(locale)
|
117
|
-
self.preferences_hash[:user] = { } unless self.preferences_hash.key? :user
|
118
|
-
self.preferences_hash[:user][:locale] = locale
|
119
|
-
end
|
120
|
-
|
121
|
-
def legacy_mode
|
122
|
-
self.preferences_hash[:user][:legacy_mode] rescue nil
|
123
|
-
end
|
124
|
-
|
125
|
-
def legacy_mode=(use_legacy_mode)
|
126
|
-
self.preferences_hash[:user] = { } unless self.preferences_hash.key? :user
|
127
|
-
self.preferences_hash[:user][:legacy_mode] = use_legacy_mode.to_bool
|
128
|
-
end
|
129
|
-
|
130
|
-
def default_org
|
131
|
-
org_id = self.preferences_hash[:user][:default_org] rescue nil
|
132
|
-
if org_id && !org_id.nil? && org_id != "nil"
|
133
|
-
org = Organization.find_by_id(org_id)
|
134
|
-
return org if self.organizations.include?(org)
|
135
|
-
else
|
136
|
-
return nil
|
137
|
-
end
|
138
|
-
end
|
139
|
-
|
140
|
-
#set the default org if it's an actual org_id
|
141
|
-
def default_org=(org_id)
|
142
|
-
self.preferences_hash[:user] = { } unless self.preferences_hash.key? :user
|
143
|
-
if !org_id.nil? && org_id != "nil"
|
144
|
-
organization = Organization.find_by_id(org_id)
|
145
|
-
self.preferences_hash[:user][:default_org] = organization.id
|
146
|
-
else
|
147
|
-
self.preferences_hash[:user][:default_org] = nil
|
148
|
-
end
|
149
|
-
end
|
150
|
-
|
151
|
-
def subscriptions_match_system_preference
|
152
|
-
self.preferences_hash[:user][:subscriptions_match_system] rescue false
|
153
|
-
end
|
154
|
-
|
155
|
-
def subscriptions_match_system_preference=(flag)
|
156
|
-
self.preferences_hash[:user] = { } unless self.preferences_hash.key? :user
|
157
|
-
self.preferences_hash[:user][:subscriptions_match_system] = flag
|
158
|
-
end
|
159
|
-
|
160
|
-
def subscriptions_match_installed_preference
|
161
|
-
self.preferences_hash[:user][:subscriptions_match_installed] rescue false
|
162
|
-
end
|
163
|
-
|
164
|
-
def subscriptions_match_installed_preference=(flag)
|
165
|
-
self.preferences_hash[:user] = { } unless self.preferences_hash.key? :user
|
166
|
-
self.preferences_hash[:user][:subscriptions_match_installed] = flag
|
167
|
-
end
|
168
|
-
|
169
|
-
def subscriptions_no_overlap_preference
|
170
|
-
self.preferences_hash[:user][:subscriptions_no_overlap] rescue false
|
171
|
-
end
|
172
|
-
|
173
|
-
def subscriptions_no_overlap_preference=(flag)
|
174
|
-
self.preferences_hash[:user] = { } unless self.preferences_hash.key? :user
|
175
|
-
self.preferences_hash[:user][:subscriptions_no_overlap] = flag
|
176
|
-
end
|
177
|
-
|
178
|
-
def create_or_update_search_history(path, search_params)
|
179
|
-
unless search_params.nil? || search_params.blank? || empty_display_attributes?(search_params)
|
180
|
-
if history = search_histories.find_or_create_by_path_and_params(path, search_params)
|
181
|
-
history.update_attributes(:updated_at => Time.now)
|
182
|
-
end
|
183
|
-
end
|
184
|
-
end
|
185
|
-
|
186
|
-
def empty_display_attributes?(a_search_string)
|
187
|
-
tokens = a_search_string.strip.split(/\s/)
|
188
|
-
return false if tokens.size > 1
|
189
|
-
|
190
|
-
return false unless tokens.first.end_with?(':')
|
191
|
-
true
|
192
|
-
end
|
193
|
-
|
194
36
|
def allowed_organizations
|
195
37
|
admin? ? Organization.all : self.organizations
|
196
38
|
end
|
197
|
-
|
198
|
-
private
|
199
|
-
|
200
|
-
# generate a random token, that is unique within the User table for the column provided
|
201
|
-
def generate_token(column)
|
202
|
-
loop do
|
203
|
-
self[column] = SecureRandom.hex(32)
|
204
|
-
break unless User.exists?(column => self[column])
|
205
|
-
end
|
206
|
-
end
|
207
|
-
|
208
|
-
def setup_remote_id
|
209
|
-
#if validation failed, don't setup
|
210
|
-
return false unless self.errors.empty?
|
211
|
-
if self.remote_id.nil?
|
212
|
-
self.remote_id = generate_remote_id
|
213
|
-
end
|
214
|
-
return true
|
215
|
-
end
|
216
|
-
|
217
|
-
def generate_remote_id
|
218
|
-
if User.current.object_id == self.object_id
|
219
|
-
# The case when the first user is being created.
|
220
|
-
Katello.config.pulp.default_login
|
221
|
-
elsif self.login.ascii_only?
|
222
|
-
"#{Util::Model.labelize(self.login)}-#{SecureRandom.hex(4)}"
|
223
|
-
else
|
224
|
-
Util::Model.uuid
|
225
|
-
end
|
226
|
-
end
|
227
39
|
end
|
228
40
|
end
|
229
41
|
end
|