{"action":"created","issue":{"url":"https://api.github.com/repos/ControlSystemStudio/cs-studio/issues/1560","labels_url":"https://api.github.com/repos/ControlSystemStudio/cs-studio/issues/1560/labels{/name}","comments_url":"https://api.github.com/repos/ControlSystemStudio/cs-studio/issues/1560/comments","events_url":"https://api.github.com/repos/ControlSystemStudio/cs-studio/issues/1560/events","html_url":"https://github.com/ControlSystemStudio/cs-studio/pull/1560","id":126610216,"number":1560,"title":"Support conversion even if the selection doesn't match the target","user":{"login":"jbobnar","id":5602519,"avatar_url":"https://avatars.githubusercontent.com/u/5602519?v=3","gravatar_id":"","url":"https://api.github.com/users/jbobnar","html_url":"https://github.com/jbobnar","followers_url":"https://api.github.com/users/jbobnar/followers","following_url":"https://api.github.com/users/jbobnar/following{/other_user}","gists_url":"https://api.github.com/users/jbobnar/gists{/gist_id}","starred_url":"https://api.github.com/users/jbobnar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbobnar/subscriptions","organizations_url":"https://api.github.com/users/jbobnar/orgs","repos_url":"https://api.github.com/users/jbobnar/repos","events_url":"https://api.github.com/users/jbobnar/events{/privacy}","received_events_url":"https://api.github.com/users/jbobnar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ControlSystemStudio/cs-studio/milestones/34","html_url":"https://github.com/ControlSystemStudio/cs-studio/milestones/4.3.0%20-%20testing%20(master)","labels_url":"https://api.github.com/repos/ControlSystemStudio/cs-studio/milestones/34/labels","id":1415911,"number":34,"title":"4.3.0 - testing (master)","description":"","creator":{"login":"berryma4","id":854021,"avatar_url":"https://avatars.githubusercontent.com/u/854021?v=3","gravatar_id":"","url":"https://api.github.com/users/berryma4","html_url":"https://github.com/berryma4","followers_url":"https://api.github.com/users/berryma4/followers","following_url":"https://api.github.com/users/berryma4/following{/other_user}","gists_url":"https://api.github.com/users/berryma4/gists{/gist_id}","starred_url":"https://api.github.com/users/berryma4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berryma4/subscriptions","organizations_url":"https://api.github.com/users/berryma4/orgs","repos_url":"https://api.github.com/users/berryma4/repos","events_url":"https://api.github.com/users/berryma4/events{/privacy}","received_events_url":"https://api.github.com/users/berryma4/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":34,"state":"open","created_at":"2015-11-17T14:18:52Z","updated_at":"2016-01-14T22:04:29Z","due_on":"2016-06-30T04:00:00Z","closed_at":null},"comments":1,"created_at":"2016-01-14T09:07:55Z","updated_at":"2016-01-15T15:04:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ControlSystemStudio/cs-studio/pulls/1560","html_url":"https://github.com/ControlSystemStudio/cs-studio/pull/1560","diff_url":"https://github.com/ControlSystemStudio/cs-studio/pull/1560.diff","patch_url":"https://github.com/ControlSystemStudio/cs-studio/pull/1560.patch"},"body":"This fixes a problem if a selection is of type that is an instance of the target type but is not exactly the same class.\r\n\r\nFor example: a selection might be an array of TimestampedPVs (which extends ProcessVariable). The client asks to convert the selection to a ProcessVariable[] array. This should be possible, because the selection is of the requested type. Previously the method returned an empty array. Now it tries to convert. There are of course limitations (details are in the comments)."},"comment":{"url":"https://api.github.com/repos/ControlSystemStudio/cs-studio/issues/comments/171984878","html_url":"https://github.com/ControlSystemStudio/cs-studio/pull/1560#issuecomment-171984878","issue_url":"https://api.github.com/repos/ControlSystemStudio/cs-studio/issues/1560","id":171984878,"user":{"login":"kasemir","id":1932421,"avatar_url":"https://avatars.githubusercontent.com/u/1932421?v=3","gravatar_id":"","url":"https://api.github.com/users/kasemir","html_url":"https://github.com/kasemir","followers_url":"https://api.github.com/users/kasemir/followers","following_url":"https://api.github.com/users/kasemir/following{/other_user}","gists_url":"https://api.github.com/users/kasemir/gists{/gist_id}","starred_url":"https://api.github.com/users/kasemir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasemir/subscriptions","organizations_url":"https://api.github.com/users/kasemir/orgs","repos_url":"https://api.github.com/users/kasemir/repos","events_url":"https://api.github.com/users/kasemir/events{/privacy}","received_events_url":"https://api.github.com/users/kasemir/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T15:04:24Z","updated_at":"2016-01-15T15:04:24Z","body":"OK.\r\nFeel free to add your name as an @author, since you're now also responsible for this hack."}}