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

fixes #11210 - Distribution API endpoint deprecation #5382

Merged
merged 1 commit into from Jul 29, 2015

Conversation

johnpmitsch
Copy link
Contributor

Distribution information is being shown in /repositories/:repository_id endpoint starting in 2.4, a deprecation warning needs to be added to 2.3

@johnpmitsch
Copy link
Contributor Author

I had to add :sort_by => 'id' in options here https://github.com/johnpmitsch/katello/blob/distro_api_deprecation/app/controllers/katello/api/v2/distributions_controller.rb#L11 to get the api to work, I was getting "could not sort by 'name_sort'" error, possible bug?

@ehelms
Copy link
Member

ehelms commented Jul 28, 2015

Can you include the deprecated => true in the API documentation as well?

@@ -24,6 +25,10 @@ def show

private

def deprecated
::Foreman::Deprecation.api_deprecation_warning("it will be changed in 2.4, where Distribution information will be included in /repositories/:repository_id")
Copy link
Member

Choose a reason for hiding this comment

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

I'd say in Katello 2.4 so its clear when looking at the logs.

@ehelms
Copy link
Member

ehelms commented Jul 28, 2015

LGTM - @jlsherrill mind reviewing as well since this is our first attempt at doing this sort of deprecation?

@jlsherrill
Copy link
Member

ACK from me

@ehelms
Copy link
Member

ehelms commented Jul 29, 2015

ACK! Thanks @johnpmitsch

ehelms added a commit that referenced this pull request Jul 29, 2015
fixes #11210 - Distribution API endpoint deprecation
@ehelms ehelms merged commit 533b428 into Katello:master Jul 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants