{"action":"opened","number":448,"pull_request":{"url":"https://api.github.com/repos/rubyforgood/diaper/pulls/448","id":199122356,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5MTIyMzU2","html_url":"https://github.com/rubyforgood/diaper/pull/448","diff_url":"https://github.com/rubyforgood/diaper/pull/448.diff","patch_url":"https://github.com/rubyforgood/diaper/pull/448.patch","issue_url":"https://api.github.com/repos/rubyforgood/diaper/issues/448","number":448,"state":"open","locked":false,"title":"399 feature toggle","user":{"login":"seanmarcia","id":667909,"node_id":"MDQ6VXNlcjY2NzkwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/667909?v=4","gravatar_id":"","url":"https://api.github.com/users/seanmarcia","html_url":"https://github.com/seanmarcia","followers_url":"https://api.github.com/users/seanmarcia/followers","following_url":"https://api.github.com/users/seanmarcia/following{/other_user}","gists_url":"https://api.github.com/users/seanmarcia/gists{/gist_id}","starred_url":"https://api.github.com/users/seanmarcia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanmarcia/subscriptions","organizations_url":"https://api.github.com/users/seanmarcia/orgs","repos_url":"https://api.github.com/users/seanmarcia/repos","events_url":"https://api.github.com/users/seanmarcia/events{/privacy}","received_events_url":"https://api.github.com/users/seanmarcia/received_events","type":"User","site_admin":false},"body":"This resolves #399 \r\n\r\nI've added the `flipper` gem for managing feature toggles. I also put in `flipper-ui` for a nice web based interface for flipper that you can access at `/flipper`. To do so, you need to have environment variables set for `FLIPPER_USERNAME` and `FLIPPER_PASSWORD`. Alternatively, in the `routes.rb` you set the username to `admin` and the password to `password` with the following change:\r\n\r\n```ruby\r\n  flipper_app = Flipper::UI.app(Flipper.instance) do |builder|\r\n    builder.use Rack::Auth::Basic do |username, password|\r\n      username == \"admin\" && password == \"password\"\r\n    end\r\n  end\r\n```\r\n\r\nTo see the feature toggle in action, navigate to `/flipper` and click add feature and put in `new_logo`.\r\n\r\nYou'll see:\r\n![](http://pompeii.gmu.edu/CbVuB.png)\r\n\r\nThen click on the toggle and enable it. You'll see the logo on the dashboard toggle from:\r\n![](http://pompeii.gmu.edu/ar0BD.png)\r\nto\r\n![](http://pompeii.gmu.edu/NSp1t.png)","created_at":"2018-07-04T02:06:04Z","updated_at":"2018-07-04T02:06:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rubyforgood/diaper/pulls/448/commits","review_comments_url":"https://api.github.com/repos/rubyforgood/diaper/pulls/448/comments","review_comment_url":"https://api.github.com/repos/rubyforgood/diaper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rubyforgood/diaper/issues/448/comments","statuses_url":"https://api.github.com/repos/rubyforgood/diaper/statuses/c2c37a6a9ddd23eb169c70ea65b499c5d678e61e","head":{"label":"rubyforgood:399-feature-toggle","ref":"399-feature-toggle","sha":"c2c37a6a9ddd23eb169c70ea65b499c5d678e61e","user":{"login":"rubyforgood","id":11573263,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNTczMjYz","avatar_url":"https://avatars1.githubusercontent.com/u/11573263?v=4","gravatar_id":"","url":"https://api.github.com/users/rubyforgood","html_url":"https://github.com/rubyforgood","followers_url":"https://api.github.com/users/rubyforgood/followers","following_url":"https://api.github.com/users/rubyforgood/following{/other_user}","gists_url":"https://api.github.com/users/rubyforgood/gists{/gist_id}","starred_url":"https://api.github.com/users/rubyforgood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubyforgood/subscriptions","organizations_url":"https://api.github.com/users/rubyforgood/orgs","repos_url":"https://api.github.com/users/rubyforgood/repos","events_url":"https://api.github.com/users/rubyforgood/events{/privacy}","received_events_url":"https://api.github.com/users/rubyforgood/received_events","type":"Organization","site_admin":false},"repo":{"id":89035461,"node_id":"MDEwOlJlcG9zaXRvcnk4OTAzNTQ2MQ==","name":"diaper","full_name":"rubyforgood/diaper","owner":{"login":"rubyforgood","id":11573263,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNTczMjYz","avatar_url":"https://avatars1.githubusercontent.com/u/11573263?v=4","gravatar_id":"","url":"https://api.github.com/users/rubyforgood","html_url":"https://github.com/rubyforgood","followers_url":"https://api.github.com/users/rubyforgood/followers","following_url":"https://api.github.com/users/rubyforgood/following{/other_user}","gists_url":"https://api.github.com/users/rubyforgood/gists{/gist_id}","starred_url":"https://api.github.com/users/rubyforgood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubyforgood/subscriptions","organizations_url":"https://api.github.com/users/rubyforgood/orgs","repos_url":"https://api.github.com/users/rubyforgood/repos","events_url":"https://api.github.com/users/rubyforgood/events{/privacy}","received_events_url":"https://api.github.com/users/rubyforgood/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rubyforgood/diaper","description":"Diaperbase is an inventory system for diaper banks, to aid them in tracking their inventory and providing statistics about their inventory flows.","fork":false,"url":"https://api.github.com/repos/rubyforgood/diaper","forks_url":"https://api.github.com/repos/rubyforgood/diaper/forks","keys_url":"https://api.github.com/repos/rubyforgood/diaper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubyforgood/diaper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubyforgood/diaper/teams","hooks_url":"https://api.github.com/repos/rubyforgood/diaper/hooks","issue_events_url":"https://api.github.com/repos/rubyforgood/diaper/issues/events{/number}","events_url":"https://api.github.com/repos/rubyforgood/diaper/events","assignees_url":"https://api.github.com/repos/rubyforgood/diaper/assignees{/user}","branches_url":"https://api.github.com/repos/rubyforgood/diaper/branches{/branch}","tags_url":"https://api.github.com/repos/rubyforgood/diaper/tags","blobs_url":"https://api.github.com/repos/rubyforgood/diaper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubyforgood/diaper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubyforgood/diaper/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubyforgood/diaper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubyforgood/diaper/statuses/{sha}","languages_url":"https://api.github.com/repos/rubyforgood/diaper/languages","stargazers_url":"https://api.github.com/repos/rubyforgood/diaper/stargazers","contributors_url":"https://api.github.com/repos/rubyforgood/diaper/contributors","subscribers_url":"https://api.github.com/repos/rubyforgood/diaper/subscribers","subscription_url":"https://api.github.com/repos/rubyforgood/diaper/subscription","commits_url":"https://api.github.com/repos/rubyforgood/diaper/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubyforgood/diaper/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubyforgood/diaper/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubyforgood/diaper/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubyforgood/diaper/contents/{+path}","compare_url":"https://api.github.com/repos/rubyforgood/diaper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubyforgood/diaper/merges","archive_url":"https://api.github.com/repos/rubyforgood/diaper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubyforgood/diaper/downloads","issues_url":"https://api.github.com/repos/rubyforgood/diaper/issues{/number}","pulls_url":"https://api.github.com/repos/rubyforgood/diaper/pulls{/number}","milestones_url":"https://api.github.com/repos/rubyforgood/diaper/milestones{/number}","notifications_url":"https://api.github.com/repos/rubyforgood/diaper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubyforgood/diaper/labels{/name}","releases_url":"https://api.github.com/repos/rubyforgood/diaper/releases{/id}","deployments_url":"https://api.github.com/repos/rubyforgood/diaper/deployments","created_at":"2017-04-22T01:11:13Z","updated_at":"2018-06-30T21:36:07Z","pushed_at":"2018-07-04T01:56:27Z","git_url":"git://github.com/rubyforgood/diaper.git","ssh_url":"git@github.com:rubyforgood/diaper.git","clone_url":"https://github.com/rubyforgood/diaper.git","svn_url":"https://github.com/rubyforgood/diaper","homepage":"http://diaperbase.org/","size":20427,"stargazers_count":25,"watchers_count":25,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"archived":false,"open_issues_count":40,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":36,"open_issues":40,"watchers":25,"default_branch":"master"}},"base":{"label":"rubyforgood:master","ref":"master","sha":"3ac6f77343823d93ffc0b41d0ba88b21f2b2adb8","user":{"login":"rubyforgood","id":11573263,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNTczMjYz","avatar_url":"https://avatars1.githubusercontent.com/u/11573263?v=4","gravatar_id":"","url":"https://api.github.com/users/rubyforgood","html_url":"https://github.com/rubyforgood","followers_url":"https://api.github.com/users/rubyforgood/followers","following_url":"https://api.github.com/users/rubyforgood/following{/other_user}","gists_url":"https://api.github.com/users/rubyforgood/gists{/gist_id}","starred_url":"https://api.github.com/users/rubyforgood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubyforgood/subscriptions","organizations_url":"https://api.github.com/users/rubyforgood/orgs","repos_url":"https://api.github.com/users/rubyforgood/repos","events_url":"https://api.github.com/users/rubyforgood/events{/privacy}","received_events_url":"https://api.github.com/users/rubyforgood/received_events","type":"Organization","site_admin":false},"repo":{"id":89035461,"node_id":"MDEwOlJlcG9zaXRvcnk4OTAzNTQ2MQ==","name":"diaper","full_name":"rubyforgood/diaper","owner":{"login":"rubyforgood","id":11573263,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNTczMjYz","avatar_url":"https://avatars1.githubusercontent.com/u/11573263?v=4","gravatar_id":"","url":"https://api.github.com/users/rubyforgood","html_url":"https://github.com/rubyforgood","followers_url":"https://api.github.com/users/rubyforgood/followers","following_url":"https://api.github.com/users/rubyforgood/following{/other_user}","gists_url":"https://api.github.com/users/rubyforgood/gists{/gist_id}","starred_url":"https://api.github.com/users/rubyforgood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubyforgood/subscriptions","organizations_url":"https://api.github.com/users/rubyforgood/orgs","repos_url":"https://api.github.com/users/rubyforgood/repos","events_url":"https://api.github.com/users/rubyforgood/events{/privacy}","received_events_url":"https://api.github.com/users/rubyforgood/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rubyforgood/diaper","description":"Diaperbase is an inventory system for diaper banks, to aid them in tracking their inventory and providing statistics about their inventory flows.","fork":false,"url":"https://api.github.com/repos/rubyforgood/diaper","forks_url":"https://api.github.com/repos/rubyforgood/diaper/forks","keys_url":"https://api.github.com/repos/rubyforgood/diaper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubyforgood/diaper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubyforgood/diaper/teams","hooks_url":"https://api.github.com/repos/rubyforgood/diaper/hooks","issue_events_url":"https://api.github.com/repos/rubyforgood/diaper/issues/events{/number}","events_url":"https://api.github.com/repos/rubyforgood/diaper/events","assignees_url":"https://api.github.com/repos/rubyforgood/diaper/assignees{/user}","branches_url":"https://api.github.com/repos/rubyforgood/diaper/branches{/branch}","tags_url":"https://api.github.com/repos/rubyforgood/diaper/tags","blobs_url":"https://api.github.com/repos/rubyforgood/diaper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubyforgood/diaper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubyforgood/diaper/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubyforgood/diaper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubyforgood/diaper/statuses/{sha}","languages_url":"https://api.github.com/repos/rubyforgood/diaper/languages","stargazers_url":"https://api.github.com/repos/rubyforgood/diaper/stargazers","contributors_url":"https://api.github.com/repos/rubyforgood/diaper/contributors","subscribers_url":"https://api.github.com/repos/rubyforgood/diaper/subscribers","subscription_url":"https://api.github.com/repos/rubyforgood/diaper/subscription","commits_url":"https://api.github.com/repos/rubyforgood/diaper/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubyforgood/diaper/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubyforgood/diaper/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubyforgood/diaper/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubyforgood/diaper/contents/{+path}","compare_url":"https://api.github.com/repos/rubyforgood/diaper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubyforgood/diaper/merges","archive_url":"https://api.github.com/repos/rubyforgood/diaper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubyforgood/diaper/downloads","issues_url":"https://api.github.com/repos/rubyforgood/diaper/issues{/number}","pulls_url":"https://api.github.com/repos/rubyforgood/diaper/pulls{/number}","milestones_url":"https://api.github.com/repos/rubyforgood/diaper/milestones{/number}","notifications_url":"https://api.github.com/repos/rubyforgood/diaper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubyforgood/diaper/labels{/name}","releases_url":"https://api.github.com/repos/rubyforgood/diaper/releases{/id}","deployments_url":"https://api.github.com/repos/rubyforgood/diaper/deployments","created_at":"2017-04-22T01:11:13Z","updated_at":"2018-06-30T21:36:07Z","pushed_at":"2018-07-04T01:56:27Z","git_url":"git://github.com/rubyforgood/diaper.git","ssh_url":"git@github.com:rubyforgood/diaper.git","clone_url":"https://github.com/rubyforgood/diaper.git","svn_url":"https://github.com/rubyforgood/diaper","homepage":"http://diaperbase.org/","size":20427,"stargazers_count":25,"watchers_count":25,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"archived":false,"open_issues_count":40,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":36,"open_issues":40,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rubyforgood/diaper/pulls/448"},"html":{"href":"https://github.com/rubyforgood/diaper/pull/448"},"issue":{"href":"https://api.github.com/repos/rubyforgood/diaper/issues/448"},"comments":{"href":"https://api.github.com/repos/rubyforgood/diaper/issues/448/comments"},"review_comments":{"href":"https://api.github.com/repos/rubyforgood/diaper/pulls/448/comments"},"review_comment":{"href":"https://api.github.com/repos/rubyforgood/diaper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rubyforgood/diaper/pulls/448/commits"},"statuses":{"href":"https://api.github.com/repos/rubyforgood/diaper/statuses/c2c37a6a9ddd23eb169c70ea65b499c5d678e61e"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":206,"deletions":1,"changed_files":9}}
{"actor":{"display_login":"seanmarcia"}}