{"action":"created","issue":{"url":"https://api.github.com/repos/OData/WebApi/issues/803","repository_url":"https://api.github.com/repos/OData/WebApi","labels_url":"https://api.github.com/repos/OData/WebApi/issues/803/labels{/name}","comments_url":"https://api.github.com/repos/OData/WebApi/issues/803/comments","events_url":"https://api.github.com/repos/OData/WebApi/issues/803/events","html_url":"https://github.com/OData/WebApi/issues/803","id":174595991,"number":803,"title":"was issue 170 fixed in the nuget package or not","user":{"login":"figuerres","id":4421301,"avatar_url":"https://avatars.githubusercontent.com/u/4421301?v=3","gravatar_id":"","url":"https://api.github.com/users/figuerres","html_url":"https://github.com/figuerres","followers_url":"https://api.github.com/users/figuerres/followers","following_url":"https://api.github.com/users/figuerres/following{/other_user}","gists_url":"https://api.github.com/users/figuerres/gists{/gist_id}","starred_url":"https://api.github.com/users/figuerres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/figuerres/subscriptions","organizations_url":"https://api.github.com/users/figuerres/orgs","repos_url":"https://api.github.com/users/figuerres/repos","events_url":"https://api.github.com/users/figuerres/events{/privacy}","received_events_url":"https://api.github.com/users/figuerres/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OData/WebApi/labels/customer%20ask","name":"customer ask","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/OData/WebApi/milestones/17","html_url":"https://github.com/OData/WebApi/milestones/v6.0","labels_url":"https://api.github.com/repos/OData/WebApi/milestones/17/labels","id":1628172,"number":17,"title":"v6.0","description":"Breaking release of OData/WebApi","creator":{"login":"VikingsFan","id":5082288,"avatar_url":"https://avatars.githubusercontent.com/u/5082288?v=3","gravatar_id":"","url":"https://api.github.com/users/VikingsFan","html_url":"https://github.com/VikingsFan","followers_url":"https://api.github.com/users/VikingsFan/followers","following_url":"https://api.github.com/users/VikingsFan/following{/other_user}","gists_url":"https://api.github.com/users/VikingsFan/gists{/gist_id}","starred_url":"https://api.github.com/users/VikingsFan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VikingsFan/subscriptions","organizations_url":"https://api.github.com/users/VikingsFan/orgs","repos_url":"https://api.github.com/users/VikingsFan/repos","events_url":"https://api.github.com/users/VikingsFan/events{/privacy}","received_events_url":"https://api.github.com/users/VikingsFan/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":12,"state":"open","created_at":"2016-03-08T07:21:52Z","updated_at":"2016-09-06T00:32:46Z","due_on":"2016-07-30T16:00:00Z","closed_at":null},"comments":10,"created_at":"2016-09-01T18:41:58Z","updated_at":"2016-09-12T00:31:59Z","closed_at":null,"body":"I see a closed issue but I can not tell if the fix was put into the released code:\r\nODataMediaTypeFormatter is throwing a SerializationException when SingleResult.Create takes in a query that returns an empty result. #170 \r\n\r\nI am looking at the source and I do not see this fix in the code so why was it closed if it has not been fixed ??\r\n\r\nif it has not been fixed can someone please clarify how to fix this?\r\ndo we need to use the nugget source and patch it or can we add the fix to a working web service ?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/OData/WebApi/issues/comments/246215441","html_url":"https://github.com/OData/WebApi/issues/803#issuecomment-246215441","issue_url":"https://api.github.com/repos/OData/WebApi/issues/803","id":246215441,"user":{"login":"chinadragon0515","id":12759740,"avatar_url":"https://avatars.githubusercontent.com/u/12759740?v=3","gravatar_id":"","url":"https://api.github.com/users/chinadragon0515","html_url":"https://github.com/chinadragon0515","followers_url":"https://api.github.com/users/chinadragon0515/followers","following_url":"https://api.github.com/users/chinadragon0515/following{/other_user}","gists_url":"https://api.github.com/users/chinadragon0515/gists{/gist_id}","starred_url":"https://api.github.com/users/chinadragon0515/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chinadragon0515/subscriptions","organizations_url":"https://api.github.com/users/chinadragon0515/orgs","repos_url":"https://api.github.com/users/chinadragon0515/repos","events_url":"https://api.github.com/users/chinadragon0515/events{/privacy}","received_events_url":"https://api.github.com/users/chinadragon0515/received_events","type":"User","site_admin":false},"created_at":"2016-09-12T00:31:59Z","updated_at":"2016-09-12T00:31:59Z","body":"@figuerres \r\n1. When you said authorizing user access to each method, do you mean action/function of OData or you mean each action in controller class. In restier, we expose several authorizer which you can implement and register as DI service to controller the method access like IOperationAuthorizer. If I have more details, I can comments more.\r\n\r\n2. How you pass the user ID now? do you get via Thread.CurrentPrincipal? In RESTier, you can do the similar things, and the way you set the value for who created and who updated, you can implement IChangeSetInitializer or extends ChangeSetInitializer to set additional properties into the data modification items.\r\n\r\n3. For delete,you can override IChangeSetInitializer too, and when the action is remove, do not call set.Remove(resource), but update some properties.\r\n\r\nIn general, RESTier allows user to customize any logic with DependencyInjection as most services in RESTier can register as DI service. \r\n\r\nAnd in future, it you meet issue with RESTier, you can open issue in RESTier repository, I always response to any request in time."}}
{"actor":{"display_login":"chinadragon0515"}}