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

Move HTTP functionality of apprepo to another package #1513

Merged
merged 1 commit into from
Feb 12, 2020
Merged

Conversation

andresmgot
Copy link
Contributor

Description of the change

Move HTTP related code out of pkg/apprepo so this package can be re-used in other packages (pkg/chart) later on.

This is part of the refactoring I mention in #1507

Additional information

I still need to add tests for pkg/http-handler (to check that it returns the expected response/code but I wanted to send something first to avoid conflicts.

Copy link
Contributor

@absoludity absoludity left a comment

Choose a reason for hiding this comment

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

Excellent, thanks Andres!

// in Kubeapps, without exposing implementation details to 3rd party integrations.
type appRepositoriesHandler struct {
type AppRepositoriesHandler struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if this, the conversion from private to public, was done before you created the interface below... I don't see it being accessed outside this module?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Apart from that, I was getting a lint warning because the public method NewAppRepositoriesHandler was returning this private struct.

@absoludity
Copy link
Contributor

Landing to continue work in the handle. Thanks for pushing this so we can move without stacking branches :)

@absoludity absoludity merged commit 3c1ef9d into master Feb 12, 2020
@andresmgot andresmgot deleted the httpHandler branch February 13, 2020 16:57
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.

2 participants