scumblr

https://github.com/netflix-skunkworks/scumblr

Ruby

Web framework that allows performing periodic syncs of data sources and performing analysis on the identified results

Result#filter_metadata

Allows filtering an array inside a JSON object based on a
(potentially nested) value or set of values
Params:
+data+:: The JSON object to filter
+keys+:: The key(s) under which a value is stored in the array element
+values+:: The values which are valid and should cause the element to be included in the filtered array
            if values is nil we will just test to see if the element exists
+filter_on+:: The key(s) under which the array to be filtered is stored in the JSON element (data)

Source | Google | Stack overflow

Edit

git clone [email protected]:netflix-skunkworks/scumblr.git

cd scumblr

open app/models/result.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Result-filter_metadata-for-pr


# Commit to git

git add app/models/result.rbgit commit -m "better docs for Result#filter_metadata"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Result-filter_metadata-for-pr

hub pull-request


# Celebrate!