katello 3.18.0.rc2.1 → 3.18.2.1

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 (147) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/katello/katello.scss +0 -72
  3. data/app/controllers/katello/api/v2/api_controller.rb +1 -2
  4. data/app/controllers/katello/api/v2/capsule_content_controller.rb +2 -2
  5. data/app/controllers/katello/api/v2/content_export_incrementals_controller.rb +98 -0
  6. data/app/controllers/katello/api/v2/content_exports_controller.rb +84 -0
  7. data/app/controllers/katello/api/v2/content_imports_controller.rb +59 -0
  8. data/app/controllers/katello/api/v2/content_view_filters_controller.rb +1 -1
  9. data/app/controllers/katello/api/v2/content_view_versions_controller.rb +56 -94
  10. data/app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb +2 -1
  11. data/app/controllers/katello/api/v2/repositories_controller.rb +2 -0
  12. data/app/controllers/katello/concerns/api/v2/authorization.rb +14 -1
  13. data/app/lib/actions/katello/applicability/hosts/bulk_generate.rb +6 -2
  14. data/app/lib/actions/katello/capsule_content/sync.rb +1 -1
  15. data/app/lib/actions/katello/capsule_content/sync_capsule.rb +7 -2
  16. data/app/lib/actions/katello/content_view/promote_to_environment.rb +1 -1
  17. data/app/lib/actions/katello/content_view/publish.rb +1 -1
  18. data/app/lib/actions/katello/content_view_version/import.rb +2 -1
  19. data/app/lib/actions/katello/content_view_version/import_library.rb +17 -0
  20. data/app/lib/actions/katello/content_view_version/incremental_update.rb +19 -3
  21. data/app/lib/actions/katello/host/update_system_purpose.rb +1 -1
  22. data/app/lib/actions/katello/repository/sync.rb +5 -1
  23. data/app/lib/actions/middleware/record_smart_proxy_sync_history.rb +24 -4
  24. data/app/lib/actions/pulp3/content_migration.rb +10 -0
  25. data/app/lib/actions/pulp3/content_migration_presenter.rb +59 -0
  26. data/app/lib/actions/pulp3/content_migration_reset.rb +22 -0
  27. data/app/lib/actions/pulp3/content_view/delete_repository_references.rb +1 -1
  28. data/app/lib/actions/pulp3/content_view_version/export.rb +3 -2
  29. data/app/lib/actions/pulp3/import_migration.rb +6 -1
  30. data/app/lib/actions/pulp3/orchestration/content_view_version/copy_version_units_to_library.rb +2 -1
  31. data/app/lib/actions/pulp3/orchestration/content_view_version/export.rb +17 -13
  32. data/app/lib/actions/pulp3/orchestration/content_view_version/export_library.rb +60 -0
  33. data/app/lib/actions/pulp3/orchestration/content_view_version/import.rb +0 -4
  34. data/app/lib/actions/pulp3/orchestration/repository/import_upload.rb +16 -3
  35. data/app/lib/actions/pulp3/repository/copy_content.rb +1 -1
  36. data/app/lib/actions/pulp3/repository/delete.rb +1 -1
  37. data/app/lib/actions/pulp3/repository/save_version.rb +1 -1
  38. data/app/lib/actions/pulp3/repository/upload_tag.rb +18 -0
  39. data/app/lib/katello/util/pulpcore_content_filters.rb +1 -1
  40. data/app/models/katello/authorization/content_view_version.rb +25 -2
  41. data/app/models/katello/authorization/content_view_version_export_history.rb +1 -1
  42. data/app/models/katello/authorization/organization.rb +8 -0
  43. data/app/models/katello/concerns/operatingsystem_extensions.rb +2 -0
  44. data/app/models/katello/concerns/pulp_database_unit.rb +19 -0
  45. data/app/models/katello/concerns/redhat_extensions.rb +2 -2
  46. data/app/models/katello/concerns/smart_proxy_extensions.rb +7 -5
  47. data/app/models/katello/content_migration_progress.rb +4 -0
  48. data/app/models/katello/content_view.rb +5 -0
  49. data/app/models/katello/content_view_history.rb +2 -1
  50. data/app/models/katello/content_view_package_filter.rb +1 -1
  51. data/app/models/katello/content_view_version_export_history.rb +6 -1
  52. data/app/models/katello/file_unit.rb +4 -0
  53. data/app/models/katello/host/content_facet.rb +9 -31
  54. data/app/models/katello/host/subscription_facet.rb +4 -0
  55. data/app/models/katello/ping.rb +35 -15
  56. data/app/models/katello/repository.rb +7 -0
  57. data/app/models/katello/subscription_status.rb +3 -2
  58. data/app/services/katello/applicability/applicable_content_helper.rb +44 -15
  59. data/app/services/katello/pulp3/api/docker.rb +4 -0
  60. data/app/services/katello/pulp3/content_view_version/export.rb +63 -5
  61. data/app/services/katello/pulp3/content_view_version/import.rb +40 -0
  62. data/app/services/katello/pulp3/content_view_version/import_export_common.rb +0 -16
  63. data/app/services/katello/pulp3/content_view_version/import_validator.rb +26 -49
  64. data/app/services/katello/pulp3/docker_manifest.rb +1 -0
  65. data/app/services/katello/pulp3/docker_tag.rb +1 -0
  66. data/app/services/katello/pulp3/erratum.rb +2 -1
  67. data/app/services/katello/pulp3/migration.rb +95 -12
  68. data/app/services/katello/pulp3/migration_plan.rb +2 -2
  69. data/app/services/katello/pulp3/migration_switchover.rb +23 -5
  70. data/app/services/katello/pulp3/repository.rb +10 -5
  71. data/app/services/katello/pulp3/repository/docker.rb +5 -0
  72. data/app/services/katello/pulp3/repository/yum.rb +23 -8
  73. data/app/services/katello/pulp3/rpm.rb +5 -1
  74. data/app/services/katello/pulp3/task.rb +4 -0
  75. data/app/services/katello/pulp3/task_group.rb +4 -0
  76. data/app/views/katello/api/v2/content_views/show.json.rabl +6 -0
  77. data/app/views/katello/layouts/react.html.erb +3 -2
  78. data/app/views/katello/sync_management/_products.html.erb +1 -1
  79. data/app/views/overrides/activation_keys/_host_tab_pane.html.erb +1 -5
  80. data/config/routes/api/v2.rb +23 -3
  81. data/db/migrate/20150930183738_migrate_content_hosts.rb +1 -1
  82. data/db/migrate/20200514092553_move_katello_fields_from_hostgroups.katello.rb +5 -2
  83. data/db/migrate/20201119211133_pulp3_migration_progress.rb +9 -0
  84. data/db/migrate/20210201165835_add_migration_missing_content.rb +12 -0
  85. data/engines/bastion/app/assets/javascripts/bastion/auth/authorization.service.js +1 -1
  86. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/common/views/katello-agent-notice.html +1 -1
  87. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-system-purpose-modal.html +35 -40
  88. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/register-client.html +1 -1
  89. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-activation-keys.controller.js +8 -3
  90. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-content-hosts.controller.js +9 -3
  91. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-details.html +1 -1
  92. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-publish.html +4 -0
  93. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/bastion_katello.pot +78 -7
  94. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/de.po +17 -20
  95. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/es.po +17 -24
  96. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/fr.po +1292 -1170
  97. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/it.po +17 -20
  98. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ja.po +858 -807
  99. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ko.po +18 -19
  100. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pt_BR.po +17 -24
  101. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ru.po +17 -18
  102. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_CN.po +986 -971
  103. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_TW.po +19 -20
  104. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/translations.js +9 -9
  105. data/lib/katello/permission_creator.rb +23 -3
  106. data/lib/katello/tasks/delete_orphaned_content.rake +1 -3
  107. data/lib/katello/tasks/pulp3_content_switchover.rake +3 -1
  108. data/lib/katello/tasks/pulp3_migration.rake +29 -6
  109. data/lib/katello/tasks/pulp3_migration_abort.rake +7 -2
  110. data/lib/katello/tasks/pulp3_migration_approve_corrupted.rake +16 -0
  111. data/lib/katello/tasks/pulp3_migration_reset.rake +26 -0
  112. data/lib/katello/tasks/pulp3_migration_stats.rake +61 -8
  113. data/lib/katello/tasks/pulp3_post_migration_check.rake +1 -3
  114. data/lib/katello/tasks/receptor/extract_orgs.rake +1 -1
  115. data/lib/katello/tasks/reports.rake +4 -1
  116. data/lib/katello/tasks/repository.rake +3 -5
  117. data/lib/katello/version.rb +1 -1
  118. data/locale/action_names.rb +51 -51
  119. data/locale/bn/katello.po +136 -51
  120. data/locale/cs/katello.po +136 -49
  121. data/locale/de/katello.po +136 -48
  122. data/locale/en/katello.po +136 -48
  123. data/locale/es/katello.po +136 -48
  124. data/locale/fr/katello.po +136 -48
  125. data/locale/gu/katello.po +136 -51
  126. data/locale/hi/katello.po +136 -51
  127. data/locale/it/katello.po +136 -48
  128. data/locale/ja/katello.po +136 -48
  129. data/locale/katello.pot +941 -767
  130. data/locale/kn/katello.po +136 -51
  131. data/locale/ko/katello.po +136 -48
  132. data/locale/mr/katello.po +136 -51
  133. data/locale/or/katello.po +136 -51
  134. data/locale/pa/katello.po +136 -51
  135. data/locale/pt/katello.po +136 -51
  136. data/locale/pt_BR/katello.po +136 -48
  137. data/locale/ru/katello.po +136 -48
  138. data/locale/ta/katello.po +136 -51
  139. data/locale/te/katello.po +136 -51
  140. data/locale/zh_CN/katello.po +136 -48
  141. data/locale/zh_TW/katello.po +136 -48
  142. data/webpack/components/TypeAhead/TypeAhead.js +2 -1
  143. data/webpack/components/TypeAhead/pf3Search/TypeAheadSearch.js +2 -1
  144. data/webpack/scenes/Subscriptions/Manifest/ManageManifestModal.js +7 -2
  145. data/webpack/scenes/Subscriptions/Manifest/index.js +1 -0
  146. metadata +31 -19
  147. data/lib/katello/tasks/common.rake +0 -7
@@ -10,7 +10,8 @@
10
10
  <%= notifications %>
11
11
  <div id="organization-id" data-id="<%= Organization.current.id if Organization.current %>" ></div>
12
12
  <div id="user-id" data-id="<%= User.current.id if User.current %>" ></div>
13
- <div id="reactRoot"></div>
14
- <%= mount_react_component('katello', '#reactRoot') %>
13
+ <div id="reactRoot">
14
+ <%= react_component('katello') %>
15
+ </div>
15
16
  <% end %>
16
17
  <%= render file: "layouts/base" %>
@@ -42,5 +42,5 @@
42
42
  </tbody>
43
43
  </table>
44
44
 
45
- <%= submit_tag _('Synchronize Now'), :class => 'button fr', :id => 'sync_button' %>
45
+ <%= submit_tag _('Synchronize Now'), :class => 'btn btn-default fr', :id => 'sync_button' %>
46
46
  <% end %>
@@ -9,13 +9,9 @@
9
9
 
10
10
  <%= field(f, _("Activation Keys"),
11
11
  :help_inline => _("The value will be available in templates as @host.params['#{kt_ak_label}']")) do
12
- tag.div id: :kt_activation_keys
12
+ react_component('TypeAheadSelect', { id: 'kt_activation_keys', multiple: true, allowNew: true })
13
13
  end %>
14
14
 
15
- <%= mount_react_component('TypeAheadSelect', '#kt_activation_keys',
16
- {id: 'kt_activation_keys', multiple: true, allowNew: true}.to_json,
17
- { flatten_data: true }) %>
18
-
19
15
  <div class="alert alert-info">
20
16
  <p><b><%= _('Subscriptions information based on selected activation keys:') %></b></p>
21
17
  <ul id="ak-subscriptions-info"></ul>
@@ -113,6 +113,22 @@ Katello::Engine.routes.draw do
113
113
  end
114
114
  end
115
115
 
116
+ api_resources :content_exports, :only => [] do
117
+ collection do
118
+ post :version
119
+ post :library
120
+ get :index
121
+ get :api_status
122
+ end
123
+ end
124
+
125
+ api_resources :content_export_incrementals, :only => [] do
126
+ collection do
127
+ post :version
128
+ post :library
129
+ end
130
+ end
131
+
116
132
  api_resources :content_view_versions, :except => [:create] do
117
133
  member do
118
134
  post :promote
@@ -121,11 +137,15 @@ Katello::Engine.routes.draw do
121
137
  get :available_errata, :controller => :errata
122
138
  end
123
139
  collection do
124
- get :export_histories
125
- get :export_api_status
126
140
  get :auto_complete_search
127
141
  post :incremental_update
128
- post :import
142
+ end
143
+ end
144
+
145
+ api_resources :content_imports, :only => [] do
146
+ collection do
147
+ post :version
148
+ post :library
129
149
  end
130
150
  end
131
151
 
@@ -329,7 +329,7 @@ class MigrateContentHosts < ActiveRecord::Migration[4.2]
329
329
  # rubocop:disable Metrics/MethodLength
330
330
  # rubocop:disable Metrics/AbcSize
331
331
  def up
332
- if User.where(:login => User::ANONYMOUS_API_ADMIN).first.nil?
332
+ unless User.unscoped.where(:login => User::ANONYMOUS_API_ADMIN).exists?
333
333
  logger.warn("Foreman anonymous admin does not exist, skipping content host migration.")
334
334
  return
335
335
  end
@@ -1,6 +1,6 @@
1
1
  class MoveKatelloFieldsFromHostgroups < ActiveRecord::Migration[6.0]
2
2
  def up
3
- if User.where(login: User::ANONYMOUS_ADMIN).exists?
3
+ if User.unscoped.where(login: User::ANONYMOUS_ADMIN).exists?
4
4
  User.as_anonymous_admin do
5
5
  copy_data_from_hostgroup
6
6
  end
@@ -46,7 +46,10 @@ class MoveKatelloFieldsFromHostgroups < ActiveRecord::Migration[6.0]
46
46
  content_facet.kickstart_repository_id = kickstart_repository_id
47
47
  content_facet.content_view_id = content_view_id
48
48
  content_facet.lifecycle_environment_id = lifecycle_environment_id
49
- content_facet.save!
49
+ unless content_facet.save
50
+ Rails.logger.warn("Unable to save content facet hostgroup for #{content_facet.inspect} ")
51
+ Rails.logger.warn(content_facet.errors.full_messages.join("\n"))
52
+ end
50
53
  end
51
54
  end
52
55
  end
@@ -0,0 +1,9 @@
1
+ class Pulp3MigrationProgress < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :katello_content_migration_progresses do |t|
4
+ t.string :progress_message
5
+ t.boolean :canceled, null: false, default: false
6
+ t.string :task_id, null: false, index: {name: 'katello_content_migration_progress_task_id', unique: true }
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,12 @@
1
+ class AddMigrationMissingContent < ActiveRecord::Migration[6.0]
2
+ def change
3
+ content_models = [Katello::Rpm, Katello::ModuleStream, Katello::Erratum, Katello::PackageGroup, Katello::YumMetadataFile,
4
+ Katello::Srpm, Katello::FileUnit, Katello::DockerManifestList, Katello::DockerManifest, Katello::DockerTag,
5
+ Katello::Deb]
6
+
7
+ content_models.each do |model|
8
+ add_column model.table_name, :missing_from_migration, :bool, :default => false, :null => false
9
+ add_column model.table_name, :ignore_missing_from_migration, :bool, :default => false, :null => false
10
+ end
11
+ end
12
+ end
@@ -20,7 +20,7 @@ angular.module('Bastion.auth').service('Authorization', ['CurrentUser', 'Permiss
20
20
  allowedTo = model.permissions[permissionName];
21
21
  } else {
22
22
  angular.forEach(Permissions, function (permission) {
23
- if (permission.permission.name === permissionName) {
23
+ if (permission.name === permissionName) {
24
24
  allowedTo = true;
25
25
  }
26
26
  });
@@ -1,7 +1,7 @@
1
1
  <section>
2
2
  <p bst-alert="warning" >
3
3
  <span translate>
4
- Katello-agent is deprecated and will be removed in Katello 4.0. Consider migrating to Remote Execution.
4
+ Katello-agent is deprecated and will be removed in a future release.
5
5
  </span>
6
6
  </p>
7
7
  </section>
@@ -1,8 +1,7 @@
1
1
  <div data-extend-template="components/views/bst-modal.html">
2
- <h4 data-block="modal-header" translate>Content Host System Purpose</h4>
2
+ <h2 data-block="modal-header" translate>Assign System Purpose</h2>
3
3
 
4
4
  <div data-block="modal-body">
5
- <h4 translate>Assign System Purpose:</h4>
6
5
 
7
6
  <div class="row">
8
7
  <div class="col-sm-12">
@@ -10,67 +9,63 @@
10
9
  </div>
11
10
  </div>
12
11
 
12
+ <div bst-alert="info">
13
+ <span translate>
14
+ This change will be applied to <b>{{ hostCount }} systems.</b>
15
+ </span>
16
+ </div>
17
+ <br />
18
+
13
19
  <form name="contentHostContentForm" class="form" ng-hide="content.workingMode">
14
- <div>
15
- <label translate>Service Level:</label>
20
+ <div><b>
21
+ <dl class="dl-horizontal dl-horizontal-left">
22
+ <dt><label translate>Service Level (SLA):</label></dt>
16
23
 
17
- <select type="select"
18
- ng-options="item for item in defaultServiceLevels"
19
- ng-model="selectedServiceLevels">
20
- </select>
21
- <br /><br />
24
+ <dd><select type="select"
25
+ ng-options="item for item in defaultServiceLevels"
26
+ ng-model="selectedServiceLevels">
27
+ </select></dd>
28
+ <br /><br />
22
29
 
23
- <label translate>Usage Type:</label>
30
+ <dt style="margin-left: -50px;"><label translate>Usage Type:</label></dt>
24
31
 
25
- <select type="select"
32
+ <dd><select type="select"
26
33
  ng-options="item for item in defaultUsages"
27
34
  ng-model="selectedRoles">
28
- </select>
35
+ </select></dd>
29
36
  <br /><br />
30
37
 
31
- <label translate>Role:</label>
38
+ <dt style="margin-left: -98px;"><label translate>Role:</label></dt>
32
39
 
33
- <select type="select"
40
+ <dd><select type="select"
34
41
  ng-options="item for item in defaultRoles"
35
42
  ng-model="selectedUsages">
36
- </select>
43
+ </select></dd>
37
44
  <br /><br />
38
45
 
39
- <label ng-hide="!purposeAddonsList().length" translate>Add ons:</label>
40
- <div class="help-block" style="text-align:left;">
41
- <p translate>ctrl-click or shift-click to select multiple Add ons</p>
42
- </div>
46
+ <dt style="margin-left: -75px;"><label ng-hide="!purposeAddonsList().length" translate>Add ons:</label></dt>
43
47
 
44
- <select multiple ng-multiple="true"
48
+ <dd><select multiple ng-multiple="true"
45
49
  ng-hide="!purposeAddonsList().length"
46
50
  ng-options="item for item in purposeAddonsList()"
47
51
  ng-model="selectedAddons">
48
- </select>
49
- <br /><br />
50
-
51
- </div>
52
-
53
- <div bst-alert="info" ng-show="showConfirm">
54
- <span translate>
55
- Set System Purpose values on {{ hostCount }} selected content hosts?
56
- </span>
57
- <div>
58
- <br />
59
- <button type="button" class="btn btn-primary" ng-click="showConfirm = false; performAction()" translate>Assign</button>
52
+ </select></dd>
53
+ <div class="help-block" style="text-align:center; margin-left: -180px;">
54
+ <p translate>ctrl-click or shift-click to select multiple Add ons</p>
60
55
  </div>
56
+ <br /><br />
57
+ </dl></b>
61
58
  </div>
62
-
63
- <button class="btn btn-primary"
64
- type="button"
65
- ng-hide="showConfirm"
66
- ng-click="showConfirm = true;">
67
- <span translate>Assign</span>
68
- </button>
69
-
70
59
  </form>
71
60
  </div>
72
61
 
73
62
  <div data-block="modal-footer">
63
+ <button class="btn btn-primary"
64
+ type="button"
65
+ ng-click="performAction()">
66
+ <span translate>Assign</span>
67
+ </button>
68
+
74
69
  <button type="button" class="btn btn-default" ng-click="cancel()" translate>
75
70
  Cancel
76
71
  </button>
@@ -12,7 +12,7 @@
12
12
  <section>
13
13
  <p bst-alert="warning" >
14
14
  <span translate>
15
- Katello-agent is deprecated and will be removed in Katello 4.0. Consider migrating to Remote Execution.
15
+ Katello-agent is deprecated and will be removed in a future release.
16
16
  </span>
17
17
  </p>
18
18
  </section>
@@ -16,16 +16,20 @@
16
16
  angular.module('Bastion.content-views').controller('ContentViewVersionDeletionActivationKeysController',
17
17
  ['$scope', '$location', 'Organization', 'CurrentOrganization', 'Nutupane', 'ActivationKey',
18
18
  function ($scope, $location, Organization, CurrentOrganization, Nutupane, ActivationKey) {
19
- var params, nutupane;
19
+ var params, nutupane, nutupaneParams;
20
20
 
21
21
  $scope.validateEnvironmentSelection();
22
22
  params = {
23
23
  'organization_id': CurrentOrganization,
24
- 'content_view_id': $scope.contentView.id,
25
24
  'sort_by': 'name',
26
25
  'sort_order': 'ASC'
27
26
  };
28
- nutupane = new Nutupane(ActivationKey, params);
27
+
28
+ nutupaneParams = {
29
+ 'disableAutoLoad': true
30
+ };
31
+
32
+ nutupane = new Nutupane(ActivationKey, params, undefined, nutupaneParams);
29
33
  $scope.controllerName = 'katello_activation_keys';
30
34
 
31
35
  nutupane.searchTransform = function (term) {
@@ -43,6 +47,7 @@ angular.module('Bastion.content-views').controller('ContentViewVersionDeletionAc
43
47
 
44
48
  return term + " AND " + addition;
45
49
  };
50
+ nutupane.load();
46
51
 
47
52
  $scope.table = nutupane.table;
48
53
  $scope.table.closeItem = function () {};
@@ -17,16 +17,20 @@ angular.module('Bastion.content-views').controller('ContentViewVersionDeletionCo
17
17
  ['$scope', '$location', 'Organization', 'CurrentOrganization', 'Nutupane', 'Host',
18
18
  function ($scope, $location, Organization, CurrentOrganization, Nutupane, Host) {
19
19
 
20
- var params, nutupane;
20
+ var params, nutupane, nutupaneParams;
21
21
 
22
22
  $scope.validateEnvironmentSelection();
23
23
  params = {
24
24
  'organization_id': CurrentOrganization,
25
- 'content_view_id': $scope.contentView.id,
26
25
  'sort_by': 'name',
27
26
  'sort_order': 'ASC'
28
27
  };
29
- nutupane = new Nutupane(Host, params);
28
+
29
+ nutupaneParams = {
30
+ 'disableAutoLoad': true
31
+ };
32
+
33
+ nutupane = new Nutupane(Host, params, undefined, nutupaneParams);
30
34
  $scope.controllerName = 'hosts';
31
35
 
32
36
  nutupane.searchTransform = function (term) {
@@ -44,6 +48,8 @@ angular.module('Bastion.content-views').controller('ContentViewVersionDeletionCo
44
48
 
45
49
  return term + " AND " + addition;
46
50
  };
51
+
52
+ nutupane.load();
47
53
  $scope.table = nutupane.table;
48
54
  $scope.table.closeItem = function () {};
49
55
 
@@ -13,7 +13,7 @@
13
13
  </div>
14
14
 
15
15
  <nav data-block="item-actions">
16
- <button type="button" class="btn btn-primary" ng-hide="denied('publish_content_views', contentView) || contentView.import_only"
16
+ <button type="button" class="btn btn-primary" ng-hide="denied('publish_content_views', contentView) || contentView.import_only"
17
17
  ui-sref="content-view.publish">
18
18
  <span translate>Publish New Version</span>
19
19
  </button>
@@ -7,6 +7,10 @@
7
7
  It can be promoted to other environments from the Versions tab of this Content View.
8
8
  </p>
9
9
 
10
+ <div bst-alert="warning" ng-show="contentView.errors['messages'].length > 0">
11
+ <span translate>{{contentView.errors['messages'][0]}}</span>
12
+ </div>
13
+
10
14
  <header class="details-header">
11
15
  <h3 translate>Version Details</h3>
12
16
  </header>
@@ -521,6 +521,10 @@ msgstr ""
521
521
  msgid "Add ons"
522
522
  msgstr ""
523
523
 
524
+ #: app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-system-purpose-modal.html
525
+ msgid "Add ons:"
526
+ msgstr ""
527
+
524
528
  #: app/assets/javascripts/bastion_katello/content-views/details/filters/views/package-group-filter-details.html
525
529
  msgid "Add Package Group"
526
530
  msgstr ""
@@ -1028,6 +1032,7 @@ msgstr[1] ""
1028
1032
 
1029
1033
  #: app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-environment-modal.html
1030
1034
  #: app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-release-version-modal.html
1035
+ #: app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-system-purpose-modal.html
1031
1036
  msgid "Assign"
1032
1037
  msgstr ""
1033
1038
 
@@ -1039,6 +1044,10 @@ msgstr ""
1039
1044
  msgid "Assign Release Version"
1040
1045
  msgstr ""
1041
1046
 
1047
+ #: app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-system-purpose-modal.html
1048
+ msgid "Assign System Purpose:"
1049
+ msgstr ""
1050
+
1042
1051
  #: app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-details.html
1043
1052
  msgid "Associations"
1044
1053
  msgstr ""
@@ -1192,6 +1201,7 @@ msgid "Build Time"
1192
1201
  msgstr ""
1193
1202
 
1194
1203
  #: app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-host-bulk-module-streams-modal.html
1204
+ #: app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-system-purpose-modal.html
1195
1205
  #: app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-traces-modal.html
1196
1206
  #: app/assets/javascripts/bastion_katello/content-views/deletion/views/content-view-deletion.html
1197
1207
  #: app/assets/javascripts/bastion_katello/content-views/deletion/views/version-deletion-activation-keys.html
@@ -1284,10 +1294,6 @@ msgstr ""
1284
1294
  msgid "Checksum Type"
1285
1295
  msgstr ""
1286
1296
 
1287
- #: app/assets/javascripts/bastion_katello/products/details/repositories/new/views/new-repository.html
1288
- msgid "Choose <b>Default</b> to enable the repository for all architectures"
1289
- msgstr ""
1290
-
1291
1297
  #: app/assets/javascripts/bastion_katello/content-views/details/views/content-view-promotion.html
1292
1298
  msgid "Choose a lifecycle environment from the available promotion paths."
1293
1299
  msgstr ""
@@ -1524,6 +1530,10 @@ msgstr ""
1524
1530
  msgid "Content Host Status"
1525
1531
  msgstr ""
1526
1532
 
1533
+ #: app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-system-purpose-modal.html
1534
+ msgid "Content Host System Purpose"
1535
+ msgstr ""
1536
+
1527
1537
  #: app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-details.html
1528
1538
  msgid "Content Host:"
1529
1539
  msgstr ""
@@ -1771,6 +1781,10 @@ msgstr ""
1771
1781
  msgid "Cron Logic"
1772
1782
  msgstr ""
1773
1783
 
1784
+ #: app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-system-purpose-modal.html
1785
+ msgid "ctrl-click or shift-click to select multiple Add ons"
1786
+ msgstr ""
1787
+
1774
1788
  #: app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js
1775
1789
  msgid "Current Lifecycle Environment (%e/%cv)"
1776
1790
  msgstr ""
@@ -1860,8 +1874,6 @@ msgid "Debs"
1860
1874
  msgstr ""
1861
1875
 
1862
1876
  #: app/assets/javascripts/bastion_katello/products/details/repositories/checksum.service.js
1863
- #: app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-info.controller.js
1864
- #: app/assets/javascripts/bastion_katello/products/details/repositories/new/new-repository.controller.js
1865
1877
  msgid "Default"
1866
1878
  msgstr ""
1867
1879
 
@@ -1944,6 +1956,10 @@ msgstr ""
1944
1956
  msgid "Description"
1945
1957
  msgstr ""
1946
1958
 
1959
+ #: app/assets/javascripts/bastion_katello/content-views/new/views/content-view-new.html
1960
+ msgid "Designate whether this Content View is for importing from an upstream server. Import-only Content Views can not be published directly."
1961
+ msgstr ""
1962
+
1947
1963
  #: app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-details.html
1948
1964
  #: app/assets/javascripts/bastion_katello/content-credentials/details/views/content-credential-details.html
1949
1965
  #: app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-details.html
@@ -2605,6 +2621,15 @@ msgstr ""
2605
2621
  msgid "Immediate"
2606
2622
  msgstr ""
2607
2623
 
2624
+ #: app/assets/javascripts/bastion_katello/content-views/details/views/content-view-info.html
2625
+ #: app/assets/javascripts/bastion_katello/content-views/new/views/content-view-new.html
2626
+ msgid "Import-only"
2627
+ msgstr ""
2628
+
2629
+ #: app/assets/javascripts/bastion_katello/content-views/views/content-views.html
2630
+ msgid "Import-only?"
2631
+ msgstr ""
2632
+
2608
2633
  #: app/assets/javascripts/bastion_katello/errata/errata-severity.filter.js
2609
2634
  msgid "Important"
2610
2635
  msgstr ""
@@ -2753,7 +2778,7 @@ msgstr ""
2753
2778
 
2754
2779
  #: app/assets/javascripts/bastion_katello/common/views/katello-agent-notice.html
2755
2780
  #: app/assets/javascripts/bastion_katello/content-hosts/views/register-client.html
2756
- msgid "Katello-agent is deprecated and will be removed in Katello 4.0. Consider migrating to Remote Execution."
2781
+ msgid "Katello-agent is deprecated and will be removed in a future release."
2757
2782
  msgstr ""
2758
2783
 
2759
2784
  #: app/assets/javascripts/bastion_katello/content-views/details/views/content-view-info.html
@@ -3024,6 +3049,10 @@ msgstr ""
3024
3049
  msgid "Manage Sync Plan"
3025
3050
  msgstr ""
3026
3051
 
3052
+ #: app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html
3053
+ msgid "Manage System Purpose"
3054
+ msgstr ""
3055
+
3027
3056
  #: app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-manage-docker-manifests.html
3028
3057
  msgid "Manifest Lists"
3029
3058
  msgstr ""
@@ -3478,6 +3507,11 @@ msgstr ""
3478
3507
  msgid "No repository sets provided through subscriptions."
3479
3508
  msgstr ""
3480
3509
 
3510
+ #: app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-info.controller.js
3511
+ #: app/assets/javascripts/bastion_katello/products/details/repositories/new/new-repository.controller.js
3512
+ msgid "No restriction"
3513
+ msgstr ""
3514
+
3481
3515
  #: app/assets/javascripts/bastion_katello/content-views/details/filters/views/filter-rule-matching-package-modal.html
3482
3516
  msgid "No RPMs were matched"
3483
3517
  msgstr ""
@@ -4626,6 +4660,10 @@ msgstr ""
4626
4660
  msgid "Restart Services on Content Host \"{{host.name}}\"?"
4627
4661
  msgstr ""
4628
4662
 
4663
+ #: app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-info.html
4664
+ msgid "Restrict to <br>OS version"
4665
+ msgstr ""
4666
+
4629
4667
  #: app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-info.html
4630
4668
  msgid "Restrict to architecture"
4631
4669
  msgstr ""
@@ -4634,6 +4672,10 @@ msgstr ""
4634
4672
  msgid "Restrict to Architecture"
4635
4673
  msgstr ""
4636
4674
 
4675
+ #: app/assets/javascripts/bastion_katello/products/details/repositories/new/views/new-repository.html
4676
+ msgid "Restrict to OS version"
4677
+ msgstr ""
4678
+
4637
4679
  #: app/assets/javascripts/bastion_katello/tasks/views/task-details.html
4638
4680
  msgid "Result"
4639
4681
  msgstr ""
@@ -4643,6 +4685,10 @@ msgstr ""
4643
4685
  msgid "Role"
4644
4686
  msgstr ""
4645
4687
 
4688
+ #: app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-system-purpose-modal.html
4689
+ msgid "Role:"
4690
+ msgstr ""
4691
+
4646
4692
  #: app/assets/javascripts/bastion_katello/content-views/details/filters/views/filter-rule-matching-package-modal.html
4647
4693
  #: app/assets/javascripts/bastion_katello/packages/views/packages.html
4648
4694
  #: app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
@@ -4798,10 +4844,18 @@ msgstr ""
4798
4844
  msgid "Service Level (SLA)"
4799
4845
  msgstr ""
4800
4846
 
4847
+ #: app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-system-purpose-modal.html
4848
+ msgid "Service Level:"
4849
+ msgstr ""
4850
+
4801
4851
  #: app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html
4802
4852
  msgid "Set Release Version"
4803
4853
  msgstr ""
4804
4854
 
4855
+ #: app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-system-purpose-modal.html
4856
+ msgid "Set System Purpose values on {{ hostCount }} selected content hosts?"
4857
+ msgstr ""
4858
+
4805
4859
  #: app/assets/javascripts/bastion_katello/errata/details/views/erratum-info.html
4806
4860
  msgid "Severity"
4807
4861
  msgstr ""
@@ -5204,6 +5258,10 @@ msgstr ""
5204
5258
  msgid "System Purpose allows you to set the system's intended use on your network and improves the accuracy of auto attaching subscriptions."
5205
5259
  msgstr ""
5206
5260
 
5261
+ #: app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-info.html
5262
+ msgid "System Purpose Management"
5263
+ msgstr ""
5264
+
5207
5265
  #: app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html
5208
5266
  msgid "System Purpose Status"
5209
5267
  msgstr ""
@@ -5304,6 +5362,15 @@ msgstr ""
5304
5362
  msgid "The Remote Execution plugin needs to be installed in order to resolve Traces."
5305
5363
  msgstr ""
5306
5364
 
5365
+ #: app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-info.html
5366
+ msgid "The repository will be enabled by default on content hosts with the selected architecture."
5367
+ msgstr ""
5368
+
5369
+ #: app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-info.html
5370
+ #: app/assets/javascripts/bastion_katello/products/details/repositories/new/views/new-repository.html
5371
+ msgid "The repository will be enabled by default on content hosts with the selected OS version."
5372
+ msgstr ""
5373
+
5307
5374
  #: app/assets/javascripts/bastion_katello/activation-keys/new/views/activation-key-new.html
5308
5375
  msgid "The selected environment contains no Content Views, please select a different environment."
5309
5376
  msgstr ""
@@ -5746,6 +5813,10 @@ msgstr ""
5746
5813
  msgid "Usage Type"
5747
5814
  msgstr ""
5748
5815
 
5816
+ #: app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-system-purpose-modal.html
5817
+ msgid "Usage Type:"
5818
+ msgstr ""
5819
+
5749
5820
  #: app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-info.html
5750
5821
  #: app/assets/javascripts/bastion_katello/products/details/repositories/new/views/new-repository.html
5751
5822
  msgid "Use Ctrl-click to multi-select/deselect items."