katello 3.17.0.rc1 → 3.17.0.rc2

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.

Files changed (293) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/katello/api/registry/registry_proxies_controller.rb +5 -3
  3. data/app/controllers/katello/api/rhsm/candlepin_dynflow_proxy_controller.rb +1 -1
  4. data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +2 -2
  5. data/app/controllers/katello/api/v2/api_controller.rb +1 -1
  6. data/app/controllers/katello/api/v2/content_credentials_controller.rb +1 -1
  7. data/app/controllers/katello/api/v2/content_uploads_controller.rb +5 -5
  8. data/app/controllers/katello/api/v2/content_view_repositories_controller.rb +47 -0
  9. data/app/controllers/katello/api/v2/content_view_versions_controller.rb +50 -19
  10. data/app/controllers/katello/api/v2/gpg_keys_controller.rb +1 -1
  11. data/app/controllers/katello/api/v2/host_tracer_controller.rb +0 -5
  12. data/app/controllers/katello/api/v2/products_bulk_actions_controller.rb +15 -0
  13. data/app/controllers/katello/api/v2/repositories_controller.rb +24 -14
  14. data/app/controllers/katello/api/v2/subscriptions_controller.rb +1 -1
  15. data/app/controllers/katello/concerns/api/v2/{associations_permission_check.rb → authorization.rb} +20 -2
  16. data/app/controllers/katello/concerns/hosts_controller_extensions.rb +11 -5
  17. data/app/helpers/katello/content_view_helper.rb +1 -1
  18. data/app/lib/actions/candlepin/product/content_add.rb +1 -2
  19. data/app/lib/actions/katello/capsule_content/refresh_repos.rb +1 -1
  20. data/app/lib/actions/katello/capsule_content/sync.rb +2 -2
  21. data/app/lib/actions/katello/capsule_content/sync_capsule.rb +17 -3
  22. data/app/lib/actions/katello/content_view/capsule_sync.rb +1 -1
  23. data/app/lib/actions/katello/content_view/destroy.rb +2 -2
  24. data/app/lib/actions/katello/content_view/incremental_updates.rb +1 -1
  25. data/app/lib/actions/katello/content_view/promote_to_environment.rb +1 -0
  26. data/app/lib/actions/katello/content_view/publish.rb +12 -7
  27. data/app/lib/actions/katello/content_view_puppet_environment/clone.rb +1 -1
  28. data/app/lib/actions/katello/content_view_puppet_environment/create.rb +2 -2
  29. data/app/lib/actions/katello/content_view_version/incremental_update.rb +4 -4
  30. data/app/lib/actions/katello/organization/manifest_delete.rb +1 -0
  31. data/app/lib/actions/katello/organization/manifest_import.rb +1 -0
  32. data/app/lib/actions/katello/organization/manifest_refresh.rb +1 -0
  33. data/app/lib/actions/katello/product/content_create.rb +3 -3
  34. data/app/lib/actions/katello/product/destroy.rb +25 -4
  35. data/app/lib/actions/katello/repository/clone_contents.rb +3 -3
  36. data/app/lib/actions/katello/repository/clone_to_environment.rb +2 -2
  37. data/app/lib/actions/katello/repository/clone_to_version.rb +1 -1
  38. data/app/lib/actions/katello/repository/create.rb +1 -1
  39. data/app/lib/actions/katello/repository/destroy.rb +10 -4
  40. data/app/lib/actions/katello/repository/export.rb +3 -3
  41. data/app/lib/actions/katello/repository/finish_upload.rb +2 -2
  42. data/app/lib/actions/katello/repository/import_upload.rb +3 -3
  43. data/app/lib/actions/katello/repository/metadata_generate.rb +1 -1
  44. data/app/lib/actions/katello/repository/multi_clone_contents.rb +6 -10
  45. data/app/lib/actions/katello/repository/purge_empty_content.rb +1 -1
  46. data/app/lib/actions/katello/repository/remove_content.rb +1 -1
  47. data/app/lib/actions/katello/repository/sync.rb +35 -25
  48. data/app/lib/actions/katello/repository/update.rb +30 -19
  49. data/app/lib/actions/katello/repository/update_http_proxy_details.rb +1 -1
  50. data/app/lib/actions/katello/repository/update_metadata_sync.rb +1 -1
  51. data/app/lib/actions/katello/repository/upload_files.rb +2 -2
  52. data/app/lib/actions/katello/repository/verify_checksum.rb +28 -0
  53. data/app/lib/actions/pulp/content_view_puppet_environment/copy_contents.rb +1 -1
  54. data/app/lib/actions/pulp/orchestration/orphan_cleanup/remove_orphans.rb +1 -1
  55. data/app/lib/actions/pulp/orchestration/repository/sync.rb +2 -1
  56. data/app/lib/actions/pulp/repository/copy_all_units.rb +1 -1
  57. data/app/lib/actions/pulp/repository/copy_units.rb +1 -1
  58. data/app/lib/actions/pulp/repository/create.rb +1 -1
  59. data/app/lib/actions/pulp/repository/destroy.rb +1 -1
  60. data/app/lib/actions/pulp/repository/remove_units.rb +2 -2
  61. data/app/lib/actions/pulp/repository/sync.rb +3 -2
  62. data/app/lib/actions/pulp3/capsule_content/sync.rb +3 -1
  63. data/app/lib/actions/pulp3/content_guard/refresh_all_distributions.rb +19 -0
  64. data/app/lib/actions/pulp3/content_migration.rb +3 -3
  65. data/app/lib/actions/pulp3/content_view_version/create_exporter.rb +20 -0
  66. data/app/lib/actions/pulp3/content_view_version/destroy_exporter.rb +16 -0
  67. data/app/lib/actions/pulp3/content_view_version/export.rb +19 -0
  68. data/app/lib/actions/pulp3/import_migration.rb +3 -3
  69. data/app/lib/actions/pulp3/orchestration/content_view_version/export.rb +69 -0
  70. data/app/lib/actions/pulp3/orchestration/repository/copy_all_units.rb +1 -2
  71. data/app/lib/actions/pulp3/orchestration/repository/create.rb +1 -1
  72. data/app/lib/actions/pulp3/orchestration/repository/sync.rb +3 -1
  73. data/app/lib/actions/pulp3/orchestration/repository/trigger_update_repo_cert_guard.rb +22 -0
  74. data/app/lib/actions/pulp3/orchestration/repository/upload_content.rb +1 -1
  75. data/app/lib/actions/pulp3/repository/copy_content.rb +0 -1
  76. data/app/lib/actions/pulp3/repository/multi_copy_units.rb +2 -2
  77. data/app/lib/actions/pulp3/repository/presenters/repair_presenter.rb +85 -0
  78. data/app/lib/actions/pulp3/repository/refresh_distribution.rb +11 -5
  79. data/app/lib/actions/pulp3/repository/repair.rb +29 -0
  80. data/app/lib/actions/pulp3/repository/save_artifact.rb +1 -1
  81. data/app/lib/actions/pulp3/repository/save_distribution_references.rb +2 -2
  82. data/app/lib/actions/pulp3/repository/save_version.rb +20 -16
  83. data/app/lib/actions/pulp3/repository/save_versions.rb +1 -1
  84. data/app/lib/actions/pulp3/repository/sync.rb +1 -1
  85. data/app/lib/actions/pulp3/repository/update_cv_repository_cert_guard.rb +6 -2
  86. data/app/lib/actions/pulp3/repository/upload_file.rb +2 -2
  87. data/app/lib/katello/concerns/base_template_scope_extensions.rb +5 -3
  88. data/app/lib/katello/concerns/permission_extensions.rb +14 -0
  89. data/app/lib/katello/foreman.rb +1 -1
  90. data/app/lib/katello/resources/candlepin/product.rb +0 -11
  91. data/app/lib/katello/resources/registry.rb +3 -3
  92. data/app/models/katello/authorization/content_view_version_export_history.rb +11 -0
  93. data/app/models/katello/authorization/product.rb +4 -0
  94. data/app/models/katello/authorization/repository.rb +8 -0
  95. data/app/models/katello/concerns/content_facet_host_extensions.rb +2 -1
  96. data/app/models/katello/concerns/organization_extensions.rb +6 -1
  97. data/app/models/katello/concerns/pulp_database_unit.rb +2 -2
  98. data/app/models/katello/concerns/redhat_extensions.rb +4 -2
  99. data/app/models/katello/concerns/smart_proxy_extensions.rb +33 -16
  100. data/app/models/katello/concerns/subscription_facet_host_extensions.rb +1 -1
  101. data/app/models/katello/content_view.rb +1 -1
  102. data/app/models/katello/content_view_package_filter.rb +1 -1
  103. data/app/models/katello/content_view_puppet_environment.rb +1 -1
  104. data/app/models/katello/content_view_version.rb +3 -1
  105. data/app/models/katello/content_view_version_export_history.rb +22 -0
  106. data/app/models/katello/docker_meta_tag.rb +1 -1
  107. data/app/models/katello/errata_status.rb +21 -12
  108. data/app/models/katello/erratum.rb +1 -1
  109. data/app/models/katello/glue/candlepin/owner.rb +4 -2
  110. data/app/models/katello/glue/pulp/repo.rb +3 -1
  111. data/app/models/katello/host/content_facet.rb +8 -0
  112. data/app/models/katello/kt_environment.rb +1 -1
  113. data/app/models/katello/package_group.rb +1 -1
  114. data/app/models/katello/ping.rb +8 -3
  115. data/app/models/katello/pulp3/content_guard.rb +1 -1
  116. data/app/models/katello/purpose_status.rb +2 -2
  117. data/app/models/katello/repository.rb +23 -15
  118. data/app/models/katello/rhsm_fact_parser.rb +1 -1
  119. data/app/models/katello/root_repository.rb +2 -15
  120. data/app/models/katello/sync_plan.rb +8 -0
  121. data/app/models/setting/content.rb +3 -1
  122. data/app/services/cert/certs.rb +10 -2
  123. data/app/services/katello/candlepin/event_handler.rb +1 -0
  124. data/app/services/katello/host_status_manager.rb +7 -0
  125. data/app/services/katello/pulp/content.rb +1 -1
  126. data/app/services/katello/pulp/repository.rb +7 -7
  127. data/app/services/katello/pulp/repository/deb.rb +2 -2
  128. data/app/services/katello/pulp/repository/docker.rb +5 -5
  129. data/app/services/katello/pulp/repository/file.rb +2 -2
  130. data/app/services/katello/pulp/repository/ostree.rb +2 -2
  131. data/app/services/katello/pulp/repository/puppet.rb +2 -2
  132. data/app/services/katello/pulp/repository/yum.rb +5 -6
  133. data/app/services/katello/pulp/smart_proxy_repository.rb +1 -1
  134. data/app/services/katello/pulp3/ansible_collection.rb +2 -2
  135. data/app/services/katello/pulp3/api/core.rb +16 -0
  136. data/app/services/katello/pulp3/content.rb +3 -3
  137. data/app/services/katello/pulp3/content_view_version/export.rb +71 -0
  138. data/app/services/katello/pulp3/distribution.rb +2 -2
  139. data/app/services/katello/pulp3/docker_blob.rb +2 -2
  140. data/app/services/katello/pulp3/docker_manifest.rb +2 -2
  141. data/app/services/katello/pulp3/docker_manifest_list.rb +2 -2
  142. data/app/services/katello/pulp3/docker_tag.rb +2 -2
  143. data/app/services/katello/pulp3/erratum.rb +2 -2
  144. data/app/services/katello/pulp3/file_unit.rb +2 -2
  145. data/app/services/katello/pulp3/migration.rb +139 -34
  146. data/app/services/katello/pulp3/migration_plan.rb +50 -14
  147. data/app/services/katello/pulp3/migration_switchover.rb +41 -9
  148. data/app/services/katello/pulp3/module_stream.rb +2 -2
  149. data/app/services/katello/pulp3/package_group.rb +2 -2
  150. data/app/services/katello/pulp3/repository.rb +9 -9
  151. data/app/services/katello/pulp3/repository/docker.rb +18 -10
  152. data/app/services/katello/pulp3/repository/yum.rb +25 -13
  153. data/app/services/katello/pulp3/repository_mirror.rb +2 -1
  154. data/app/services/katello/pulp3/rpm.rb +2 -2
  155. data/app/services/katello/pulp3/smart_proxy_mirror_repository.rb +2 -2
  156. data/app/services/katello/pulp3/smart_proxy_repository.rb +1 -1
  157. data/app/services/katello/pulp3/srpm.rb +2 -2
  158. data/app/services/katello/pulp3/task_group.rb +1 -1
  159. data/app/services/katello/pulp3/yum_metadata_file.rb +2 -2
  160. data/app/services/katello/registration_manager.rb +9 -3
  161. data/app/services/katello/repository_type.rb +1 -1
  162. data/app/services/katello/smart_proxy_helper.rb +14 -17
  163. data/app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb +10 -2
  164. data/app/views/katello/api/v2/content_view_repositories/show_all.json.rabl +8 -0
  165. data/app/views/katello/api/v2/content_view_version_export_histories/index.json.rabl +7 -0
  166. data/app/views/katello/api/v2/content_view_version_export_histories/show.json.rabl +13 -0
  167. data/app/views/katello/api/v2/package_groups/show.json.rabl +1 -1
  168. data/app/views/katello/api/v2/packages/show.json.rabl +1 -1
  169. data/app/views/katello/api/v2/repositories/base.json.rabl +2 -1
  170. data/app/views/katello/api/v2/srpms/show.json.rabl +1 -1
  171. data/app/views/katello/api/v2/sync_plans/show.json.rabl +2 -1
  172. data/config/routes/api/rhsm.rb +1 -0
  173. data/config/routes/api/v2.rb +8 -1
  174. data/db/migrate/20200818040551_add_content_view_version_export_history.rb +13 -0
  175. data/db/migrate/20200818192230_update_system_purpose_status.rb +12 -0
  176. data/db/migrate/20200820145217_add_download_concurrency_to_katello_root_repositories.rb +5 -0
  177. data/db/migrate/20200910140340_remove_distribution_uuid.rb +5 -0
  178. data/db/migrate/20200914200906_remove_auto_enabled.rb +5 -0
  179. data/engines/bastion/app/assets/javascripts/bastion/bastion.js +1 -0
  180. data/engines/bastion/app/assets/javascripts/bastion/routing.module.js +1 -1
  181. data/engines/bastion/vendor/assets/javascripts/bastion/angular-ui-router/stateEvents.js +300 -0
  182. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js +1 -1
  183. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-add-subscriptions.controller.js +1 -1
  184. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js +1 -1
  185. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-subscriptions.controller.js +1 -1
  186. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/details/content-credential-products.controller.js +1 -1
  187. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/details/content-credential-repositories.controller.js +1 -1
  188. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-errata-modal.controller.js +1 -1
  189. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-host-collections-modal.controller.js +1 -1
  190. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-module-streams-modal.controller.js +1 -1
  191. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-repository-sets-modal.controller.js +1 -1
  192. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-subscriptions-modal.controller.js +1 -1
  193. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-traces-modal.controller.js +1 -1
  194. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts-helper.service.js +1 -1
  195. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.controller.js +1 -1
  196. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-debs-installed.controller.js +1 -1
  197. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js +1 -1
  198. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-module-streams.controller.js +1 -1
  199. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-applicable.controller.js +1 -1
  200. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-installed.controller.js +1 -1
  201. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-traces.controller.js +1 -1
  202. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-add-host-collections.controller.js +1 -1
  203. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-add-subscriptions.controller.js +1 -1
  204. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details-info.controller.js +4 -2
  205. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-host-collections.controller.js +1 -1
  206. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-subscriptions.controller.js +1 -1
  207. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +2 -2
  208. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js +1 -1
  209. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-composite-available-content-views.controller.js +1 -1
  210. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-composite-content-views-list.controller.js +1 -1
  211. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-docker-repositories.controller.js +1 -1
  212. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-ostree-repositories.controller.js +1 -1
  213. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-docker-repositories-list.controller.js +1 -1
  214. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-ostree-repositories-list.controller.js +1 -1
  215. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-versions.controller.js +1 -1
  216. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/available-errata-filter.controller.js +1 -1
  217. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/available-package-group-filter.controller.js +1 -1
  218. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-module-names.controller.js +1 -1
  219. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-module-versions.controller.js +1 -1
  220. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-modules.controller.js +1 -1
  221. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version-content.controller.js +1 -1
  222. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/debs.controller.js +1 -1
  223. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/details/deb-content-views.controller.js +1 -1
  224. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/details/deb-repositories.controller.js +1 -1
  225. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/environment-content.controller.js +1 -1
  226. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/erratum-repositories.controller.js +1 -1
  227. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js +1 -1
  228. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-repositories.controller.js +1 -1
  229. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/files.controller.js +1 -1
  230. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js +1 -1
  231. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/de.po +57 -12
  232. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/es.po +45 -8
  233. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/fr.po +42 -5
  234. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/it.po +36 -0
  235. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ja.po +36 -0
  236. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ko.po +36 -0
  237. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pt_BR.po +45 -8
  238. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ru.po +36 -0
  239. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_CN.po +36 -0
  240. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_TW.po +36 -0
  241. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/translations.js +4 -4
  242. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/fenced-pages.service.js +11 -2
  243. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organization-selector.controller.js +5 -14
  244. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/ostree-branch-repositories.controller.js +1 -1
  245. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/package-repositories.controller.js +1 -1
  246. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/packages.controller.js +1 -1
  247. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/product-bulk-action.factory.js +1 -0
  248. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/products-bulk-sync-plan-modal.controller.js +1 -1
  249. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/product-repositories.controller.js +1 -1
  250. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-manage-content.controller.js +1 -1
  251. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details.controller.js +6 -0
  252. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-details.html +7 -1
  253. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-info.html +0 -9
  254. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/new/new-repository.controller.js +1 -1
  255. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/new/views/new-repository.html +0 -11
  256. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js +1 -0
  257. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.controller.js +16 -1
  258. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/views/products.html +6 -0
  259. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module-content-views.controller.js +1 -1
  260. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module-repositories.controller.js +1 -1
  261. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-modules.controller.js +1 -1
  262. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-details-info.controller.js +4 -3
  263. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-info.html +1 -1
  264. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js +1 -1
  265. data/lib/katello/engine.rb +2 -0
  266. data/lib/katello/permission_creator.rb +14 -9
  267. data/lib/katello/tasks/clean_published_repo_directories.rake +3 -3
  268. data/lib/katello/tasks/pulp3_content_switchover.rake +24 -6
  269. data/lib/katello/tasks/pulp3_migration.rake +4 -2
  270. data/lib/katello/tasks/pulp3_post_migration_check.rake +2 -2
  271. data/lib/katello/tasks/reimport.rake +1 -1
  272. data/lib/katello/tasks/repository.rake +15 -2
  273. data/lib/katello/tasks/unify_hosts.rake +1 -0
  274. data/lib/katello/tasks/upgrades/3.11/update_puppet_repos.rake +3 -3
  275. data/lib/katello/tasks/upgrades/3.12/remove_pulp2_notifier.rake +2 -2
  276. data/lib/katello/tasks/upgrades/3.8/clear_checksum_type.rake +2 -2
  277. data/lib/katello/version.rb +1 -1
  278. data/locale/action_names.rb +47 -47
  279. data/locale/katello.pot +160 -160
  280. data/webpack/containers/Application/config.js +4 -4
  281. data/webpack/redux/actions/RedHatRepositories/helpers.js +1 -1
  282. data/webpack/scenes/Subscriptions/Manifest/ManageManifestModal.js +22 -32
  283. data/webpack/scenes/Subscriptions/Manifest/__tests__/SimpleContentAccess.test.js +0 -14
  284. data/webpack/scenes/Subscriptions/Manifest/index.js +2 -5
  285. data/webpack/scenes/Subscriptions/SubscriptionReducer.js +15 -6
  286. data/webpack/scenes/Subscriptions/SubscriptionsPage.js +0 -1
  287. data/webpack/scenes/Subscriptions/SubscriptionsSelectors.js +3 -0
  288. data/webpack/scenes/Subscriptions/__tests__/SubscriptionsReducer.test.js +24 -0
  289. data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsReducer.test.js.snap +114 -26
  290. metadata +67 -33
  291. data/app/lib/actions/candlepin/product/content_update_enablement.rb +0 -18
  292. data/app/lib/actions/katello/repository/content_update.rb +0 -41
  293. data/app/lib/actions/katello/repository/update_cv_repo_cert_guard.rb +0 -17
@@ -0,0 +1,7 @@
1
+ object false
2
+
3
+ extends "katello/api/v2/common/metadata"
4
+
5
+ child @collection[:results] => :results do
6
+ extends 'katello/api/v2/content_view_version_export_histories/show'
7
+ end
@@ -0,0 +1,13 @@
1
+ object @resource
2
+
3
+ attributes :destination_server, :path, :id
4
+
5
+ node :content_view_version do |h|
6
+ h.content_view_version.name
7
+ end
8
+
9
+ node :content_view_version_id do |h|
10
+ h.content_view_version.id
11
+ end
12
+
13
+ extends 'katello/api/v2/common/timestamps'
@@ -1,4 +1,4 @@
1
1
  object @resource
2
2
 
3
3
  extends "katello/api/v2/package_groups/base"
4
- extends "katello/api/v2/package_groups/backend", :object => SmartProxy.pulp_master.pulp3_repository_type_support?('yum') ? Katello::Pulp3::PackageGroup.new(@resource.pulp_id) : Katello::Pulp::PackageGroup.new(@resource.pulp_id)
4
+ extends "katello/api/v2/package_groups/backend", :object => SmartProxy.pulp_primary.pulp3_repository_type_support?('yum') ? Katello::Pulp3::PackageGroup.new(@resource.pulp_id) : Katello::Pulp::PackageGroup.new(@resource.pulp_id)
@@ -2,4 +2,4 @@ object @resource
2
2
 
3
3
  extends "katello/api/v2/packages/base"
4
4
  extends "katello/api/v2/packages/backend",
5
- :object => SmartProxy.pulp_master!.content_service("rpm").new(@resource.pulp_id)
5
+ :object => SmartProxy.pulp_primary!.content_service("rpm").new(@resource.pulp_id)
@@ -4,9 +4,10 @@ extends 'katello/api/v2/common/identifier'
4
4
 
5
5
  attributes :pulp_id => :backend_identifier
6
6
  attributes :relative_path, :container_repository_name, :full_path, :library_instance_id
7
+ attributes :version_href, :remote_href, :publication_href
7
8
 
8
9
  glue(@object.root) do
9
- attributes :content_type, :url, :arch, :content_id, :auto_enabled
10
+ attributes :content_type, :url, :arch, :content_id
10
11
  attributes :major, :minor
11
12
 
12
13
  child :product do |_product|
@@ -2,4 +2,4 @@ object @resource
2
2
 
3
3
  extends "katello/api/v2/srpms/base"
4
4
  extends "katello/api/v2/srpms/backend",
5
- :object => SmartProxy.pulp_master!.content_service("srpm").new(@resource.pulp_id)
5
+ :object => SmartProxy.pulp_primary!.content_service("srpm").new(@resource.pulp_id)
@@ -2,7 +2,8 @@ object @resource
2
2
 
3
3
  attributes :id, :organization_id
4
4
  attributes :name, :description
5
- attributes :interval, :next_sync, :sync_date
5
+ attributes :interval, :next_sync
6
+ attributes :sync_date_sans_tz => :sync_date
6
7
  attributes :created_at, :updated_at
7
8
  attributes :enabled, :foreman_tasks_recurring_logic_id
8
9
  attributes :cron_expression
@@ -21,6 +21,7 @@ Katello::Engine.routes.draw do
21
21
  match '/owners/:organization_id/environments' => 'candlepin_proxies#rhsm_index', :via => :get
22
22
  match '/owners/:organization_id/pools' => 'candlepin_proxies#get', :via => :get, :as => :proxy_owner_pools_path
23
23
  match '/owners/:organization_id/servicelevels' => 'candlepin_proxies#get', :via => :get, :as => :proxy_owner_servicelevels_path
24
+ match '/owners/:organization_id/system_purpose' => 'candlepin_proxies#get', :via => :get, :as => :proxy_owner_system_purpose_path
24
25
  match '/environments/:environment_id/consumers' => 'candlepin_proxies#consumer_create', :via => :post
25
26
  match '/consumers/:id' => 'candlepin_proxies#consumer_show', :via => :get
26
27
  match '/consumers/:id' => 'candlepin_proxies#regenerate_identity_certificates', :via => :post
@@ -96,7 +96,11 @@ Katello::Engine.routes.draw do
96
96
  end
97
97
  end
98
98
  api_resources :puppet_modules, :only => [:index]
99
- api_resources :repositories, :only => [:index]
99
+ api_resources :repositories, :only => [:index] do
100
+ collection do
101
+ match '/show_all' => "content_view_repositories#show_all", :via => :get
102
+ end
103
+ end
100
104
  api_resources :content_view_versions, :only => [:index]
101
105
  end
102
106
 
@@ -117,6 +121,7 @@ Katello::Engine.routes.draw do
117
121
  get :available_errata, :controller => :errata
118
122
  end
119
123
  collection do
124
+ get :export_histories
120
125
  get :auto_complete_search
121
126
  post :incremental_update
122
127
  end
@@ -394,6 +399,7 @@ Katello::Engine.routes.draw do
394
399
  put :remove_docker_manifests, :action => :remove_content
395
400
  put :remove_content
396
401
  post :sync
402
+ post :verify_checksum
397
403
  post :export
398
404
  post :upload_content
399
405
  put :import_uploads
@@ -423,6 +429,7 @@ Katello::Engine.routes.draw do
423
429
  collection do
424
430
  match '/bulk/destroy' => 'products_bulk_actions#destroy_products', :via => :put
425
431
  match '/bulk/sync' => 'products_bulk_actions#sync_products', :via => :put
432
+ match '/bulk/verify_checksum' => 'products_bulk_actions#verify_checksum_products', :via => :put
426
433
  match '/bulk/sync_plan' => 'products_bulk_actions#update_sync_plans', :via => :put
427
434
  match '/bulk/http_proxy' => 'products_bulk_actions#update_http_proxy', :via => :put
428
435
  end
@@ -0,0 +1,13 @@
1
+ class AddContentViewVersionExportHistory < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :katello_content_view_version_export_histories do |t|
4
+ t.timestamps
5
+ t.string :destination_server
6
+ t.string :path
7
+ t.references :content_view_version, index: { name: :katello_cvv_export_history_cvv_id }
8
+ end
9
+
10
+ add_index :katello_content_view_version_export_histories, [:destination_server, :content_view_version_id, :path],
11
+ unique: true, name: :katello_cvv_export_history_sat_cvv_id_path_destination
12
+ end
13
+ end
@@ -0,0 +1,12 @@
1
+ class UpdateSystemPurposeStatus < ActiveRecord::Migration[6.0]
2
+ def change
3
+ purpose_types = Katello::HostStatusManager::PURPOSE_STATUS.map(&:to_s)
4
+
5
+ # load both sets of host statuses and *then* update them to make sure we update the correct statuses
6
+ unknown_statuses = ::HostStatus::Status.where(type: purpose_types, status: 2).pluck(:id)
7
+ matched_statuses = ::HostStatus::Status.where(type: purpose_types, status: 0).pluck(:id)
8
+
9
+ ::HostStatus::Status.where(id: unknown_statuses).update_all(status: Katello::PurposeStatus::UNKNOWN) # 2 => 0
10
+ ::HostStatus::Status.where(id: matched_statuses).update_all(status: Katello::PurposeStatus::MATCHED) # 0 => 2
11
+ end
12
+ end
@@ -0,0 +1,5 @@
1
+ class AddDownloadConcurrencyToKatelloRootRepositories < ActiveRecord::Migration[6.0]
2
+ def change
3
+ add_column :katello_root_repositories, :download_concurrency, :integer
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class RemoveDistributionUuid < ActiveRecord::Migration[6.0]
2
+ def change
3
+ remove_column :katello_repositories, :distribution_uuid, :string
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class RemoveAutoEnabled < ActiveRecord::Migration[6.0]
2
+ def change
3
+ remove_column :katello_root_repositories, :auto_enabled
4
+ end
5
+ end
@@ -4,6 +4,7 @@
4
4
  //= require "bastion/angular-sanitize/angular-sanitize"
5
5
  //= require "bastion/angular-patternfly/angular-patternfly.js"
6
6
  //= require "bastion/angular-ui-router/angular-ui-router"
7
+ //= require "bastion/angular-ui-router/stateEvents"
7
8
  //= require "bastion/angular-uuid4/angular-uuid4.js"
8
9
  //= require "bastion/ngUpload/ng-upload"
9
10
  //= require "bastion/angular-gettext/angular-gettext"
@@ -1,4 +1,4 @@
1
- angular.module('Bastion.routing', ['ui.router']);
1
+ angular.module('Bastion.routing', ['ui.router', 'ui.router.state.events']);
2
2
 
3
3
  (function () {
4
4
  'use strict';
@@ -0,0 +1,300 @@
1
+ /**
2
+ * State-based routing for AngularJS 1.x
3
+ * @version v1.0.25
4
+ * @link https://ui-router.github.io
5
+ * @license MIT License, http://www.opensource.org/licenses/MIT
6
+ */
7
+ (function (global, factory) {
8
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('angular')) :
9
+ typeof define === 'function' && define.amd ? define(['exports', 'angular'], factory) :
10
+ (global = global || self, factory(global['@uirouter/angularjs-state-events'] = {}, global.angular));
11
+ }(this, (function (exports, ng_from_import) { 'use strict';
12
+
13
+ /** @publicapi @module ng1 */ /** */
14
+ /** @hidden */ var ng_from_global = angular;
15
+ /** @hidden */ var ng = ng_from_import && ng_from_import.module ? ng_from_import : ng_from_global;
16
+
17
+ /**
18
+ * # Legacy state events
19
+ *
20
+ * Polyfill implementation of the UI-Router 0.2.x state events.
21
+ *
22
+ * The 0.2.x state events are deprecated. We recommend moving to Transition Hooks instead, as they
23
+ * provide much more flexibility, support async, and provide the context (the Transition, etc) necessary
24
+ * to implement meaningful application behaviors.
25
+ *
26
+ * To enable these state events, include the `stateEvents.js` file in your project, e.g.,
27
+ * ```
28
+ * <script src="stateEvents.js"></script>
29
+ * ```
30
+ * and also make sure you depend on the `ui.router.state.events` angular module, e.g.,
31
+ * ```
32
+ * angular.module("myApplication", ['ui.router', 'ui.router.state.events']
33
+ * ```
34
+ *
35
+ * @publicapi @module ng1_state_events
36
+ */ /** */
37
+ /**
38
+ * An event broadcast on `$rootScope` when the state transition **begins**.
39
+ *
40
+ * ### Deprecation warning: use [[TransitionService.onStart]] instead
41
+ *
42
+ * You can use `event.preventDefault()`
43
+ * to prevent the transition from happening and then the transition promise will be
44
+ * rejected with a `'transition prevented'` value.
45
+ *
46
+ * Additional arguments to the event handler are provided:
47
+ * - `toState`: the Transition Target state
48
+ * - `toParams`: the Transition Target Params
49
+ * - `fromState`: the state the transition is coming from
50
+ * - `fromParams`: the parameters from the state the transition is coming from
51
+ * - `options`: any Transition Options
52
+ * - `$transition$`: the [[Transition]]
53
+ *
54
+ * #### Example:
55
+ * ```js
56
+ * $rootScope.$on('$stateChangeStart', function(event, transition) {
57
+ * event.preventDefault();
58
+ * // transitionTo() promise will be rejected with
59
+ * // a 'transition prevented' error
60
+ * })
61
+ * ```
62
+ *
63
+ * @event $stateChangeStart
64
+ * @deprecated
65
+ */
66
+ var $stateChangeStart;
67
+ /**
68
+ * An event broadcast on `$rootScope` if a transition is **cancelled**.
69
+ *
70
+ * ### Deprecation warning: use [[TransitionService.onStart]] instead
71
+ *
72
+ * Additional arguments to the event handler are provided:
73
+ * - `toState`: the Transition Target state
74
+ * - `toParams`: the Transition Target Params
75
+ * - `fromState`: the state the transition is coming from
76
+ * - `fromParams`: the parameters from the state the transition is coming from
77
+ * - `options`: any Transition Options
78
+ * - `$transition$`: the [[Transition]] that was cancelled
79
+ *
80
+ * @event $stateChangeCancel
81
+ * @deprecated
82
+ */
83
+ var $stateChangeCancel;
84
+ /**
85
+ * An event broadcast on `$rootScope` once the state transition is **complete**.
86
+ *
87
+ * ### Deprecation warning: use [[TransitionService.onStart]] and [[Transition.promise]], or [[Transition.onSuccess]]
88
+ *
89
+ * Additional arguments to the event handler are provided:
90
+ * - `toState`: the Transition Target state
91
+ * - `toParams`: the Transition Target Params
92
+ * - `fromState`: the state the transition is coming from
93
+ * - `fromParams`: the parameters from the state the transition is coming from
94
+ * - `options`: any Transition Options
95
+ * - `$transition$`: the [[Transition]] that just succeeded
96
+ *
97
+ * @event $stateChangeSuccess
98
+ * @deprecated
99
+ */
100
+ var $stateChangeSuccess;
101
+ /**
102
+ * An event broadcast on `$rootScope` when an **error occurs** during transition.
103
+ *
104
+ * ### Deprecation warning: use [[TransitionService.onStart]] and [[Transition.promise]], or [[Transition.onError]]
105
+ *
106
+ * It's important to note that if you
107
+ * have any errors in your resolve functions (javascript errors, non-existent services, etc)
108
+ * they will not throw traditionally. You must listen for this $stateChangeError event to
109
+ * catch **ALL** errors.
110
+ *
111
+ * Additional arguments to the event handler are provided:
112
+ * - `toState`: the Transition Target state
113
+ * - `toParams`: the Transition Target Params
114
+ * - `fromState`: the state the transition is coming from
115
+ * - `fromParams`: the parameters from the state the transition is coming from
116
+ * - `error`: The reason the transition errored.
117
+ * - `options`: any Transition Options
118
+ * - `$transition$`: the [[Transition]] that errored
119
+ *
120
+ * @event $stateChangeError
121
+ * @deprecated
122
+ */
123
+ var $stateChangeError;
124
+ /**
125
+ * An event broadcast on `$rootScope` when a requested state **cannot be found** using the provided state name.
126
+ *
127
+ * ### Deprecation warning: use [[StateService.onInvalid]] instead
128
+ *
129
+ * The event is broadcast allowing any handlers a single chance to deal with the error (usually by
130
+ * lazy-loading the unfound state). A `TargetState` object is passed to the listener handler,
131
+ * you can see its properties in the example. You can use `event.preventDefault()` to abort the
132
+ * transition and the promise returned from `transitionTo()` will be rejected with a
133
+ * `'transition aborted'` error.
134
+ *
135
+ * Additional arguments to the event handler are provided:
136
+ * - `unfoundState` Unfound State information. Contains: `to, toParams, options` properties.
137
+ * - `fromState`: the state the transition is coming from
138
+ * - `fromParams`: the parameters from the state the transition is coming from
139
+ * - `options`: any Transition Options
140
+ *
141
+ * #### Example:
142
+ * ```js
143
+ * // somewhere, assume lazy.state has not been defined
144
+ * $state.go("lazy.state", { a: 1, b: 2 }, { inherit: false });
145
+ *
146
+ * // somewhere else
147
+ * $scope.$on('$stateNotFound', function(event, transition) {
148
+ * function(event, unfoundState, fromState, fromParams){
149
+ * console.log(unfoundState.to); // "lazy.state"
150
+ * console.log(unfoundState.toParams); // {a:1, b:2}
151
+ * console.log(unfoundState.options); // {inherit:false} + default options
152
+ * });
153
+ * ```
154
+ *
155
+ * @event $stateNotFound
156
+ * @deprecated
157
+ */
158
+ var $stateNotFound;
159
+ (function () {
160
+ var isFunction = ng.isFunction, isString = ng.isString;
161
+ function applyPairs(memo, keyValTuple) {
162
+ var key, value;
163
+ if (Array.isArray(keyValTuple))
164
+ key = keyValTuple[0], value = keyValTuple[1];
165
+ if (!isString(key))
166
+ throw new Error('invalid parameters to applyPairs');
167
+ memo[key] = value;
168
+ return memo;
169
+ }
170
+ function stateChangeStartHandler($transition$) {
171
+ if (!$transition$.options().notify || !$transition$.valid() || $transition$.ignored())
172
+ return;
173
+ var $injector = $transition$.injector();
174
+ var $stateEvents = $injector.get('$stateEvents');
175
+ var $rootScope = $injector.get('$rootScope');
176
+ var $state = $injector.get('$state');
177
+ var $urlRouter = $injector.get('$urlRouter');
178
+ var enabledEvents = $stateEvents.provider.enabled();
179
+ var toParams = $transition$.params('to');
180
+ var fromParams = $transition$.params('from');
181
+ if (enabledEvents.$stateChangeSuccess) {
182
+ var startEvent = $rootScope.$broadcast('$stateChangeStart', $transition$.to(), toParams, $transition$.from(), fromParams, $transition$.options(), $transition$);
183
+ if (startEvent.defaultPrevented) {
184
+ if (enabledEvents.$stateChangeCancel) {
185
+ $rootScope.$broadcast('$stateChangeCancel', $transition$.to(), toParams, $transition$.from(), fromParams, $transition$.options(), $transition$);
186
+ }
187
+ // Don't update and resync url if there's been a new transition started. see issue #2238, #600
188
+ if ($state.transition == null)
189
+ $urlRouter.update();
190
+ return false;
191
+ }
192
+ // right after global state is updated
193
+ var successOpts = { priority: 9999 };
194
+ $transition$.onSuccess({}, function () {
195
+ $rootScope.$broadcast('$stateChangeSuccess', $transition$.to(), toParams, $transition$.from(), fromParams, $transition$.options(), $transition$);
196
+ }, successOpts);
197
+ }
198
+ if (enabledEvents.$stateChangeError) {
199
+ $transition$.promise['catch'](function (error) {
200
+ if (error && (error.type === 2 /* RejectType.SUPERSEDED */ || error.type === 3) /* RejectType.ABORTED */)
201
+ return;
202
+ var evt = $rootScope.$broadcast('$stateChangeError', $transition$.to(), toParams, $transition$.from(), fromParams, error, $transition$.options(), $transition$);
203
+ if (!evt.defaultPrevented) {
204
+ $urlRouter.update();
205
+ }
206
+ });
207
+ }
208
+ }
209
+ stateNotFoundHandler.$inject = ['$to$', '$from$', '$state', '$rootScope', '$urlRouter'];
210
+ function stateNotFoundHandler($to$, $from$, injector) {
211
+ var $state = injector.get('$state');
212
+ var $rootScope = injector.get('$rootScope');
213
+ var $urlRouter = injector.get('$urlRouter');
214
+ var redirect = { to: $to$.identifier(), toParams: $to$.params(), options: $to$.options() };
215
+ var e = $rootScope.$broadcast('$stateNotFound', redirect, $from$.state(), $from$.params());
216
+ if (e.defaultPrevented || e.retry)
217
+ $urlRouter.update();
218
+ function redirectFn() {
219
+ return $state.target(redirect.to, redirect.toParams, redirect.options);
220
+ }
221
+ if (e.defaultPrevented) {
222
+ return false;
223
+ }
224
+ else if (e.retry || !!$state.get(redirect.to)) {
225
+ return e.retry && isFunction(e.retry.then) ? e.retry.then(redirectFn) : redirectFn();
226
+ }
227
+ }
228
+ $StateEventsProvider.$inject = ['$stateProvider'];
229
+ function $StateEventsProvider($stateProvider) {
230
+ $StateEventsProvider.prototype.instance = this;
231
+ var runtime = false;
232
+ var allEvents = ['$stateChangeStart', '$stateNotFound', '$stateChangeSuccess', '$stateChangeError'];
233
+ var enabledStateEvents = allEvents.map(function (e) { return [e, true]; }).reduce(applyPairs, {});
234
+ function assertNotRuntime() {
235
+ if (runtime)
236
+ throw new Error('Cannot enable events at runtime (use $stateEventsProvider');
237
+ }
238
+ /**
239
+ * Enables the deprecated UI-Router 0.2.x State Events
240
+ * [ '$stateChangeStart', '$stateNotFound', '$stateChangeSuccess', '$stateChangeError' ]
241
+ */
242
+ this.enable = function () {
243
+ var events = [];
244
+ for (var _i = 0; _i < arguments.length; _i++) {
245
+ events[_i] = arguments[_i];
246
+ }
247
+ assertNotRuntime();
248
+ if (!events || !events.length)
249
+ events = allEvents;
250
+ events.forEach(function (event) { return (enabledStateEvents[event] = true); });
251
+ };
252
+ /**
253
+ * Disables the deprecated UI-Router 0.2.x State Events
254
+ * [ '$stateChangeStart', '$stateNotFound', '$stateChangeSuccess', '$stateChangeError' ]
255
+ */
256
+ this.disable = function () {
257
+ var events = [];
258
+ for (var _i = 0; _i < arguments.length; _i++) {
259
+ events[_i] = arguments[_i];
260
+ }
261
+ assertNotRuntime();
262
+ if (!events || !events.length)
263
+ events = allEvents;
264
+ events.forEach(function (event) { return delete enabledStateEvents[event]; });
265
+ };
266
+ this.enabled = function () { return enabledStateEvents; };
267
+ this.$get = $get;
268
+ $get.$inject = ['$transitions'];
269
+ function $get($transitions) {
270
+ runtime = true;
271
+ if (enabledStateEvents['$stateNotFound'])
272
+ $stateProvider.onInvalid(stateNotFoundHandler);
273
+ if (enabledStateEvents.$stateChangeStart)
274
+ $transitions.onBefore({}, stateChangeStartHandler, { priority: 1000 });
275
+ return {
276
+ provider: $StateEventsProvider.prototype.instance,
277
+ };
278
+ }
279
+ }
280
+ ng
281
+ .module('ui.router.state.events', ['ui.router.state'])
282
+ .provider('$stateEvents', $StateEventsProvider)
283
+ .run([
284
+ '$stateEvents',
285
+ function ($stateEvents) {
286
+ /* Invokes $get() */
287
+ },
288
+ ]);
289
+ })();
290
+
291
+ exports.$stateChangeCancel = $stateChangeCancel;
292
+ exports.$stateChangeError = $stateChangeError;
293
+ exports.$stateChangeStart = $stateChangeStart;
294
+ exports.$stateChangeSuccess = $stateChangeSuccess;
295
+ exports.$stateNotFound = $stateNotFound;
296
+
297
+ Object.defineProperty(exports, '__esModule', { value: true });
298
+
299
+ })));
300
+ //# sourceMappingURL=stateEvents.js.map