Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refs #29540 - Remove 3.16 deprecated functionality and warnings #8685

Merged
merged 17 commits into from May 11, 2020
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -56,13 +56,6 @@ def auto_attach
respond_for_index(:collection => index_response, :template => "index")
end

api :GET, "/hosts/:host_id/subscriptions/events", N_("List subscription events for the host"), :deprecated => true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should remove the route for this too

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

took me a minute to find, but that's done now :)

param :host_id, Integer, :desc => N_("Id of the host"), :required => true
def events
::Foreman::Deprecation.api_deprecation_warning("Events API is being deprecated and will be removed in Katello 3.16.")
respond_for_index :collection => full_result_response([])
end

api :DELETE, "/hosts/:host_id/subscriptions/", N_("Unregister the host as a subscription consumer")
param :host_id, Integer, :desc => N_("Id of the host"), :required => true
def destroy
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/katello/api/v2/repositories_controller.rb
Expand Up @@ -221,7 +221,7 @@ def create
end

if repo_params['content_type'] == "puppet" || repo_params['content_type'] == "ostree"
::Foreman::Deprecation.api_deprecation_warning("Puppet and OSTree will no longer be supported in Katello 3.16")
::Foreman::Deprecation.api_deprecation_warning("Puppet and OSTree will no longer be supported in Katello 4.0")
end

gpg_key = get_content_credential(repo_params, CONTENT_CREDENTIAL_GPG_KEY_TYPE)
Expand Down
4 changes: 2 additions & 2 deletions app/lib/actions/katello/repository/create.rb
Expand Up @@ -11,11 +11,11 @@ def plan(repository, clone = false, plan_create = false)
action_subject(repository)

if repository.download_policy == ::Runcible::Models::YumImporter::DOWNLOAD_BACKGROUND
::Foreman::Deprecation.api_deprecation_warning("Background download_policy will be removed in Katello 3.16. Any background repositories will be converted to Immediate")
::Foreman::Deprecation.api_deprecation_warning("Background download_policy will be removed in Katello 4.0. Any background repositories will be converted to Immediate")
end

if root['content_type'] == 'puppet' || root['content_type'] == 'ostree'
::Foreman::Deprecation.api_deprecation_warning("Repository types of 'Puppet' and 'OSTree' will no longer be supported in Katello 3.16.")
::Foreman::Deprecation.api_deprecation_warning("Repository types of 'Puppet' and 'OSTree' will no longer be supported in Katello 4.0.")
end

org = repository.organization
Expand Down
4 changes: 2 additions & 2 deletions app/lib/actions/katello/repository/update.rb
Expand Up @@ -13,11 +13,11 @@ def plan(root, repo_params)
root.update!(repo_params)

if root.download_policy == ::Runcible::Models::YumImporter::DOWNLOAD_BACKGROUND
::Foreman::Deprecation.api_deprecation_warning("Background download_policy will be removed in Katello 3.16. Any background repositories will be converted to Immediate")
::Foreman::Deprecation.api_deprecation_warning("Background download_policy will be removed in Katello 4.0. Any background repositories will be converted to Immediate")
end

if root['content_type'] == 'puppet' || root['content_type'] == 'ostree'
::Foreman::Deprecation.api_deprecation_warning("Repository types of 'Puppet' and 'OSTree' will no longer be supported in Katello 3.16.")
::Foreman::Deprecation.api_deprecation_warning("Repository types of 'Puppet' and 'OSTree' will no longer be supported in Katello 4.0.")
end

if update_content?(repository)
Expand Down
Expand Up @@ -29,7 +29,7 @@ <h4 translate>Basic Information</h4>

<div class="alert alert-warning" ng-if="repository.content_type === 'ostree' || repository.content_type === 'puppet'">
<span class="pficon pficon-warning-triangle-o"></span>
<strong>Deprecation Warning: </strong>Puppet and OSTree will no longer be supported in Katello 3.16.
<strong>Deprecation Warning: </strong>Puppet and OSTree will no longer be supported in Katello 4.0.
</div>

<div class="divider"></div>
Expand Down
Expand Up @@ -41,7 +41,7 @@ <h4 translate> Basic Information </h4>

<div class="alert alert-warning" ng-if="repository.content_type === 'ostree' || repository.content_type === 'puppet'">
<span class="pficon pficon-warning-triangle-o"></span>
<strong>Deprecation Warning: </strong>Puppet and OSTree will no longer be supported in Katello 3.16.
<strong>Deprecation Warning: </strong>Puppet and OSTree will no longer be supported in Katello 4.0.
</div>

<div bst-form-group label="{{ 'Restrict to Architecture' | translate }}" ng-show="repository.content_type === 'yum'">
Expand Down Expand Up @@ -308,5 +308,3 @@ <h4 ng-show="repository.content_type !== undefined" translate> Published Reposit
</div>
</form>
</div>