{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/1906","labels_url":"https://api.github.com/repos/aspnet/Mvc/issues/1906/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/1906/comments","events_url":"https://api.github.com/repos/aspnet/Mvc/issues/1906/events","html_url":"https://github.com/aspnet/Mvc/pull/1906","id":55773097,"number":1906,"title":"[Fix for #1787] Add Extension Methods to IEnumerable<IOptionDescriptor<object>>","user":{"login":"tonysneed","id":2836367,"avatar_url":"https://avatars.githubusercontent.com/u/2836367?v=3","gravatar_id":"","url":"https://api.github.com/users/tonysneed","html_url":"https://github.com/tonysneed","followers_url":"https://api.github.com/users/tonysneed/followers","following_url":"https://api.github.com/users/tonysneed/following{/other_user}","gists_url":"https://api.github.com/users/tonysneed/gists{/gist_id}","starred_url":"https://api.github.com/users/tonysneed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonysneed/subscriptions","organizations_url":"https://api.github.com/users/tonysneed/orgs","repos_url":"https://api.github.com/users/tonysneed/repos","events_url":"https://api.github.com/users/tonysneed/events{/privacy}","received_events_url":"https://api.github.com/users/tonysneed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-01-28T15:49:15Z","updated_at":"2015-02-04T19:52:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/aspnet/Mvc/pulls/1906","html_url":"https://github.com/aspnet/Mvc/pull/1906","diff_url":"https://github.com/aspnet/Mvc/pull/1906.diff","patch_url":"https://github.com/aspnet/Mvc/pull/1906.patch"},"body":"Addresses Issue #1787 by adding the following extension methods to IEnumerable<IOptionDescriptor<object>>:\r\n* InstanceOf\r\n* InstanceOfOrDefault\r\n* InstancesOf\r\n* RemoveTypesOf\r\n\r\nThese enable easier access for configuring options. For example, to configure the JsonOutputFormatter to preserve references and handle cycles:\r\n```csharp\r\nvar formatter = options.OutputFormatters.InstanceOf<JsonOutputFormatter>();\r\nformatter.SerializerSettings.PreserveReferences = true;\r\n```"},"comment":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/comments/72925786","html_url":"https://github.com/aspnet/Mvc/pull/1906#issuecomment-72925786","issue_url":"https://api.github.com/repos/aspnet/Mvc/issues/1906","id":72925786,"user":{"login":"tonysneed","id":2836367,"avatar_url":"https://avatars.githubusercontent.com/u/2836367?v=3","gravatar_id":"","url":"https://api.github.com/users/tonysneed","html_url":"https://github.com/tonysneed","followers_url":"https://api.github.com/users/tonysneed/followers","following_url":"https://api.github.com/users/tonysneed/following{/other_user}","gists_url":"https://api.github.com/users/tonysneed/gists{/gist_id}","starred_url":"https://api.github.com/users/tonysneed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonysneed/subscriptions","organizations_url":"https://api.github.com/users/tonysneed/orgs","repos_url":"https://api.github.com/users/tonysneed/repos","events_url":"https://api.github.com/users/tonysneed/events{/privacy}","received_events_url":"https://api.github.com/users/tonysneed/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T19:52:51Z","updated_at":"2015-02-04T19:52:51Z","body":"I did a force push, and it totally worked!  The incoming commits are gone and all I have left is a nice clean history with my commits rebased on top of dev. I think I'm starting to get the hang of the PR workflow, and how to bring the branch up-to-date with rebase.\r\n\r\n@rynowak Great tip on `git rebase --skip` for commits that have been superseded by what's already been merged. Especially like the hint re: deleting lines in an interactive rebase. :+1: "}}