{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/product-greg/pulls/comments/76008094","id":76008094,"diff_hunk":"@@ -169,8 +169,29 @@ asset.manager = function(ctx) {\n             return asset.name;\n         },\n         getVersion: function(asset) {\n+            if (!asset.attributes[\"version\"]) {\n+                var subPaths = asset.path.split('/');\n+                asset.version = subPaths[subPaths.length - 2];\n+                asset.attributes[\"version\"] = asset.version;","path":"modules/es-extensions/store/asset/wadl/asset.js","position":7,"original_position":7,"commit_id":"4975d34a249db77c52043f828e5f6649c9fd827a","original_commit_id":"4975d34a249db77c52043f828e5f6649c9fd827a","user":{"login":"splinter","id":53738,"avatar_url":"https://avatars.githubusercontent.com/u/53738?v=3","gravatar_id":"","url":"https://api.github.com/users/splinter","html_url":"https://github.com/splinter","followers_url":"https://api.github.com/users/splinter/followers","following_url":"https://api.github.com/users/splinter/following{/other_user}","gists_url":"https://api.github.com/users/splinter/gists{/gist_id}","starred_url":"https://api.github.com/users/splinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/splinter/subscriptions","organizations_url":"https://api.github.com/users/splinter/orgs","repos_url":"https://api.github.com/users/splinter/repos","events_url":"https://api.github.com/users/splinter/events{/privacy}","received_events_url":"https://api.github.com/users/splinter/received_events","type":"User","site_admin":false},"body":"we can write this as follows in order to be consistent with the rest of the code base:\r\n\r\nasset.attributes.version = asset.version","created_at":"2016-08-24T07:42:12Z","updated_at":"2016-08-24T07:42:12Z","html_url":"https://github.com/wso2/product-greg/pull/482#discussion_r76008094","pull_request_url":"https://api.github.com/repos/wso2/product-greg/pulls/482","_links":{"self":{"href":"https://api.github.com/repos/wso2/product-greg/pulls/comments/76008094"},"html":{"href":"https://github.com/wso2/product-greg/pull/482#discussion_r76008094"},"pull_request":{"href":"https://api.github.com/repos/wso2/product-greg/pulls/482"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/product-greg/pulls/482","id":59187116,"html_url":"https://github.com/wso2/product-greg/pull/482","diff_url":"https://github.com/wso2/product-greg/pull/482.diff","patch_url":"https://github.com/wso2/product-greg/pull/482.patch","issue_url":"https://api.github.com/repos/wso2/product-greg/issues/482","number":482,"state":"closed","locked":false,"title":"REGISTRY-3235 - Fix for Asset details is not working for WSDL and XSD","user":{"login":"mushthaq33","id":15009816,"avatar_url":"https://avatars.githubusercontent.com/u/15009816?v=3","gravatar_id":"","url":"https://api.github.com/users/mushthaq33","html_url":"https://github.com/mushthaq33","followers_url":"https://api.github.com/users/mushthaq33/followers","following_url":"https://api.github.com/users/mushthaq33/following{/other_user}","gists_url":"https://api.github.com/users/mushthaq33/gists{/gist_id}","starred_url":"https://api.github.com/users/mushthaq33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mushthaq33/subscriptions","organizations_url":"https://api.github.com/users/mushthaq33/orgs","repos_url":"https://api.github.com/users/mushthaq33/repos","events_url":"https://api.github.com/users/mushthaq33/events{/privacy}","received_events_url":"https://api.github.com/users/mushthaq33/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-12T15:25:56Z","updated_at":"2016-08-24T07:42:12Z","closed_at":"2016-02-14T05:43:17Z","merged_at":"2016-02-14T05:43:17Z","merge_commit_sha":"21fc8b034ba499eab125ed8fc79ba6286c72fd04","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/wso2/product-greg/pulls/482/commits","review_comments_url":"https://api.github.com/repos/wso2/product-greg/pulls/482/comments","review_comment_url":"https://api.github.com/repos/wso2/product-greg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/product-greg/issues/482/comments","statuses_url":"https://api.github.com/repos/wso2/product-greg/statuses/4975d34a249db77c52043f828e5f6649c9fd827a","head":{"label":"mushthaq33:branch-fid","ref":"branch-fid","sha":"4975d34a249db77c52043f828e5f6649c9fd827a","user":{"login":"mushthaq33","id":15009816,"avatar_url":"https://avatars.githubusercontent.com/u/15009816?v=3","gravatar_id":"","url":"https://api.github.com/users/mushthaq33","html_url":"https://github.com/mushthaq33","followers_url":"https://api.github.com/users/mushthaq33/followers","following_url":"https://api.github.com/users/mushthaq33/following{/other_user}","gists_url":"https://api.github.com/users/mushthaq33/gists{/gist_id}","starred_url":"https://api.github.com/users/mushthaq33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mushthaq33/subscriptions","organizations_url":"https://api.github.com/users/mushthaq33/orgs","repos_url":"https://api.github.com/users/mushthaq33/repos","events_url":"https://api.github.com/users/mushthaq33/events{/privacy}","received_events_url":"https://api.github.com/users/mushthaq33/received_events","type":"User","site_admin":false},"repo":{"id":43799135,"name":"product-greg","full_name":"mushthaq33/product-greg","owner":{"login":"mushthaq33","id":15009816,"avatar_url":"https://avatars.githubusercontent.com/u/15009816?v=3","gravatar_id":"","url":"https://api.github.com/users/mushthaq33","html_url":"https://github.com/mushthaq33","followers_url":"https://api.github.com/users/mushthaq33/followers","following_url":"https://api.github.com/users/mushthaq33/following{/other_user}","gists_url":"https://api.github.com/users/mushthaq33/gists{/gist_id}","starred_url":"https://api.github.com/users/mushthaq33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mushthaq33/subscriptions","organizations_url":"https://api.github.com/users/mushthaq33/orgs","repos_url":"https://api.github.com/users/mushthaq33/repos","events_url":"https://api.github.com/users/mushthaq33/events{/privacy}","received_events_url":"https://api.github.com/users/mushthaq33/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mushthaq33/product-greg","description":"","fork":true,"url":"https://api.github.com/repos/mushthaq33/product-greg","forks_url":"https://api.github.com/repos/mushthaq33/product-greg/forks","keys_url":"https://api.github.com/repos/mushthaq33/product-greg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mushthaq33/product-greg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mushthaq33/product-greg/teams","hooks_url":"https://api.github.com/repos/mushthaq33/product-greg/hooks","issue_events_url":"https://api.github.com/repos/mushthaq33/product-greg/issues/events{/number}","events_url":"https://api.github.com/repos/mushthaq33/product-greg/events","assignees_url":"https://api.github.com/repos/mushthaq33/product-greg/assignees{/user}","branches_url":"https://api.github.com/repos/mushthaq33/product-greg/branches{/branch}","tags_url":"https://api.github.com/repos/mushthaq33/product-greg/tags","blobs_url":"https://api.github.com/repos/mushthaq33/product-greg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mushthaq33/product-greg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mushthaq33/product-greg/git/refs{/sha}","trees_url":"https://api.github.com/repos/mushthaq33/product-greg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mushthaq33/product-greg/statuses/{sha}","languages_url":"https://api.github.com/repos/mushthaq33/product-greg/languages","stargazers_url":"https://api.github.com/repos/mushthaq33/product-greg/stargazers","contributors_url":"https://api.github.com/repos/mushthaq33/product-greg/contributors","subscribers_url":"https://api.github.com/repos/mushthaq33/product-greg/subscribers","subscription_url":"https://api.github.com/repos/mushthaq33/product-greg/subscription","commits_url":"https://api.github.com/repos/mushthaq33/product-greg/commits{/sha}","git_commits_url":"https://api.github.com/repos/mushthaq33/product-greg/git/commits{/sha}","comments_url":"https://api.github.com/repos/mushthaq33/product-greg/comments{/number}","issue_comment_url":"https://api.github.com/repos/mushthaq33/product-greg/issues/comments{/number}","contents_url":"https://api.github.com/repos/mushthaq33/product-greg/contents/{+path}","compare_url":"https://api.github.com/repos/mushthaq33/product-greg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mushthaq33/product-greg/merges","archive_url":"https://api.github.com/repos/mushthaq33/product-greg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mushthaq33/product-greg/downloads","issues_url":"https://api.github.com/repos/mushthaq33/product-greg/issues{/number}","pulls_url":"https://api.github.com/repos/mushthaq33/product-greg/pulls{/number}","milestones_url":"https://api.github.com/repos/mushthaq33/product-greg/milestones{/number}","notifications_url":"https://api.github.com/repos/mushthaq33/product-greg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mushthaq33/product-greg/labels{/name}","releases_url":"https://api.github.com/repos/mushthaq33/product-greg/releases{/id}","deployments_url":"https://api.github.com/repos/mushthaq33/product-greg/deployments","created_at":"2015-10-07T06:39:31Z","updated_at":"2015-10-07T06:40:03Z","pushed_at":"2016-08-23T13:38:27Z","git_url":"git://github.com/mushthaq33/product-greg.git","ssh_url":"git@github.com:mushthaq33/product-greg.git","clone_url":"https://github.com/mushthaq33/product-greg.git","svn_url":"https://github.com/mushthaq33/product-greg","homepage":null,"size":37769,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"wso2:master","ref":"master","sha":"36617acb4b5f3b0c934653283c72dcbb9927bff6","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":16977759,"name":"product-greg","full_name":"wso2/product-greg","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/product-greg","description":"Welcome to the WSO2 Governance Registry source code! For info on working with the WSO2 Governance Registry repository and contributing code, click the link below.","fork":false,"url":"https://api.github.com/repos/wso2/product-greg","forks_url":"https://api.github.com/repos/wso2/product-greg/forks","keys_url":"https://api.github.com/repos/wso2/product-greg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/product-greg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/product-greg/teams","hooks_url":"https://api.github.com/repos/wso2/product-greg/hooks","issue_events_url":"https://api.github.com/repos/wso2/product-greg/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/product-greg/events","assignees_url":"https://api.github.com/repos/wso2/product-greg/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/product-greg/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/product-greg/tags","blobs_url":"https://api.github.com/repos/wso2/product-greg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/product-greg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/product-greg/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/product-greg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/product-greg/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/product-greg/languages","stargazers_url":"https://api.github.com/repos/wso2/product-greg/stargazers","contributors_url":"https://api.github.com/repos/wso2/product-greg/contributors","subscribers_url":"https://api.github.com/repos/wso2/product-greg/subscribers","subscription_url":"https://api.github.com/repos/wso2/product-greg/subscription","commits_url":"https://api.github.com/repos/wso2/product-greg/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/product-greg/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/product-greg/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/product-greg/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/product-greg/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/product-greg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/product-greg/merges","archive_url":"https://api.github.com/repos/wso2/product-greg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/product-greg/downloads","issues_url":"https://api.github.com/repos/wso2/product-greg/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/product-greg/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/product-greg/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/product-greg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/product-greg/labels{/name}","releases_url":"https://api.github.com/repos/wso2/product-greg/releases{/id}","deployments_url":"https://api.github.com/repos/wso2/product-greg/deployments","created_at":"2014-02-19T08:15:10Z","updated_at":"2016-07-17T11:57:13Z","pushed_at":"2016-08-23T13:38:28Z","git_url":"git://github.com/wso2/product-greg.git","ssh_url":"git@github.com:wso2/product-greg.git","clone_url":"https://github.com/wso2/product-greg.git","svn_url":"https://github.com/wso2/product-greg","homepage":"http://wso2.github.io/","size":39209,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":72,"mirror_url":null,"open_issues_count":31,"forks":72,"open_issues":31,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/product-greg/pulls/482"},"html":{"href":"https://github.com/wso2/product-greg/pull/482"},"issue":{"href":"https://api.github.com/repos/wso2/product-greg/issues/482"},"comments":{"href":"https://api.github.com/repos/wso2/product-greg/issues/482/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/product-greg/pulls/482/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/product-greg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/product-greg/pulls/482/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/product-greg/statuses/4975d34a249db77c52043f828e5f6649c9fd827a"}}}}
{"actor":{"display_login":"splinter"}}