katello 3.13.4 → 3.14.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.
- checksums.yaml +4 -4
- data/app/controllers/katello/api/registry/registry_proxies_controller.rb +25 -16
- data/app/controllers/katello/api/v2/activation_keys_controller.rb +26 -21
- data/app/controllers/katello/api/v2/ansible_collections_controller.rb +6 -0
- data/app/controllers/katello/api/v2/content_uploads_controller.rb +8 -2
- data/app/controllers/katello/api/v2/content_view_filter_rules_controller.rb +8 -1
- data/app/controllers/katello/api/v2/content_view_filters_controller.rb +1 -1
- data/app/controllers/katello/api/v2/errata_controller.rb +1 -1
- data/app/controllers/katello/api/v2/host_subscriptions_controller.rb +3 -3
- data/app/controllers/katello/api/v2/katello_ping_controller.rb +24 -0
- data/app/controllers/katello/api/v2/module_streams_controller.rb +21 -0
- data/app/controllers/katello/api/v2/package_groups_controller.rb +5 -0
- data/app/controllers/katello/api/v2/packages_controller.rb +16 -0
- data/app/controllers/katello/api/v2/repositories_controller.rb +7 -4
- data/app/controllers/katello/api/v2/srpms_controller.rb +1 -1
- data/app/controllers/katello/api/v2/subscriptions_controller.rb +5 -1
- data/app/controllers/katello/api/v2/sync_plans_controller.rb +7 -5
- data/app/controllers/katello/concerns/api/v2/repository_content_controller.rb +36 -5
- data/app/helpers/katello/hosts_and_hostgroups_helper.rb +12 -0
- data/app/lib/actions/katello/capsule_content/refresh_repos.rb +55 -0
- data/app/lib/actions/katello/capsule_content/sync.rb +13 -64
- data/app/lib/actions/katello/capsule_content/sync_capsule.rb +40 -0
- data/app/lib/actions/katello/content_view/publish.rb +0 -3
- data/app/lib/actions/katello/content_view_puppet_environment/destroy.rb +1 -3
- data/app/lib/actions/katello/orphan_cleanup/remove_orphans.rb +21 -0
- data/app/lib/actions/katello/repository/create.rb +8 -0
- data/app/lib/actions/katello/repository/import_upload.rb +13 -12
- data/app/lib/actions/katello/repository/metadata_generate.rb +2 -2
- data/app/lib/actions/katello/repository/update.rb +9 -0
- data/app/lib/actions/katello/repository/upload_files.rb +4 -11
- data/app/lib/actions/pulp/consumer/sync_capsule.rb +4 -0
- data/app/lib/actions/pulp/orchestration/orphan_cleanup/remove_orphans.rb +16 -0
- data/app/lib/actions/pulp/orchestration/repository/refresh_repos.rb +25 -0
- data/app/lib/actions/pulp/orchestration/repository/smart_proxy_sync.rb +34 -0
- data/app/lib/actions/pulp/orchestration/repository/upload_content.rb +35 -0
- data/app/lib/actions/pulp/orphan_cleanup/remove_orphans.rb +15 -0
- data/app/lib/actions/{katello/capsule_content → pulp/orphan_cleanup}/remove_unneeded_repos.rb +2 -2
- data/app/lib/actions/pulp/repository/import_upload.rb +7 -11
- data/app/lib/actions/pulp3/abstract_async_task.rb +7 -7
- data/app/lib/actions/pulp3/capsule_content/generate_metadata.rb +32 -0
- data/app/lib/actions/pulp3/capsule_content/refresh_distribution.rb +31 -0
- data/app/lib/actions/pulp3/capsule_content/sync.rb +26 -0
- data/app/lib/actions/pulp3/orchestration/orphan_cleanup/remove_orphans.rb +20 -0
- data/app/lib/actions/pulp3/orchestration/repository/copy_all_units.rb +15 -15
- data/app/lib/actions/pulp3/orchestration/repository/create.rb +3 -1
- data/app/lib/actions/pulp3/orchestration/repository/import_upload.rb +36 -0
- data/app/lib/actions/pulp3/orchestration/repository/refresh_repos.rb +24 -0
- data/app/lib/actions/pulp3/orchestration/repository/sync.rb +1 -1
- data/app/lib/actions/pulp3/orchestration/repository/upload_content.rb +25 -0
- data/app/lib/actions/pulp3/orphan_cleanup/delete_orphan_repository_versions.rb +20 -0
- data/app/lib/actions/pulp3/orphan_cleanup/remove_unneeded_repos.rb +16 -0
- data/app/lib/actions/pulp3/repository/create_publication.rb +1 -5
- data/app/lib/actions/pulp3/repository/import_upload.rb +21 -0
- data/app/lib/actions/pulp3/repository/save_artifact.rb +19 -0
- data/app/lib/actions/pulp3/repository/save_version.rb +3 -2
- data/app/lib/actions/pulp3/repository/sync.rb +1 -1
- data/app/lib/actions/pulp3/repository/upload_file.rb +76 -0
- data/app/lib/katello/api/v2/rendering.rb +1 -2
- data/app/lib/katello/concerns/base_template_scope_extensions.rb +34 -2
- data/app/lib/katello/errors.rb +21 -0
- data/app/lib/katello/resources/candlepin/consumer.rb +0 -9
- data/app/lib/katello/resources/candlepin/owner.rb +0 -5
- data/app/lib/katello/resources/candlepin/product.rb +2 -6
- data/app/lib/katello/resources/registry.rb +25 -10
- data/app/lib/katello/util/filter_clause_generator.rb +1 -1
- data/app/lib/katello/util/module_stream_clause_generator.rb +49 -0
- data/app/lib/katello/util/package_clause_generator.rb +1 -1
- data/app/models/katello/ansible_collection.rb +5 -8
- data/app/models/katello/ansible_collection_tag.rb +8 -0
- data/app/models/katello/ansible_tag.rb +8 -0
- data/app/models/katello/concerns/host_managed_extensions.rb +16 -14
- data/app/models/katello/concerns/pulp_database_unit.rb +27 -4
- data/app/models/katello/concerns/search_by_repository_name.rb +4 -1
- data/app/models/katello/concerns/smart_proxy_extensions.rb +44 -20
- data/app/models/katello/content_view_docker_filter.rb +15 -2
- data/app/models/katello/content_view_filter.rb +28 -8
- data/app/models/katello/content_view_module_stream_filter.rb +14 -0
- data/app/models/katello/content_view_module_stream_filter_rule.rb +11 -0
- data/app/models/katello/content_view_package_filter.rb +18 -8
- data/app/models/katello/content_view_version.rb +7 -2
- data/app/models/katello/deb.rb +0 -8
- data/app/models/katello/docker_manifest.rb +0 -8
- data/app/models/katello/docker_manifest_list.rb +0 -8
- data/app/models/katello/docker_meta_tag.rb +38 -20
- data/app/models/katello/docker_tag.rb +22 -33
- data/app/models/katello/erratum.rb +10 -8
- data/app/models/katello/file_unit.rb +1 -13
- data/app/models/katello/glue/candlepin/owner.rb +0 -5
- data/app/models/katello/glue/candlepin/product.rb +1 -5
- data/app/models/katello/glue/pulp/repo.rb +1 -1
- data/app/models/katello/host/content_facet.rb +6 -0
- data/app/models/katello/host_collection.rb +4 -0
- data/app/models/katello/installed_package.rb +4 -0
- data/app/models/katello/module_stream.rb +1 -12
- data/app/models/katello/ostree_branch.rb +0 -7
- data/app/models/katello/package_group.rb +0 -7
- data/app/models/katello/ping.rb +10 -3
- data/app/models/katello/pool.rb +11 -1
- data/app/models/katello/puppet_module.rb +0 -7
- data/app/models/katello/repository.rb +15 -6
- data/app/models/katello/repository_docker_meta_tag.rb +7 -0
- data/app/models/katello/repository_docker_tag.rb +7 -0
- data/app/models/katello/repository_file_unit.rb +7 -0
- data/app/models/katello/rhsm_fact_name.rb +5 -1
- data/app/models/katello/rhsm_fact_parser.rb +17 -1
- data/app/models/katello/root_repository.rb +11 -6
- data/app/models/katello/rpm.rb +0 -8
- data/app/models/katello/srpm.rb +0 -8
- data/app/models/katello/upstream_pool.rb +2 -0
- data/app/models/katello/yum_metadata_file.rb +0 -4
- data/app/models/setting/content.rb +124 -128
- data/app/services/katello/candlepin/consumer.rb +0 -1
- data/app/services/katello/pulp/content.rb +11 -4
- data/app/services/katello/pulp/docker_tag.rb +0 -1
- data/app/services/katello/pulp/pulp_content_unit.rb +4 -0
- data/app/services/katello/pulp/repository.rb +53 -0
- data/app/services/katello/pulp/repository/file.rb +1 -1
- data/app/services/katello/pulp/repository/puppet.rb +8 -1
- data/app/services/katello/pulp/repository/yum.rb +42 -9
- data/app/services/katello/pulp/smart_proxy_repository.rb +13 -96
- data/app/services/katello/pulp3/ansible_collection.rb +7 -3
- data/app/services/katello/pulp3/content.rb +60 -0
- data/app/services/katello/pulp3/docker_blob.rb +1 -1
- data/app/services/katello/pulp3/docker_manifest.rb +1 -1
- data/app/services/katello/pulp3/docker_manifest_list.rb +1 -1
- data/app/services/katello/pulp3/docker_tag.rb +2 -2
- data/app/services/katello/pulp3/file_unit.rb +7 -1
- data/app/services/katello/pulp3/pulp_content_unit.rb +15 -5
- data/app/services/katello/pulp3/repository.rb +301 -24
- data/app/services/katello/pulp3/repository/ansible_collection.rb +5 -1
- data/app/services/katello/pulp3/repository/docker.rb +54 -9
- data/app/services/katello/pulp3/repository/file.rb +8 -0
- data/app/services/katello/pulp3/repository/yum.rb +61 -0
- data/app/services/katello/pulp3/smart_proxy_repository.rb +38 -0
- data/app/services/katello/repository_type_manager.rb +7 -0
- data/app/services/katello/smart_proxy_helper.rb +50 -0
- data/app/views/foreman/smart_proxies/_content_tab.html.erb +1 -1
- data/app/views/katello/api/v2/ansible_collections/base.json.rabl +5 -0
- data/app/views/katello/api/v2/ansible_collections/show.json.rabl +7 -0
- data/app/views/katello/api/v2/capsule_content/sync_status.json.rabl +1 -0
- data/app/views/katello/api/v2/content_view_filter_rules/show.json.rabl +1 -1
- data/app/views/katello/api/v2/content_view_filters/base.json.rabl +5 -0
- data/app/views/katello/api/v2/content_view_filters/show.json.rabl +2 -1
- data/app/views/katello/api/v2/hosts_bulk_actions/erratum.json.rabl +2 -0
- data/app/views/katello/api/v2/{ping → katello_ping}/server_status.json.rabl +0 -0
- data/app/views/katello/api/v2/{ping → katello_ping}/show.json.rabl +0 -0
- data/app/views/katello/api/v2/{ping → katello_ping}/version.json.rabl +0 -0
- data/app/views/katello/api/v2/repositories/show.json.rabl +1 -1
- data/app/views/katello/api/v2/subscription_facet/base.json.rabl +1 -1
- data/app/views/katello/api/v2/subscriptions/index.json.rabl +1 -0
- data/app/views/katello/api/v2/subscriptions/permissions.rabl +11 -0
- data/config/katello.yaml.example +9 -0
- data/config/routes.rb +2 -1
- data/config/routes/api/v2.rb +2 -2
- data/db/migrate/20180920214134_create_repository_root.rb +1 -1
- data/db/migrate/20190730183518_add_docker_tag_join_table.rb +25 -0
- data/db/migrate/20190730203334_add_docker_meta_tag_join_table.rb +25 -0
- data/db/migrate/20190814025338_create_content_view_module_stream_filter_rules.rb +13 -0
- data/db/migrate/20190816162733_rename_ansible_collection_whitelist_to_requirements.rb +5 -0
- data/db/migrate/20190822144300_add_ansible_fields.rb +18 -0
- data/db/migrate/20190912210927_rename_repository_file_unit.rb +12 -0
- data/engines/bastion/README.md +2 -2
- data/engines/bastion/app/assets/javascripts/bastion/components/bst-edit.directive.js +2 -1
- data/engines/bastion/app/assets/javascripts/bastion/components/nutupane.factory.js +20 -6
- data/engines/bastion/app/assets/javascripts/bastion/components/views/bst-modal.html +1 -1
- data/engines/bastion/app/assets/javascripts/bastion/layouts/partials/table.html +2 -1
- data/engines/bastion/app/assets/stylesheets/bastion/overrides.scss +1 -0
- data/engines/bastion/lib/bastion.rb +1 -0
- data/engines/bastion_katello/README.md +1 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-repository-sets.controller.js +1 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ansible-collections/ansible-collections.factory.js +28 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ansible-collections/ansible-collections.module.js +15 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion-katello-bootstrap.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion_katello.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/capsule-content.controller.js +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-errata-modal.controller.js +0 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-destroy-modal.html +3 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-errata-modal.html +2 -34
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-repository-sets-modal.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-register-client.directive.js +6 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.routes.js +0 -11
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-installed.controller.js +1 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages.controller.js +3 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html +1 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-actions.html +2 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-installed.html +1 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-details.html +4 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/register-client.html +13 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/register.html +1 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.routes.js +47 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/views/content-view-composite-available-content-views.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/views/content-view-composite-content-views-list.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-details.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/available-module-stream-filter.controller.js +68 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-rule-matching-package-modal.controller.js +37 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filters.controller.js +4 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/module-stream-list-filter.controller.js +73 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/new-filter.controller.js +4 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/package-filter.controller.js +14 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/errata-filter-details.html +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filter-details.html +0 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filter-repositories.html +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filter-rule-matching-package-modal.html +43 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filters.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/module-stream-filter-details.html +41 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/module-stream-filter.html +43 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/package-filter-details.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/histories/content-view-history.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/histories/views/content-view-history.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-deb-repositories.html +3 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-info.html +1 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/new/views/content-view-new.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-errata.html +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-add-hosts.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-info.html +44 -35
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/packages.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-info.controller.js +12 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-manage-content.controller.js +5 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-info.html +21 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-manage-ansible-collections.html +36 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/download-policy.service.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/new/new-repository.controller.js +24 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/new/views/new-repository.html +29 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repositories.routes.js +9 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/views/product-repositories.html +1 -1
- data/engines/bastion_katello/app/assets/stylesheets/bastion_katello/bastion_katello.scss +8 -0
- data/engines/bastion_katello/lib/bastion_katello/engine.rb +8 -8
- data/lib/katello/engine.rb +0 -4
- data/lib/katello/plugin.rb +19 -1
- data/lib/katello/repository_types/yum.rb +2 -0
- data/lib/katello/tasks/delete_orphaned_content.rake +1 -1
- data/lib/katello/tasks/reimport.rake +1 -1
- data/lib/katello/version.rb +1 -1
- data/package.json +9 -5
- data/webpack/__mocks__/foremanReact/common/helpers.js +4 -1
- data/webpack/__mocks__/foremanReact/components/PermissionDenied/index.js +2 -0
- data/webpack/components/Content/ContentPage.js +55 -0
- data/webpack/{scenes/ModuleStreams/ModuleStreamsTable.js → components/Content/ContentTable.js} +9 -8
- data/webpack/components/Content/Details/ContentDetailInfo.js +33 -0
- data/webpack/{scenes/ModuleStreams/Details/Repositories/ModuleStreamDetailRepositories.js → components/Content/Details/ContentDetailRepositories.js} +4 -4
- data/webpack/{scenes/ModuleStreams/Details/Repositories/TableSchema.js → components/Content/Details/ContentDetailRepositoryTableSchema.js} +1 -1
- data/webpack/components/Content/Details/ContentDetails.js +70 -0
- data/webpack/components/Content/Details/__tests__/ContentDetailInfo.test.js +28 -0
- data/webpack/components/Content/Details/__tests__/ContentDetailRepositories.test.js +22 -0
- data/webpack/components/Content/Details/__tests__/ContentDetails.test.js +64 -0
- data/webpack/components/Content/Details/__tests__/__snapshots__/ContentDetailInfo.test.js.snap +39 -0
- data/webpack/{scenes/ModuleStreams/Details/Repositories/__tests__/__snapshots__/ModuleStreamDetailRepositories.test.js.snap → components/Content/Details/__tests__/__snapshots__/ContentDetailRepositories.test.js.snap} +3 -9
- data/webpack/components/Content/Details/__tests__/__snapshots__/ContentDetails.test.js.snap +137 -0
- data/webpack/components/Content/__tests__/ContentPage.test.js +36 -0
- data/webpack/components/Content/__tests__/ContentTable.test.js +40 -0
- data/webpack/components/Content/__tests__/__snapshots__/ContentPage.test.js.snap +70 -0
- data/webpack/components/Content/__tests__/__snapshots__/ContentTable.test.js.snap +33 -0
- data/webpack/components/Search/index.js +6 -7
- data/webpack/components/SelectOrg/SelectOrgAction.js +20 -22
- data/webpack/containers/Application/config.js +10 -0
- data/webpack/containers/Application/overrides.scss +5 -0
- data/webpack/move_to_foreman/common/helpers.js +1 -1
- data/webpack/move_to_foreman/components/common/table/components/TableSelectionCell.js +5 -2
- data/webpack/move_to_foreman/components/common/table/formatters/EntitlementsInlineEditFormatter.js +9 -2
- data/webpack/move_to_foreman/components/common/table/formatters/collapseableAndSelectionCellFormatter.js +2 -0
- data/webpack/move_to_foreman/components/common/table/formatters/selectionCellFormatter.js +3 -0
- data/webpack/move_to_pf/TypeAhead/TypeAhead.js +1 -0
- data/webpack/redux/OrganizationProducts/OrganizationProductsActions.js +10 -10
- data/webpack/redux/actions/RedHatRepositories/__tests__/enabled.test.js +39 -0
- data/webpack/redux/actions/RedHatRepositories/enabled.js +24 -24
- data/webpack/redux/actions/RedHatRepositories/helpers.js +5 -5
- data/webpack/redux/actions/RedHatRepositories/repositorySetRepositories.js +23 -22
- data/webpack/redux/actions/RedHatRepositories/sets.js +17 -21
- data/webpack/redux/reducers/RedHatRepositories/__tests__/enabled.test.js +1 -0
- data/webpack/redux/reducers/RedHatRepositories/__tests__/sets.test.js +1 -1
- data/webpack/redux/reducers/RedHatRepositories/enabled.fixtures.js +1 -0
- data/webpack/redux/reducers/RedHatRepositories/enabled.js +42 -33
- data/webpack/redux/reducers/RedHatRepositories/sets.fixtures.js +2 -1
- data/webpack/redux/reducers/RedHatRepositories/sets.js +2 -1
- data/webpack/redux/reducers/index.js +4 -0
- data/webpack/scenes/AnsibleCollections/AnsibleCollectionsActions.js +30 -0
- data/webpack/scenes/AnsibleCollections/AnsibleCollectionsConstants.js +3 -0
- data/webpack/scenes/AnsibleCollections/AnsibleCollectionsPage.js +80 -0
- data/webpack/scenes/AnsibleCollections/AnsibleCollectionsReducer.js +39 -0
- data/webpack/scenes/AnsibleCollections/AnsibleCollectionsTableSchema.js +60 -0
- data/webpack/scenes/AnsibleCollections/AnsibleCollectionsTables.scss +0 -0
- data/webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetails.js +91 -0
- data/webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsActions.js +23 -0
- data/webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsConstants.js +3 -0
- data/webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsReducer.js +30 -0
- data/webpack/scenes/AnsibleCollections/Details/AnsibleCollectionsSchema.js +35 -0
- data/webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailInfo.test.js +16 -0
- data/webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetails.fixtures.js +25 -0
- data/webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetails.test.js +29 -0
- data/webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsActions.test.js +41 -0
- data/webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js +33 -0
- data/webpack/scenes/AnsibleCollections/Details/__tests__/__snapshots__/AnsibleCollectionDetailInfo.test.js.snap +83 -0
- data/webpack/scenes/AnsibleCollections/Details/__tests__/__snapshots__/AnsibleCollectionDetails.test.js.snap +190 -0
- data/webpack/scenes/AnsibleCollections/Details/__tests__/__snapshots__/AnsibleCollectionDetailsActions.test.js.snap +54 -0
- data/webpack/scenes/AnsibleCollections/Details/__tests__/__snapshots__/AnsibleCollectionDetailsReducer.test.js.snap +50 -0
- data/webpack/scenes/AnsibleCollections/Details/index.js +17 -0
- data/webpack/scenes/AnsibleCollections/__tests__/AnsibleCollectionPage.test.js +25 -0
- data/webpack/scenes/AnsibleCollections/__tests__/AnsibleCollections.fixtures.js +52 -0
- data/webpack/scenes/AnsibleCollections/__tests__/AnsibleCollectionsActions.test.js +48 -0
- data/webpack/scenes/AnsibleCollections/__tests__/AnsibleCollectionsReducer.test.js +46 -0
- data/webpack/scenes/AnsibleCollections/__tests__/AnsibleCollectionsTable.test.js +27 -0
- data/webpack/scenes/AnsibleCollections/__tests__/__snapshots__/AnsibleCollectionPage.test.js.snap +73 -0
- data/webpack/scenes/AnsibleCollections/__tests__/__snapshots__/AnsibleCollectionsTable.test.js.snap +81 -0
- data/webpack/scenes/AnsibleCollections/index.js +17 -0
- data/webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js +56 -0
- data/webpack/scenes/ModuleStreams/Details/ModuleStreamDetails.js +7 -71
- data/webpack/scenes/ModuleStreams/Details/ModuleStreamDetailsActions.js +9 -11
- data/webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetailInfo.test.js +5 -3
- data/webpack/scenes/ModuleStreams/Details/__tests__/__snapshots__/ModuleStreamDetails.test.js.snap +453 -507
- data/webpack/scenes/ModuleStreams/ModuleStreamsActions.js +10 -11
- data/webpack/scenes/ModuleStreams/ModuleStreamsPage.js +12 -33
- data/webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js +2 -4
- data/webpack/scenes/ModuleStreams/__tests__/ModuleStreamsActions.test.js +8 -9
- data/webpack/scenes/ModuleStreams/__tests__/ModuleStreamsTable.test.js +5 -3
- data/webpack/scenes/ModuleStreams/__tests__/__snapshots__/ModuleStreamPage.test.js.snap +83 -65
- data/webpack/scenes/ModuleStreams/__tests__/__snapshots__/ModuleStreamsTable.test.js.snap +1 -1
- data/webpack/scenes/Organizations/OrganizationActions.js +27 -32
- data/webpack/scenes/Organizations/__tests__/OrganizationActions.test.js +12 -12
- data/webpack/scenes/Organizations/__tests__/organizations.fixtures.js +1 -1
- data/webpack/scenes/Products/ProductActions.js +10 -10
- data/webpack/scenes/Products/__tests__/ProductActions.test.js +6 -6
- data/webpack/scenes/RedHatRepositories/RedHatRepositoriesPage.js +118 -0
- data/webpack/scenes/RedHatRepositories/__tests__/RedHatRepositoriesPage.test.js +51 -0
- data/webpack/scenes/RedHatRepositories/__tests__/__snapshots__/RedHatRepositoriesPage.test.js.snap +117 -0
- data/webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepository.js +44 -45
- data/webpack/scenes/RedHatRepositories/components/EnabledRepository/__tests__/EnabledRepository.test.js +84 -5
- data/webpack/scenes/RedHatRepositories/components/RepositorySetRepository/RepositorySetRepository.js +46 -47
- data/webpack/scenes/RedHatRepositories/helpers.js +1 -1
- data/webpack/scenes/RedHatRepositories/index.js +2 -101
- data/webpack/scenes/Settings/Tables/TableActions.js +42 -43
- data/webpack/scenes/Settings/Tables/__tests__/TableActions.test.js +18 -18
- data/webpack/scenes/Subscriptions/Details/SubscriptionDetailActions.js +10 -10
- data/webpack/scenes/Subscriptions/Details/SubscriptionDetails.js +7 -6
- data/webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailActions.test.js +8 -8
- data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetails.test.js.snap +2 -2
- data/webpack/scenes/Subscriptions/Manifest/ManageManifestModal.js +142 -113
- data/webpack/scenes/Subscriptions/Manifest/Manifest.scss +8 -0
- data/webpack/scenes/Subscriptions/Manifest/ManifestActions.js +40 -40
- data/webpack/scenes/Subscriptions/Manifest/__tests__/ManifestActions.test.js +24 -24
- data/webpack/scenes/Subscriptions/Manifest/__tests__/__snapshots__/ManageManifestModal.test.js.snap +0 -199
- data/webpack/scenes/Subscriptions/SubscriptionActions.js +52 -46
- data/webpack/scenes/Subscriptions/SubscriptionReducer.js +21 -2
- data/webpack/scenes/Subscriptions/SubscriptionsPage.js +64 -42
- data/webpack/scenes/Subscriptions/SubscriptionsSelectors.js +3 -0
- data/webpack/scenes/Subscriptions/UpstreamSubscriptions/UpstreamSubscriptionsActions.js +21 -21
- data/webpack/scenes/Subscriptions/UpstreamSubscriptions/UpstreamSubscriptionsPage.js +20 -21
- data/webpack/scenes/Subscriptions/UpstreamSubscriptions/UpstreamSubscriptionsTableSchema.js +1 -15
- data/webpack/scenes/Subscriptions/UpstreamSubscriptions/__tests__/UpstreamSubscriptionsActions.test.js +12 -13
- data/webpack/scenes/Subscriptions/UpstreamSubscriptions/__tests__/__snapshots__/UpstreamSubscriptionsPage.test.js.snap +11 -14
- data/webpack/scenes/Subscriptions/__tests__/SubscriptionsActions.test.js +21 -23
- data/webpack/scenes/Subscriptions/__tests__/SubscriptionsPage.test.js +35 -1
- data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsPage.test.js.snap +13 -0
- data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsReducer.test.js.snap +7 -0
- data/webpack/scenes/Subscriptions/__tests__/subscriptions.fixtures.js +18 -0
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTable.js +5 -4
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTableHelpers.js +26 -5
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTableSchema.js +9 -1
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js +27 -2
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTableHelpers.test.js +5 -4
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/__snapshots__/SubscriptionsTable.test.js.snap +1 -0
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UpdateDialog.js +9 -9
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Table.js +8 -3
- data/webpack/scenes/Subscriptions/components/SubscriptionsToolbar/SubscriptionsToolbar.js +28 -23
- data/webpack/scenes/Subscriptions/components/SubscriptionsToolbar/__snapshots__/SubscriptionsToolbar.test.js.snap +0 -135
- data/webpack/scenes/Subscriptions/index.js +2 -0
- data/webpack/scenes/Tasks/TaskActions.js +36 -31
- data/webpack/scenes/Tasks/__tests__/TaskActions.test.js +35 -47
- metadata +146 -67
- data/app/controllers/katello/api/v2/ping_controller.rb +0 -24
- data/app/lib/actions/katello/capsule_content/create_repos.rb +0 -30
- data/app/lib/actions/katello/capsule_content/remove_orphans.rb +0 -21
- data/app/lib/actions/pulp/repository/refresh_needed.rb +0 -37
- data/app/lib/katello/resources/candlepin/owner_info.rb +0 -18
- data/app/models/katello/glue/candlepin/owner_info.rb +0 -41
- data/app/models/katello/repository_file.rb +0 -7
- data/app/overrides/add_subscription_status.rb +0 -6
- data/app/views/overrides/hosts/_subscription_link.html.erb +0 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-events.controller.js +0 -17
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-events.html +0 -30
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/content-access-mode-banner.directive.js +0 -22
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-details.controller.js +0 -58
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-product-details.controller.js +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js +0 -30
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-details.html +0 -25
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-info.html +0 -120
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-products.html +0 -54
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js +0 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest-details.controller.js +0 -34
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest-history.controller.js +0 -18
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest-import.controller.js +0 -261
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest.controller.js +0 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/views/manifest-delete-modal.html +0 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/views/manifest-details.html +0 -46
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/views/manifest-import-history.html +0 -17
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/views/manifest-import.html +0 -92
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/views/manifest.html +0 -33
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-start-date.directive.js +0 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-type.directive.js +0 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionAttachAmountFilter.filter.js +0 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.controller.js +0 -73
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.routes.js +0 -110
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/content-access-mode-banner.html +0 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscription-start-date.html +0 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscription-type.html +0 -18
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscriptions-delete-bulk.html +0 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscriptions.html +0 -63
- data/webpack/scenes/ModuleStreams/Details/ModuleStreamDetailInfo.js +0 -52
- data/webpack/scenes/ModuleStreams/Details/Repositories/__tests__/ModuleStreamDetailRepositories.test.js +0 -16
@@ -0,0 +1,17 @@
|
|
1
|
+
import { bindActionCreators } from 'redux';
|
2
|
+
import { connect } from 'react-redux';
|
3
|
+
import { withRouter } from 'react-router-dom';
|
4
|
+
|
5
|
+
import AnsibleCollectionsPage from './AnsibleCollectionsPage';
|
6
|
+
import reducer from './AnsibleCollectionsReducer';
|
7
|
+
import * as AnsibleCollectionsActions from './AnsibleCollectionsActions';
|
8
|
+
|
9
|
+
const mapStateToProps = state => ({
|
10
|
+
ansibleCollections: state.katello.ansibleCollections,
|
11
|
+
});
|
12
|
+
|
13
|
+
const mapDispatchToProps = dispatch => bindActionCreators(AnsibleCollectionsActions, dispatch);
|
14
|
+
|
15
|
+
export const ansibleCollections = reducer;
|
16
|
+
|
17
|
+
export default connect(mapStateToProps, mapDispatchToProps)(withRouter(AnsibleCollectionsPage));
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { translate as __ } from 'foremanReact/common/I18n';
|
3
|
+
import ModuleStreamDetailArtifacts from './ModuleStreamDetailArtifacts';
|
4
|
+
import ModuleStreamDetailProfiles from './Profiles/ModuleStreamDetailProfiles';
|
5
|
+
import ContentDetailInfo from '../../../components/Content/Details/ContentDetailInfo';
|
6
|
+
import ContentDetailRepositories from '../../../components/Content/Details/ContentDetailRepositories';
|
7
|
+
|
8
|
+
export const displayMap = new Map([
|
9
|
+
['name', __('Name')],
|
10
|
+
['summary', __('Summary')],
|
11
|
+
['description', __('Description')],
|
12
|
+
['stream', __('Stream')],
|
13
|
+
['version', __('Version')],
|
14
|
+
['arch', __('Arch')],
|
15
|
+
['context', __('Context')],
|
16
|
+
['uuid', __('UUID')],
|
17
|
+
]);
|
18
|
+
|
19
|
+
export default (detailInfo) => {
|
20
|
+
const { repositories, profiles, artifacts } = detailInfo;
|
21
|
+
|
22
|
+
return [
|
23
|
+
{
|
24
|
+
key: 1,
|
25
|
+
tabHeader: __('Details'),
|
26
|
+
tabContent: (
|
27
|
+
<ContentDetailInfo contentDetails={detailInfo} displayMap={displayMap} />
|
28
|
+
),
|
29
|
+
},
|
30
|
+
{
|
31
|
+
key: 2,
|
32
|
+
tabHeader: __('Repositories'),
|
33
|
+
tabContent: (repositories && repositories.length ?
|
34
|
+
<ContentDetailRepositories repositories={repositories} /> :
|
35
|
+
__('No repositories to show')
|
36
|
+
),
|
37
|
+
},
|
38
|
+
{
|
39
|
+
key: 3,
|
40
|
+
tabHeader: __('Profiles'),
|
41
|
+
tabContent: (profiles && profiles.length ?
|
42
|
+
<ModuleStreamDetailProfiles profiles={profiles} /> :
|
43
|
+
__('No profiles to show')
|
44
|
+
),
|
45
|
+
},
|
46
|
+
{
|
47
|
+
key: 4,
|
48
|
+
tabHeader: __('Artifacts'),
|
49
|
+
tabContent: (artifacts && artifacts.length ?
|
50
|
+
<ModuleStreamDetailArtifacts artifacts={artifacts} /> :
|
51
|
+
__('No artifacts to show')
|
52
|
+
),
|
53
|
+
},
|
54
|
+
];
|
55
|
+
};
|
56
|
+
|
@@ -1,14 +1,10 @@
|
|
1
1
|
import React, { Component } from 'react';
|
2
|
-
import { Nav, NavItem, TabPane, TabContent, TabContainer, Grid, Row, Col } from 'patternfly-react';
|
3
2
|
import BreadcrumbsBar from 'foremanReact/components/BreadcrumbBar';
|
4
3
|
import { translate as __ } from 'foremanReact/common/I18n';
|
5
4
|
import { PropTypes } from 'prop-types';
|
6
|
-
import { LoadingState } from '../../../move_to_pf/LoadingState';
|
7
5
|
import api from '../../../services/api';
|
8
|
-
import
|
9
|
-
import
|
10
|
-
import ModuleStreamDetailArtifacts from './ModuleStreamDetailArtifacts';
|
11
|
-
import ModuleStreamDetailProfiles from './Profiles/ModuleStreamDetailProfiles';
|
6
|
+
import ContentDetails from '../../../components/Content/Details/ContentDetails';
|
7
|
+
import moduleDetailsSchema from './ModuleDetailsSchema';
|
12
8
|
|
13
9
|
class ModuleStreamDetails extends Component {
|
14
10
|
componentDidMount() {
|
@@ -36,7 +32,7 @@ class ModuleStreamDetails extends Component {
|
|
36
32
|
render() {
|
37
33
|
const { moduleStreamDetails } = this.props;
|
38
34
|
const {
|
39
|
-
loading, name, stream,
|
35
|
+
loading, name, stream,
|
40
36
|
} = moduleStreamDetails;
|
41
37
|
|
42
38
|
const resource = {
|
@@ -64,70 +60,10 @@ class ModuleStreamDetails extends Component {
|
|
64
60
|
resource,
|
65
61
|
}}
|
66
62
|
/>}
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
>
|
72
|
-
<TabContainer id="module-stream-tabs-container" defaultActiveKey={1}>
|
73
|
-
<Grid bsClass="container-fluid">
|
74
|
-
<Row>
|
75
|
-
<Col sm={12}>
|
76
|
-
<Nav bsClass="nav nav-tabs">
|
77
|
-
<NavItem eventKey={1}>
|
78
|
-
<div>{__('Details')}</div>
|
79
|
-
</NavItem>
|
80
|
-
<NavItem eventKey={2}>
|
81
|
-
<div>{__('Repositories')}</div>
|
82
|
-
</NavItem>
|
83
|
-
<NavItem eventKey={3}>
|
84
|
-
<div>{__('Profiles')}</div>
|
85
|
-
</NavItem>
|
86
|
-
<NavItem eventKey={4}>
|
87
|
-
<div>{__('Artifacts')}</div>
|
88
|
-
</NavItem>
|
89
|
-
</Nav>
|
90
|
-
</Col>
|
91
|
-
</Row>
|
92
|
-
<TabContent animation={false}>
|
93
|
-
<TabPane eventKey={1}>
|
94
|
-
<Row>
|
95
|
-
<Col sm={12}>
|
96
|
-
<ModuleStreamDetailInfo moduleStreamDetails={moduleStreamDetails} />
|
97
|
-
</Col>
|
98
|
-
</Row>
|
99
|
-
</TabPane>
|
100
|
-
<TabPane eventKey={2}>
|
101
|
-
<Row>
|
102
|
-
<Col sm={12}>
|
103
|
-
{repositories && repositories.length ?
|
104
|
-
<ModuleStreamDetailRepositories repositories={repositories} /> :
|
105
|
-
__('No repositories to show')}
|
106
|
-
</Col>
|
107
|
-
</Row>
|
108
|
-
</TabPane>
|
109
|
-
<TabPane eventKey={3}>
|
110
|
-
<Row>
|
111
|
-
<Col sm={12}>
|
112
|
-
{profiles && profiles.length ?
|
113
|
-
<ModuleStreamDetailProfiles profiles={profiles} /> :
|
114
|
-
__('No profiles to show')}
|
115
|
-
</Col>
|
116
|
-
</Row>
|
117
|
-
</TabPane>
|
118
|
-
<TabPane eventKey={4}>
|
119
|
-
<Row>
|
120
|
-
<Col sm={12}>
|
121
|
-
{artifacts && artifacts.length ?
|
122
|
-
<ModuleStreamDetailArtifacts artifacts={artifacts} /> :
|
123
|
-
__('No artifacts to show')}
|
124
|
-
</Col>
|
125
|
-
</Row>
|
126
|
-
</TabPane>
|
127
|
-
</TabContent>
|
128
|
-
</Grid>
|
129
|
-
</TabContainer>
|
130
|
-
</LoadingState>
|
63
|
+
<ContentDetails
|
64
|
+
contentDetails={moduleStreamDetails}
|
65
|
+
schema={moduleDetailsSchema(moduleStreamDetails)}
|
66
|
+
/>
|
131
67
|
</div>
|
132
68
|
);
|
133
69
|
}
|
@@ -6,20 +6,18 @@ import {
|
|
6
6
|
} from './ModuleStreamDetailsConstants';
|
7
7
|
import { apiError } from '../../../move_to_foreman/common/helpers.js';
|
8
8
|
|
9
|
-
export const loadModuleStreamDetails = moduleStreamId => (dispatch) => {
|
9
|
+
export const loadModuleStreamDetails = moduleStreamId => async (dispatch) => {
|
10
10
|
dispatch({ type: MODULE_STREAM_DETAILS_REQUEST });
|
11
11
|
|
12
|
-
|
13
|
-
.get(`/module_streams/${moduleStreamId}`)
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
response: data,
|
18
|
-
});
|
19
|
-
})
|
20
|
-
.catch((result) => {
|
21
|
-
dispatch(apiError(MODULE_STREAM_DETAILS_FAILURE, result));
|
12
|
+
try {
|
13
|
+
const { data } = await api.get(`/module_streams/${moduleStreamId}`);
|
14
|
+
return dispatch({
|
15
|
+
type: MODULE_STREAM_DETAILS_SUCCESS,
|
16
|
+
response: data,
|
22
17
|
});
|
18
|
+
} catch (error) {
|
19
|
+
return dispatch(apiError(MODULE_STREAM_DETAILS_FAILURE, error));
|
20
|
+
}
|
23
21
|
};
|
24
22
|
|
25
23
|
export default loadModuleStreamDetails;
|
@@ -1,14 +1,16 @@
|
|
1
1
|
import { testComponentSnapshotsWithFixtures } from 'react-redux-test-utils';
|
2
|
-
import
|
2
|
+
import ContentDetailInfo from '../../../../components/Content/Details/ContentDetailInfo';
|
3
3
|
import { details } from './moduleStreamDetails.fixtures';
|
4
|
+
import { displayMap } from '../ModuleDetailsSchema';
|
4
5
|
|
5
6
|
const fixtures = {
|
6
7
|
'renders with module stream info': {
|
7
|
-
|
8
|
+
contentDetails: details,
|
9
|
+
displayMap,
|
8
10
|
},
|
9
11
|
};
|
10
12
|
|
11
13
|
describe('Module stream detail info component', () => {
|
12
14
|
describe('rendering', () =>
|
13
|
-
testComponentSnapshotsWithFixtures(
|
15
|
+
testComponentSnapshotsWithFixtures(ContentDetailInfo, fixtures));
|
14
16
|
});
|
data/webpack/scenes/ModuleStreams/Details/__tests__/__snapshots__/ModuleStreamDetails.test.js.snap
CHANGED
@@ -2,166 +2,91 @@
|
|
2
2
|
|
3
3
|
exports[`Module stream details page rendering renders with loading state 1`] = `
|
4
4
|
<div>
|
5
|
-
<
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
bsClass="col"
|
91
|
-
componentClass="div"
|
92
|
-
sm={12}
|
93
|
-
>
|
94
|
-
<ModuleStreamDetailInfo
|
95
|
-
moduleStreamDetails={
|
96
|
-
Object {
|
97
|
-
"itemCount": 0,
|
98
|
-
"loading": true,
|
99
|
-
"pagination": Object {
|
100
|
-
"page": 0,
|
101
|
-
"perPage": 20,
|
102
|
-
},
|
103
|
-
"results": Array [],
|
104
|
-
}
|
105
|
-
}
|
106
|
-
/>
|
107
|
-
</Col>
|
108
|
-
</Row>
|
109
|
-
</TabPane>
|
110
|
-
<TabPane
|
111
|
-
bsClass="tab-pane"
|
112
|
-
eventKey={2}
|
113
|
-
>
|
114
|
-
<Row
|
115
|
-
bsClass="row"
|
116
|
-
componentClass="div"
|
117
|
-
>
|
118
|
-
<Col
|
119
|
-
bsClass="col"
|
120
|
-
componentClass="div"
|
121
|
-
sm={12}
|
122
|
-
>
|
123
|
-
No repositories to show
|
124
|
-
</Col>
|
125
|
-
</Row>
|
126
|
-
</TabPane>
|
127
|
-
<TabPane
|
128
|
-
bsClass="tab-pane"
|
129
|
-
eventKey={3}
|
130
|
-
>
|
131
|
-
<Row
|
132
|
-
bsClass="row"
|
133
|
-
componentClass="div"
|
134
|
-
>
|
135
|
-
<Col
|
136
|
-
bsClass="col"
|
137
|
-
componentClass="div"
|
138
|
-
sm={12}
|
139
|
-
>
|
140
|
-
No profiles to show
|
141
|
-
</Col>
|
142
|
-
</Row>
|
143
|
-
</TabPane>
|
144
|
-
<TabPane
|
145
|
-
bsClass="tab-pane"
|
146
|
-
eventKey={4}
|
147
|
-
>
|
148
|
-
<Row
|
149
|
-
bsClass="row"
|
150
|
-
componentClass="div"
|
151
|
-
>
|
152
|
-
<Col
|
153
|
-
bsClass="col"
|
154
|
-
componentClass="div"
|
155
|
-
sm={12}
|
156
|
-
>
|
157
|
-
No artifacts to show
|
158
|
-
</Col>
|
159
|
-
</Row>
|
160
|
-
</TabPane>
|
161
|
-
</TabContent>
|
162
|
-
</Grid>
|
163
|
-
</ForwardRef>
|
164
|
-
</LoadingState>
|
5
|
+
<ContentDetails
|
6
|
+
contentDetails={
|
7
|
+
Object {
|
8
|
+
"itemCount": 0,
|
9
|
+
"loading": true,
|
10
|
+
"pagination": Object {
|
11
|
+
"page": 0,
|
12
|
+
"perPage": 20,
|
13
|
+
},
|
14
|
+
"results": Array [],
|
15
|
+
}
|
16
|
+
}
|
17
|
+
schema={
|
18
|
+
Array [
|
19
|
+
Object {
|
20
|
+
"key": 1,
|
21
|
+
"tabContent": <ContentDetailInfo
|
22
|
+
contentDetails={
|
23
|
+
Object {
|
24
|
+
"itemCount": 0,
|
25
|
+
"loading": true,
|
26
|
+
"pagination": Object {
|
27
|
+
"page": 0,
|
28
|
+
"perPage": 20,
|
29
|
+
},
|
30
|
+
"results": Array [],
|
31
|
+
}
|
32
|
+
}
|
33
|
+
displayMap={
|
34
|
+
Array [
|
35
|
+
Array [
|
36
|
+
"name",
|
37
|
+
"Name",
|
38
|
+
],
|
39
|
+
Array [
|
40
|
+
"summary",
|
41
|
+
"Summary",
|
42
|
+
],
|
43
|
+
Array [
|
44
|
+
"description",
|
45
|
+
"Description",
|
46
|
+
],
|
47
|
+
Array [
|
48
|
+
"stream",
|
49
|
+
"Stream",
|
50
|
+
],
|
51
|
+
Array [
|
52
|
+
"version",
|
53
|
+
"Version",
|
54
|
+
],
|
55
|
+
Array [
|
56
|
+
"arch",
|
57
|
+
"Arch",
|
58
|
+
],
|
59
|
+
Array [
|
60
|
+
"context",
|
61
|
+
"Context",
|
62
|
+
],
|
63
|
+
Array [
|
64
|
+
"uuid",
|
65
|
+
"UUID",
|
66
|
+
],
|
67
|
+
]
|
68
|
+
}
|
69
|
+
/>,
|
70
|
+
"tabHeader": "Details",
|
71
|
+
},
|
72
|
+
Object {
|
73
|
+
"key": 2,
|
74
|
+
"tabContent": "No repositories to show",
|
75
|
+
"tabHeader": "Repositories",
|
76
|
+
},
|
77
|
+
Object {
|
78
|
+
"key": 3,
|
79
|
+
"tabContent": "No profiles to show",
|
80
|
+
"tabHeader": "Profiles",
|
81
|
+
},
|
82
|
+
Object {
|
83
|
+
"key": 4,
|
84
|
+
"tabContent": "No artifacts to show",
|
85
|
+
"tabHeader": "Artifacts",
|
86
|
+
},
|
87
|
+
]
|
88
|
+
}
|
89
|
+
/>
|
165
90
|
</div>
|
166
91
|
`;
|
167
92
|
|
@@ -189,364 +114,385 @@ exports[`Module stream details page rendering renders with module stream provide
|
|
189
114
|
}
|
190
115
|
onSwitcherItemClick={[Function]}
|
191
116
|
/>
|
192
|
-
<
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
},
|
332
|
-
Object {
|
333
|
-
"id": 116,
|
334
|
-
"name": "rpm_5",
|
335
|
-
},
|
336
|
-
Object {
|
337
|
-
"id": 117,
|
338
|
-
"name": "rpm_6",
|
339
|
-
},
|
340
|
-
Object {
|
341
|
-
"id": 118,
|
342
|
-
"name": "rpm_7",
|
343
|
-
},
|
344
|
-
Object {
|
345
|
-
"id": 119,
|
346
|
-
"name": "rpm_8",
|
347
|
-
},
|
348
|
-
Object {
|
349
|
-
"id": 120,
|
350
|
-
"name": "rpm_9",
|
351
|
-
},
|
352
|
-
Object {
|
353
|
-
"id": 121,
|
354
|
-
"name": "rpm_10",
|
355
|
-
},
|
356
|
-
],
|
357
|
-
},
|
358
|
-
Object {
|
359
|
-
"id": 38,
|
360
|
-
"name": "minimal",
|
361
|
-
"rpms": Array [
|
362
|
-
Object {
|
363
|
-
"id": 84,
|
364
|
-
"name": "python2-avocado",
|
365
|
-
},
|
366
|
-
],
|
367
|
-
},
|
368
|
-
],
|
369
|
-
"repositories": Array [
|
370
|
-
Object {
|
371
|
-
"id": 1,
|
372
|
-
"name": "rawhide_wtih_modules",
|
373
|
-
"product_id": 1,
|
374
|
-
"product_name": "fedora",
|
375
|
-
},
|
376
|
-
Object {
|
377
|
-
"id": 4,
|
378
|
-
"name": "rawhide_wtih_modules_dup",
|
379
|
-
"product_id": 1,
|
380
|
-
"product_name": "fedora",
|
381
|
-
},
|
382
|
-
],
|
383
|
-
"stream": "latest",
|
384
|
-
"summary": "Framework with tools and libraries for Automated Testing",
|
385
|
-
"uuid": "8ae7f190-0a48-41a2-93e0-7bc3e4734355",
|
386
|
-
"version": "20180816135607",
|
387
|
-
}
|
388
|
-
}
|
389
|
-
/>
|
390
|
-
</Col>
|
391
|
-
</Row>
|
392
|
-
</TabPane>
|
393
|
-
<TabPane
|
394
|
-
bsClass="tab-pane"
|
395
|
-
eventKey={2}
|
396
|
-
>
|
397
|
-
<Row
|
398
|
-
bsClass="row"
|
399
|
-
componentClass="div"
|
400
|
-
>
|
401
|
-
<Col
|
402
|
-
bsClass="col"
|
403
|
-
componentClass="div"
|
404
|
-
sm={12}
|
405
|
-
>
|
406
|
-
<ModuleStreamDetailRepositories
|
407
|
-
repositories={
|
408
|
-
Array [
|
117
|
+
<ContentDetails
|
118
|
+
contentDetails={
|
119
|
+
Object {
|
120
|
+
"arch": "x86_64",
|
121
|
+
"artifacts": Array [
|
122
|
+
Object {
|
123
|
+
"id": 208,
|
124
|
+
"name": "python3-avocado-plugins-varianter-yaml-to-mux-0:63.0-2.module_2037+1b0ad681.noarch",
|
125
|
+
},
|
126
|
+
Object {
|
127
|
+
"id": 207,
|
128
|
+
"name": "python3-avocado-plugins-varianter-pict-0:63.0-2.module_2037+1b0ad681.noarch",
|
129
|
+
},
|
130
|
+
],
|
131
|
+
"context": "a5b0195c",
|
132
|
+
"description": "Avocado is a set of tools and libraries (what people call these days a framework) to perform automated testing.",
|
133
|
+
"id": 22,
|
134
|
+
"name": "avocado",
|
135
|
+
"profiles": Array [
|
136
|
+
Object {
|
137
|
+
"id": 37,
|
138
|
+
"name": "default",
|
139
|
+
"rpms": Array [
|
140
|
+
Object {
|
141
|
+
"id": 108,
|
142
|
+
"name": "perl",
|
143
|
+
},
|
144
|
+
Object {
|
145
|
+
"id": 110,
|
146
|
+
"name": "foo",
|
147
|
+
},
|
148
|
+
Object {
|
149
|
+
"id": 111,
|
150
|
+
"name": "rpm_0",
|
151
|
+
},
|
152
|
+
Object {
|
153
|
+
"id": 112,
|
154
|
+
"name": "rpm_1",
|
155
|
+
},
|
156
|
+
Object {
|
157
|
+
"id": 113,
|
158
|
+
"name": "rpm_2",
|
159
|
+
},
|
160
|
+
Object {
|
161
|
+
"id": 114,
|
162
|
+
"name": "rpm_3",
|
163
|
+
},
|
164
|
+
Object {
|
165
|
+
"id": 115,
|
166
|
+
"name": "rpm_4",
|
167
|
+
},
|
168
|
+
Object {
|
169
|
+
"id": 116,
|
170
|
+
"name": "rpm_5",
|
171
|
+
},
|
172
|
+
Object {
|
173
|
+
"id": 117,
|
174
|
+
"name": "rpm_6",
|
175
|
+
},
|
176
|
+
Object {
|
177
|
+
"id": 118,
|
178
|
+
"name": "rpm_7",
|
179
|
+
},
|
180
|
+
Object {
|
181
|
+
"id": 119,
|
182
|
+
"name": "rpm_8",
|
183
|
+
},
|
184
|
+
Object {
|
185
|
+
"id": 120,
|
186
|
+
"name": "rpm_9",
|
187
|
+
},
|
188
|
+
Object {
|
189
|
+
"id": 121,
|
190
|
+
"name": "rpm_10",
|
191
|
+
},
|
192
|
+
],
|
193
|
+
},
|
194
|
+
Object {
|
195
|
+
"id": 38,
|
196
|
+
"name": "minimal",
|
197
|
+
"rpms": Array [
|
198
|
+
Object {
|
199
|
+
"id": 84,
|
200
|
+
"name": "python2-avocado",
|
201
|
+
},
|
202
|
+
],
|
203
|
+
},
|
204
|
+
],
|
205
|
+
"repositories": Array [
|
206
|
+
Object {
|
207
|
+
"id": 1,
|
208
|
+
"name": "rawhide_wtih_modules",
|
209
|
+
"product_id": 1,
|
210
|
+
"product_name": "fedora",
|
211
|
+
},
|
212
|
+
Object {
|
213
|
+
"id": 4,
|
214
|
+
"name": "rawhide_wtih_modules_dup",
|
215
|
+
"product_id": 1,
|
216
|
+
"product_name": "fedora",
|
217
|
+
},
|
218
|
+
],
|
219
|
+
"stream": "latest",
|
220
|
+
"summary": "Framework with tools and libraries for Automated Testing",
|
221
|
+
"uuid": "8ae7f190-0a48-41a2-93e0-7bc3e4734355",
|
222
|
+
"version": "20180816135607",
|
223
|
+
}
|
224
|
+
}
|
225
|
+
schema={
|
226
|
+
Array [
|
227
|
+
Object {
|
228
|
+
"key": 1,
|
229
|
+
"tabContent": <ContentDetailInfo
|
230
|
+
contentDetails={
|
231
|
+
Object {
|
232
|
+
"arch": "x86_64",
|
233
|
+
"artifacts": Array [
|
234
|
+
Object {
|
235
|
+
"id": 208,
|
236
|
+
"name": "python3-avocado-plugins-varianter-yaml-to-mux-0:63.0-2.module_2037+1b0ad681.noarch",
|
237
|
+
},
|
238
|
+
Object {
|
239
|
+
"id": 207,
|
240
|
+
"name": "python3-avocado-plugins-varianter-pict-0:63.0-2.module_2037+1b0ad681.noarch",
|
241
|
+
},
|
242
|
+
],
|
243
|
+
"context": "a5b0195c",
|
244
|
+
"description": "Avocado is a set of tools and libraries (what people call these days a framework) to perform automated testing.",
|
245
|
+
"id": 22,
|
246
|
+
"name": "avocado",
|
247
|
+
"profiles": Array [
|
248
|
+
Object {
|
249
|
+
"id": 37,
|
250
|
+
"name": "default",
|
251
|
+
"rpms": Array [
|
252
|
+
Object {
|
253
|
+
"id": 108,
|
254
|
+
"name": "perl",
|
255
|
+
},
|
409
256
|
Object {
|
410
|
-
"id":
|
411
|
-
"name": "
|
412
|
-
"product_id": 1,
|
413
|
-
"product_name": "fedora",
|
257
|
+
"id": 110,
|
258
|
+
"name": "foo",
|
414
259
|
},
|
415
260
|
Object {
|
416
|
-
"id":
|
417
|
-
"name": "
|
418
|
-
"product_id": 1,
|
419
|
-
"product_name": "fedora",
|
261
|
+
"id": 111,
|
262
|
+
"name": "rpm_0",
|
420
263
|
},
|
421
|
-
]
|
422
|
-
}
|
423
|
-
/>
|
424
|
-
</Col>
|
425
|
-
</Row>
|
426
|
-
</TabPane>
|
427
|
-
<TabPane
|
428
|
-
bsClass="tab-pane"
|
429
|
-
eventKey={3}
|
430
|
-
>
|
431
|
-
<Row
|
432
|
-
bsClass="row"
|
433
|
-
componentClass="div"
|
434
|
-
>
|
435
|
-
<Col
|
436
|
-
bsClass="col"
|
437
|
-
componentClass="div"
|
438
|
-
sm={12}
|
439
|
-
>
|
440
|
-
<ModuleStreamDetailProfiles
|
441
|
-
profiles={
|
442
|
-
Array [
|
443
264
|
Object {
|
444
|
-
"id":
|
445
|
-
"name": "
|
446
|
-
"rpms": Array [
|
447
|
-
Object {
|
448
|
-
"id": 108,
|
449
|
-
"name": "perl",
|
450
|
-
},
|
451
|
-
Object {
|
452
|
-
"id": 110,
|
453
|
-
"name": "foo",
|
454
|
-
},
|
455
|
-
Object {
|
456
|
-
"id": 111,
|
457
|
-
"name": "rpm_0",
|
458
|
-
},
|
459
|
-
Object {
|
460
|
-
"id": 112,
|
461
|
-
"name": "rpm_1",
|
462
|
-
},
|
463
|
-
Object {
|
464
|
-
"id": 113,
|
465
|
-
"name": "rpm_2",
|
466
|
-
},
|
467
|
-
Object {
|
468
|
-
"id": 114,
|
469
|
-
"name": "rpm_3",
|
470
|
-
},
|
471
|
-
Object {
|
472
|
-
"id": 115,
|
473
|
-
"name": "rpm_4",
|
474
|
-
},
|
475
|
-
Object {
|
476
|
-
"id": 116,
|
477
|
-
"name": "rpm_5",
|
478
|
-
},
|
479
|
-
Object {
|
480
|
-
"id": 117,
|
481
|
-
"name": "rpm_6",
|
482
|
-
},
|
483
|
-
Object {
|
484
|
-
"id": 118,
|
485
|
-
"name": "rpm_7",
|
486
|
-
},
|
487
|
-
Object {
|
488
|
-
"id": 119,
|
489
|
-
"name": "rpm_8",
|
490
|
-
},
|
491
|
-
Object {
|
492
|
-
"id": 120,
|
493
|
-
"name": "rpm_9",
|
494
|
-
},
|
495
|
-
Object {
|
496
|
-
"id": 121,
|
497
|
-
"name": "rpm_10",
|
498
|
-
},
|
499
|
-
],
|
265
|
+
"id": 112,
|
266
|
+
"name": "rpm_1",
|
500
267
|
},
|
501
268
|
Object {
|
502
|
-
"id":
|
503
|
-
"name": "
|
504
|
-
"rpms": Array [
|
505
|
-
Object {
|
506
|
-
"id": 84,
|
507
|
-
"name": "python2-avocado",
|
508
|
-
},
|
509
|
-
],
|
269
|
+
"id": 113,
|
270
|
+
"name": "rpm_2",
|
510
271
|
},
|
511
|
-
]
|
512
|
-
}
|
513
|
-
/>
|
514
|
-
</Col>
|
515
|
-
</Row>
|
516
|
-
</TabPane>
|
517
|
-
<TabPane
|
518
|
-
bsClass="tab-pane"
|
519
|
-
eventKey={4}
|
520
|
-
>
|
521
|
-
<Row
|
522
|
-
bsClass="row"
|
523
|
-
componentClass="div"
|
524
|
-
>
|
525
|
-
<Col
|
526
|
-
bsClass="col"
|
527
|
-
componentClass="div"
|
528
|
-
sm={12}
|
529
|
-
>
|
530
|
-
<ModuleStreamDetailArtifacts
|
531
|
-
artifacts={
|
532
|
-
Array [
|
533
272
|
Object {
|
534
|
-
"id":
|
535
|
-
"name": "
|
273
|
+
"id": 114,
|
274
|
+
"name": "rpm_3",
|
536
275
|
},
|
537
276
|
Object {
|
538
|
-
"id":
|
539
|
-
"name": "
|
277
|
+
"id": 115,
|
278
|
+
"name": "rpm_4",
|
540
279
|
},
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
280
|
+
Object {
|
281
|
+
"id": 116,
|
282
|
+
"name": "rpm_5",
|
283
|
+
},
|
284
|
+
Object {
|
285
|
+
"id": 117,
|
286
|
+
"name": "rpm_6",
|
287
|
+
},
|
288
|
+
Object {
|
289
|
+
"id": 118,
|
290
|
+
"name": "rpm_7",
|
291
|
+
},
|
292
|
+
Object {
|
293
|
+
"id": 119,
|
294
|
+
"name": "rpm_8",
|
295
|
+
},
|
296
|
+
Object {
|
297
|
+
"id": 120,
|
298
|
+
"name": "rpm_9",
|
299
|
+
},
|
300
|
+
Object {
|
301
|
+
"id": 121,
|
302
|
+
"name": "rpm_10",
|
303
|
+
},
|
304
|
+
],
|
305
|
+
},
|
306
|
+
Object {
|
307
|
+
"id": 38,
|
308
|
+
"name": "minimal",
|
309
|
+
"rpms": Array [
|
310
|
+
Object {
|
311
|
+
"id": 84,
|
312
|
+
"name": "python2-avocado",
|
313
|
+
},
|
314
|
+
],
|
315
|
+
},
|
316
|
+
],
|
317
|
+
"repositories": Array [
|
318
|
+
Object {
|
319
|
+
"id": 1,
|
320
|
+
"name": "rawhide_wtih_modules",
|
321
|
+
"product_id": 1,
|
322
|
+
"product_name": "fedora",
|
323
|
+
},
|
324
|
+
Object {
|
325
|
+
"id": 4,
|
326
|
+
"name": "rawhide_wtih_modules_dup",
|
327
|
+
"product_id": 1,
|
328
|
+
"product_name": "fedora",
|
329
|
+
},
|
330
|
+
],
|
331
|
+
"stream": "latest",
|
332
|
+
"summary": "Framework with tools and libraries for Automated Testing",
|
333
|
+
"uuid": "8ae7f190-0a48-41a2-93e0-7bc3e4734355",
|
334
|
+
"version": "20180816135607",
|
335
|
+
}
|
336
|
+
}
|
337
|
+
displayMap={
|
338
|
+
Array [
|
339
|
+
Array [
|
340
|
+
"name",
|
341
|
+
"Name",
|
342
|
+
],
|
343
|
+
Array [
|
344
|
+
"summary",
|
345
|
+
"Summary",
|
346
|
+
],
|
347
|
+
Array [
|
348
|
+
"description",
|
349
|
+
"Description",
|
350
|
+
],
|
351
|
+
Array [
|
352
|
+
"stream",
|
353
|
+
"Stream",
|
354
|
+
],
|
355
|
+
Array [
|
356
|
+
"version",
|
357
|
+
"Version",
|
358
|
+
],
|
359
|
+
Array [
|
360
|
+
"arch",
|
361
|
+
"Arch",
|
362
|
+
],
|
363
|
+
Array [
|
364
|
+
"context",
|
365
|
+
"Context",
|
366
|
+
],
|
367
|
+
Array [
|
368
|
+
"uuid",
|
369
|
+
"UUID",
|
370
|
+
],
|
371
|
+
]
|
372
|
+
}
|
373
|
+
/>,
|
374
|
+
"tabHeader": "Details",
|
375
|
+
},
|
376
|
+
Object {
|
377
|
+
"key": 2,
|
378
|
+
"tabContent": <ContentDetailRepositories
|
379
|
+
repositories={
|
380
|
+
Array [
|
381
|
+
Object {
|
382
|
+
"id": 1,
|
383
|
+
"name": "rawhide_wtih_modules",
|
384
|
+
"product_id": 1,
|
385
|
+
"product_name": "fedora",
|
386
|
+
},
|
387
|
+
Object {
|
388
|
+
"id": 4,
|
389
|
+
"name": "rawhide_wtih_modules_dup",
|
390
|
+
"product_id": 1,
|
391
|
+
"product_name": "fedora",
|
392
|
+
},
|
393
|
+
]
|
394
|
+
}
|
395
|
+
/>,
|
396
|
+
"tabHeader": "Repositories",
|
397
|
+
},
|
398
|
+
Object {
|
399
|
+
"key": 3,
|
400
|
+
"tabContent": <ModuleStreamDetailProfiles
|
401
|
+
profiles={
|
402
|
+
Array [
|
403
|
+
Object {
|
404
|
+
"id": 37,
|
405
|
+
"name": "default",
|
406
|
+
"rpms": Array [
|
407
|
+
Object {
|
408
|
+
"id": 108,
|
409
|
+
"name": "perl",
|
410
|
+
},
|
411
|
+
Object {
|
412
|
+
"id": 110,
|
413
|
+
"name": "foo",
|
414
|
+
},
|
415
|
+
Object {
|
416
|
+
"id": 111,
|
417
|
+
"name": "rpm_0",
|
418
|
+
},
|
419
|
+
Object {
|
420
|
+
"id": 112,
|
421
|
+
"name": "rpm_1",
|
422
|
+
},
|
423
|
+
Object {
|
424
|
+
"id": 113,
|
425
|
+
"name": "rpm_2",
|
426
|
+
},
|
427
|
+
Object {
|
428
|
+
"id": 114,
|
429
|
+
"name": "rpm_3",
|
430
|
+
},
|
431
|
+
Object {
|
432
|
+
"id": 115,
|
433
|
+
"name": "rpm_4",
|
434
|
+
},
|
435
|
+
Object {
|
436
|
+
"id": 116,
|
437
|
+
"name": "rpm_5",
|
438
|
+
},
|
439
|
+
Object {
|
440
|
+
"id": 117,
|
441
|
+
"name": "rpm_6",
|
442
|
+
},
|
443
|
+
Object {
|
444
|
+
"id": 118,
|
445
|
+
"name": "rpm_7",
|
446
|
+
},
|
447
|
+
Object {
|
448
|
+
"id": 119,
|
449
|
+
"name": "rpm_8",
|
450
|
+
},
|
451
|
+
Object {
|
452
|
+
"id": 120,
|
453
|
+
"name": "rpm_9",
|
454
|
+
},
|
455
|
+
Object {
|
456
|
+
"id": 121,
|
457
|
+
"name": "rpm_10",
|
458
|
+
},
|
459
|
+
],
|
460
|
+
},
|
461
|
+
Object {
|
462
|
+
"id": 38,
|
463
|
+
"name": "minimal",
|
464
|
+
"rpms": Array [
|
465
|
+
Object {
|
466
|
+
"id": 84,
|
467
|
+
"name": "python2-avocado",
|
468
|
+
},
|
469
|
+
],
|
470
|
+
},
|
471
|
+
]
|
472
|
+
}
|
473
|
+
/>,
|
474
|
+
"tabHeader": "Profiles",
|
475
|
+
},
|
476
|
+
Object {
|
477
|
+
"key": 4,
|
478
|
+
"tabContent": <ModuleStreamDetailArtifacts
|
479
|
+
artifacts={
|
480
|
+
Array [
|
481
|
+
Object {
|
482
|
+
"id": 208,
|
483
|
+
"name": "python3-avocado-plugins-varianter-yaml-to-mux-0:63.0-2.module_2037+1b0ad681.noarch",
|
484
|
+
},
|
485
|
+
Object {
|
486
|
+
"id": 207,
|
487
|
+
"name": "python3-avocado-plugins-varianter-pict-0:63.0-2.module_2037+1b0ad681.noarch",
|
488
|
+
},
|
489
|
+
]
|
490
|
+
}
|
491
|
+
/>,
|
492
|
+
"tabHeader": "Artifacts",
|
493
|
+
},
|
494
|
+
]
|
495
|
+
}
|
496
|
+
/>
|
551
497
|
</div>
|
552
498
|
`;
|