-
-
Notifications
You must be signed in to change notification settings - Fork 916
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 Bundler API to Rubygems.org #966
Conversation
Let's get rid of librato before doing this. |
@dwradcliffe What metrics service are we moving to instead of Librato? |
@maclover7 maybe a subtree merge would be better, so we can preserve history? |
@segiddins since I expect this PR to reimplement the API as a rails controller before it's merged, I think the history probably isn't worth it in this particular case. Good idea, though. On Wed, May 27, 2015 at 9:36 PM, Samuel E. Giddins
|
Agree with @indirect . I dont think we should port the code honestly. |
What domain/sub domain will we be running the API on? bundler.rubygems.org? We have to keep in mind that v2 (new index) API will be coming out soon... |
any reason not to do this as an engine/rack app in another repo and mount it? |
@B4F because it would make the rg.org depend on more stacks to run (Sinatra/sequel as well as Rails/AR). This isn't super important, but it's a nice to have as we transition away from the API being the main index that people use. |
@maclover7 nope, no overlap. The Bundler API only provides dependencies, and the current Rubygems API has no equivalent. |
Gotcha. Was just wondering if everything needed to be written from scratch, or if there was any starting point. I know @dwradcliffe said we would be moving off of Librato -- what stats logger are we moving to? |
@maclover7 We're moving everything to datadog/statsd. I think @andremedeiros is working on migrating it. |
Got done a lot of work with @indirect, we Rails-ified the web process. Only thing left to do is to integrate Memcached (ping @dwradcliffe). |
def index | ||
return render text: "Too many gems!", status: 422 if gem_names.size > GEM_REQUEST_LIMIT | ||
|
||
deps = gem_names.each_with_object([]) do |gem_name, deps_array| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we get this all in a model? DependencyResolver
or something. This is a ton of logic for a controller.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, we would call DependencyResolver.new(gem_names) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. And then you can to_json
or to_marshal
it in the respond_to
block.
Can we port over the bundler-api tests too? |
Do we want to port those over from RSpec? |
Without a doubt. It should be pretty straightforward. |
@indirect Removed the memcached travis service commit. Rebased on master, and now Github is saying there are merge conflicts (which there aren't -- git locally on my machine says I'm up to date). Travis doesn't create a build job unless Github says there are no merge conflicts |
@maclover7 merge conflict is probably in the routes |
@maclover7 any interest in revisiting this? |
I'll take a look at this tonight, and bring this up to speed. :) |
Uh, what? Rebasing appears to be have closed my PR...? |
PR to combine Bundler API's Sinatra app with Rubygems.org's Rails app.
cc @indirect
TODO: