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

update retirement calls #1405

Merged
merged 1 commit into from
Apr 9, 2020
Merged

update retirement calls #1405

merged 1 commit into from
Apr 9, 2020

Conversation

d-m-u
Copy link
Contributor

@d-m-u d-m-u commented Apr 8, 2020

use retirement as a request calls instead of the older retirement calls

use retirement as a request calls instead of the older retirement calls
@miq-bot
Copy link
Member

miq-bot commented Apr 8, 2020

Checked commit d-m-u@913d6c4 with ruby 2.5.7, rubocop 0.69.0, haml-lint 0.28.0, and yamllint
0 files checked, 0 offenses detected
Everything looks fine. 🍰

@abellotti
Copy link
Member

The API currently supports both, retire and request_retire. Documentation should reflect this.

@d-m-u
Copy link
Contributor Author

d-m-u commented Apr 8, 2020

Then we should make it clearer in these docs what the differences between the two are because I keep fixing bugs where people are using the wrong call.

@abellotti
Copy link
Member

That's fine, unless we are going to throw away/deprecate the old one, let's document both and clearly describe the difference.

@d-m-u
Copy link
Contributor Author

d-m-u commented Apr 8, 2020

Alright but I would have thought that for this overview page especially we'd at least have examples that are up-to-date. Since the only reason we still have the old call is backwards compatibility and everything else is using the request call, it isn't really user-friendly to be using the old example here.

@abellotti
Copy link
Member

Ok, if the old one is kept around for compatibility, then we could deprecate it at some point. Then, yes, let's just document request_retire. 👍

@d-m-u
Copy link
Contributor Author

d-m-u commented Apr 8, 2020

Deprecating it would break retirement for any pre-Hammer state machine, which is why I think we don't want to deprecate it. But since its functionality has that limit, I do think these docs for any relevant release should be using the request call.

@abellotti abellotti self-requested a review April 9, 2020 14:13
@abellotti abellotti self-assigned this Apr 9, 2020
@abellotti abellotti merged commit 18e8cd1 into ManageIQ:master Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants