Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
apiserver: remove dependency on resource/api #4673
Conversation
|
$$JFDI$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
added a commit
that referenced
this pull request
Mar 10, 2016
jujubot
merged commit 61607ab
into
juju:master
Mar 10, 2016
davecheney
deleted the
davecheney:apiserver-remove-resource-api-dependency
branch
Mar 10, 2016
added a commit
to ericsnowcurrently/juju
that referenced
this pull request
Mar 17, 2016
added a commit
to ericsnowcurrently/juju
that referenced
this pull request
Mar 17, 2016
added a commit
to ericsnowcurrently/juju
that referenced
this pull request
Mar 21, 2016
added a commit
to ericsnowcurrently/juju
that referenced
this pull request
Mar 29, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
davecheney commentedMar 10, 2016
The apiserver was importing resource/api to get one constant to
construct a URL path. This made the apiserver depend on all the code
that the resource/api package depends on, and flirted with an import
loop.
Given that the line directly below the one affected by this change does
the same thing, but without a constant in another package, it seems
simpler to remove the dependency and just write the literal string in
the one place it is used, and has test coverage.
(Review request: http://reviews.vapour.ws/r/4112/)