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
Conversation
Issues: #29540 |
c264882
to
9e65b13
Compare
71455fa
to
f0441cd
Compare
9ee50de
to
d7aa183
Compare
0dc96cb
to
f92d000
Compare
This reverts commit 120f8fa.
@@ -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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 :)
There was a problem hiding this 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.
Looks like there's another API to remove:
katello/app/controllers/katello/api/rhsm/candlepin_dynflow_proxy_controller.rb Lines 69 to 71 in 93fab73
cc @mdellweg for awareness |
@jturel I was thinking squash and merge for this one, since that's turned on again. 😉 |
ACK. But that would contradict your comment (right?)
|
@jturel The commits would still be available on the closed pull request, no? |
That never occurred to me! mind_blown.gif |
The corresponding candlepin change is still waiting: |
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 |
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:
I think these warnings can be removed - I think the associated parameter has been gone for a while |
There was a problem hiding this 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
…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
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 typeDeprecation 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 ostreeDeprecation 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 typeDeprecation 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 ostreeDeprecation 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.
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.