Skip to content
This repository has been archived by the owner on May 10, 2018. It is now read-only.

Fix user_sync/repositories to not explode on GH errors #405

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

svenfuchs
Copy link
Contributor

@svenfuchs svenfuchs changed the title fix user_sync/repositories to not explode on GH errors Fix user_sync/repositories to not explode on GH errors Oct 30, 2014
@@ -90,7 +90,7 @@ def slugs
end

def fetch
resources.map { |resource| fetch_resource(resource) }.map(&:to_a).flatten.compact
resources.map { |resource| fetch_resource(resource) }.compact.map(&:to_a).flatten
Copy link
Contributor

Choose a reason for hiding this comment

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

resources.flat_map { |resource| Array(fetch_resource(resource)) }

😉

Copy link
Contributor Author

Choose a reason for hiding this comment

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

much nicer, thanks :)

@rkh
Copy link
Contributor

rkh commented Oct 30, 2014

lgtm

@svenfuchs svenfuchs force-pushed the sf-sync-user-exception branch from f32c916 to 055c377 Compare October 30, 2014 15:52
@svenfuchs
Copy link
Contributor Author

Works on staging (as in: user sync still works, not sure how to provoke the error)

@BanzaiMan
Copy link
Contributor

Let's roll this out next week! :-D

@joshk
Copy link
Contributor

joshk commented Mar 18, 2015

Is this still something we should merge in?

@svenfuchs
Copy link
Contributor Author

I guess? :D

@joshk
Copy link
Contributor

joshk commented Mar 18, 2015

I'll look into this tomorrow :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants