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

Deprecate callers to Address in Host #14138

Merged
merged 1 commit into from
Mar 6, 2017

Conversation

juliancheal
Copy link
Member

@juliancheal juliancheal commented Mar 2, 2017

Wraps address in deprecated alias_attribute.

@juliancheal
Copy link
Member Author

@miq-bot add_label wip

@juliancheal
Copy link
Member Author

This PR is a replacement of #9204 as just removing all the callers to a method is hard, as there maybe some callers we don't yet know about.

@Fryguy
Copy link
Member

Fryguy commented Mar 2, 2017

@juliancheal There already is a mixin for deprecations at app/models/mixins/deprecation_mixin.rb Can you reuse that file or does it already do what you need?

@juliancheal
Copy link
Member Author

@juliancheal There already is a mixin for deprecations at app/models/mixins/deprecation_mixin.rb Can you reuse that file or does it already do what you need?

Ah thanks for the heads up. This looks good.

I think think we should log that a method is being deprecated. I'll update the PR.

@juliancheal
Copy link
Member Author

Coolio, so we do log deprecations, but we list them as being removed in F release. What if we're going to depreciated something in the future in an unknown release? https://github.com/ManageIQ/manageiq/blob/master/lib/vmdb/deprecation.rb#L4 /cc @bdunne

@juliancheal juliancheal changed the title [WIP] Deprecate Mixin [WIP] Deprecate callers to Address in Host Mar 2, 2017
@Fryguy
Copy link
Member

Fryguy commented Mar 2, 2017

@juliancheal When we cut the F branch, we change that to the next version

@juliancheal
Copy link
Member Author

@Fryguy ha that was my guess.

We tried simply removing it before, but we think some automate users
may be using it, even though the tests pasted.
@juliancheal
Copy link
Member Author

Squashed commits to reflect this PR better.

@miq-bot
Copy link
Member

miq-bot commented Mar 2, 2017

Checked commit juliancheal@4f709fb with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks good. ⭐

@juliancheal
Copy link
Member Author

@miq-bot remove_label wip

@miq-bot miq-bot changed the title [WIP] Deprecate callers to Address in Host Deprecate callers to Address in Host Mar 2, 2017
@miq-bot miq-bot removed the wip label Mar 2, 2017
@blomquisg blomquisg merged commit 177bdda into ManageIQ:master Mar 6, 2017
@blomquisg blomquisg added this to the Sprint 56 Ending Mar 13, 2017 milestone Mar 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants