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

Conversation

jeremylenz
Copy link
Member

@jeremylenz jeremylenz commented Apr 28, 2020

There are deprecation warnings about functionality to be removed in 3.16. We need to remove the following in 3.16:

Update 5/7/20: per @jlsherrill Puppet and OStree deprecations have been pushed to 4.0, as well as the background download type. I am reverting those commits rather than removing them, so whoever ends up with that task can cherry-pick the originals later and get a bit of a head start.

- [x] Background download type
Deprecation warning at /home/jomitsch/tool_belt/repos/katello/3.15.0/katello/app/lib/actions/katello/repository/update.rb line 16 is marked for removal in version 3.16, which is the next release version.

- [x] Puppet and ostree
Deprecation warning at /home/jomitsch/tool_belt/repos/katello/3.15.0/katello/app/lib/actions/katello/repository/update.rb line 20 is marked for removal in version 3.16, which is the next release version.

- [x] Background download type
Deprecation warning at /home/jomitsch/tool_belt/repos/katello/3.15.0/katello/app/lib/actions/katello/repository/create.rb line 14 is marked for removal in version 3.16, which is the next release version.

- [x] Puppet and ostree
Deprecation warning at /home/jomitsch/tool_belt/repos/katello/3.15.0/katello/app/lib/actions/katello/repository/create.rb line 18 is marked for removal in version 3.16, which is the next release version.

  • Events API
    Deprecation warning at /home/jomitsch/tool_belt/repos/katello/3.15.0/katello/app/controllers/katello/api/v2/host_subscriptions_controller.rb line 58 is marked for removal in version 3.16, which is the next release version.

- [x] Puppet and ostree (create repo)
Deprecation warning at /home/jomitsch/tool_belt/repos/katello/3.15.0/katello/app/controllers/katello/api/v2/repositories_controller.rb line 223 is marked for removal in version 3.16, which is the next release version.

@theforeman-bot
Copy link

Issues: #29540

@jeremylenz jeremylenz marked this pull request as ready for review May 7, 2020 21:37
@jeremylenz jeremylenz changed the title [WIP] Refs #29540 - Remove 3.16 deprecated functionality and warnings Refs #29540 - Remove 3.16 deprecated functionality and warnings May 7, 2020
@@ -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 :)

Copy link
Member

@jturel jturel left a comment

Choose a reason for hiding this comment

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

Looks good. I don't want to merge this branch with all these commits though. I think it'd be better to create a copy of your branch to preserve your work, and make whoever is going to actually remove those other pieces aware of your branch so they can build on it, or replicate it when that time comes. Maybe there's an issue open already that you can comment on with the details.

@jturel
Copy link
Member

jturel commented May 8, 2020

Looks like there's another API to remove:

before_action :deprecated, only: :deb_package_profile

def deprecated
::Foreman::Deprecation.api_deprecation_warning("it will be removed in Katello 3.15 - please use /consumers/:id/profiles instead.")
end

cc @mdellweg for awareness

@jeremylenz
Copy link
Member Author

@jturel I was thinking squash and merge for this one, since that's turned on again. 😉

@jturel
Copy link
Member

jturel commented May 8, 2020

@jturel I was thinking squash and merge for this one, since that's turned on again. 😉

ACK. But that would contradict your comment (right?)

I am reverting those commits rather than removing them, so whoever ends up with that task can cherry-pick the originals later and get a bit of a head start.

@jeremylenz
Copy link
Member Author

@jturel The commits would still be available on the closed pull request, no?

@jturel
Copy link
Member

jturel commented May 8, 2020

@jturel The commits would still be available on the closed pull request, no?

That never occurred to me! mind_blown.gif

@mdellweg
Copy link

mdellweg commented May 9, 2020

Looks like there's another API to remove:

before_action :deprecated, only: :deb_package_profile

def deprecated
::Foreman::Deprecation.api_deprecation_warning("it will be removed in Katello 3.15 - please use /consumers/:id/profiles instead.")
end

cc @mdellweg for awareness

The corresponding candlepin change is still waiting:
candlepin/subscription-manager#2132

@jturel
Copy link
Member

jturel commented May 11, 2020

Looks like there's another API to remove:

before_action :deprecated, only: :deb_package_profile

def deprecated
::Foreman::Deprecation.api_deprecation_warning("it will be removed in Katello 3.15 - please use /consumers/:id/profiles instead.")
end

cc @mdellweg for awareness

The corresponding candlepin change is still waiting:
candlepin/subscription-manager#2132

Thanks, guess we'll keep it for now. I guess we should update the deprecation warning for Katello 4.0 and try to get the sub-man PR merged in

@jturel
Copy link
Member

jturel commented May 11, 2020

I just had a look through the code and it appears we're caught up on deprecations with this PR which is awesome. I found this though:

app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb:      ::Foreman::Deprecation.api_deprecation_warning("The 'applicable_hosts' field will be removed from this API in Katello 2.0")
app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb:      ::Foreman::Deprecation.api_deprecation_warning("The 'applicable_hosts' field will be removed from this API in Katello 2.0")

I think these warnings can be removed - I think the associated parameter has been gone for a while

Copy link
Member

@jturel jturel left a comment

Choose a reason for hiding this comment

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

APJ!

remember to squash ;)

^^ that's a note to self

@jturel jturel merged commit 3b8b8f8 into Katello:master May 11, 2020
johnpmitsch pushed a commit to johnpmitsch/katello that referenced this pull request May 20, 2020
…llo#8685)

* Refs #29540 - remove DOWNLOAD_BACKGROUND type

* Refs #29540 - remove hosts/:id/subscriptions/events endpoint

* Refs #29540 - remove ostree and puppet in repositories_controller

* Refs #29540 - update repositories_controller_test

* Refs #29540 - remove deprecation warning from create.rb and update.rb

* Refs #29540 - Fix root_repository tests

* Refs #29540 - fix some other tests

* Refs #29540 - Revert "remove DOWNLOAD_BACKGROUND type"

This reverts commit 120f8fa.

* Refs #29540 - Revert "remove ostree and puppet in repositories_controller"

This reverts commit 1afa706.

* Refs #29540 - Revert "update repositories_controller_test"

This reverts commit 9e65b13.

* Refs #29540 - Revert "remove deprecation warning from create.rb and update.rb"

This reverts commit f0441cd.

* Refs #29540 - Revert "Fix root_repository tests"

This reverts commit d7aa183.

* Refs #29540 - bump deprecation warnings for puppet and ostree

* Refs #29540 - add back erroneously removed test

* Refs #29540 - bump cp_dynflow deprecation warning

* Refs #29540 - remove route for events

* Refs #29540 - remove old 2.0 warnings
@jeremylenz jeremylenz deleted the 29540-deprecations-3-16 branch June 8, 2020 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants