GitHub PullRequestReviewCommentEvent at 2014-08-29 04:09:46
Repository: ub-ria
Actor: DDDBear
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/ecomfe/ub-ria/pulls/comments/16881110","id":16881110,"diff_hunk":"@@ -0,0 +1,81 @@\n+/**\n+ * UB RIA Base\n+ * Copyright 2014 Baidu Inc. All rights reserved.\n+ *\n+ * @file 详情页Model基类\n+ * @class DetailModel\n+ * @extends mvc.SingleEntityModel\n+ * @author otakustay\n+ */\n+define(\n+    function (require) {\n+        var u = require('underscore');\n+        var util = require('er/util');\n+\n+        var exports = {};\n+\n+        /**\n+         * 获取列表子Action的URL\n+         *\n+         * @return {string}\n+         */\n+        exports.getListActionURL = function () {\n+            var query = this.get('url').getQuery();\n+            // 所有给列表用的参数加上`list.`为前缀\n+            var args = {};\n+            u.each(\n+                query,\n+                function (value, key) {\n+                    if (key.indexOf('list.') === 0) {\n+                        args[key.substring(5)] = value;\n+                    }\n+                }\n+            );\n+            if (query.id) {\n+                // 原`id`字段用于详情页，传递给列表页要变为`xxxIds`的查询条件\n+                args[this.entityName + 'Id'] = query.id;\n+            }\n+            var URL = require('er/URL');\n+            var actionURL =\n+                URL.withQuery('/' + this.getListActionName() + '/list', args);\n+            return actionURL + '';\n+        };\n+\n+        exports.getListActionName = function () {","path":"src/mvc/DetailModel.js","position":44,"original_position":44,"commit_id":"bc29d5868139ac02237908dcadac56a952d69a31","original_commit_id":"bc29d5868139ac02237908dcadac56a952d69a31","user":{"login":"DDDBear","id":1559953,"avatar_url":"https://avatars.githubusercontent.com/u/1559953?v=2","gravatar_id":"c32a396a795458c4a2df16d5f488a9b4","url":"https://api.github.com/users/DDDBear","html_url":"https://github.com/DDDBear","followers_url":"https://api.github.com/users/DDDBear/followers","following_url":"https://api.github.com/users/DDDBear/following{/other_user}","gists_url":"https://api.github.com/users/DDDBear/gists{/gist_id}","starred_url":"https://api.github.com/users/DDDBear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DDDBear/subscriptions","organizations_url":"https://api.github.com/users/DDDBear/orgs","repos_url":"https://api.github.com/users/DDDBear/repos","events_url":"https://api.github.com/users/DDDBear/events{/privacy}","received_events_url":"https://api.github.com/users/DDDBear/received_events","type":"User","site_admin":false},"body":"注释","created_at":"2014-08-29T04:09:46Z","updated_at":"2014-08-29T04:09:46Z","html_url":"https://github.com/ecomfe/ub-ria/pull/95#discussion_r16881110","pull_request_url":"https://api.github.com/repos/ecomfe/ub-ria/pulls/95","_links":{"self":{"href":"https://api.github.com/repos/ecomfe/ub-ria/pulls/comments/16881110"},"html":{"href":"https://github.com/ecomfe/ub-ria/pull/95#discussion_r16881110"},"pull_request":{"href":"https://api.github.com/repos/ecomfe/ub-ria/pulls/95"}}},"pull_request":{"url":"https://api.github.com/repos/ecomfe/ub-ria/pulls/95","id":20296058,"html_url":"https://github.com/ecomfe/ub-ria/pull/95","diff_url":"https://github.com/ecomfe/ub-ria/pull/95.diff","patch_url":"https://github.com/ecomfe/ub-ria/pull/95.patch","issue_url":"https://api.github.com/repos/ecomfe/ub-ria/issues/95","number":95,"state":"open","locked":false,"title":"详情页基类","user":{"login":"curarchy","id":4596922,"avatar_url":"https://avatars.githubusercontent.com/u/4596922?v=2","gravatar_id":"f80d1c33b0b059df570c6201a287befc","url":"https://api.github.com/users/curarchy","html_url":"https://github.com/curarchy","followers_url":"https://api.github.com/users/curarchy/followers","following_url":"https://api.github.com/users/curarchy/following{/other_user}","gists_url":"https://api.github.com/users/curarchy/gists{/gist_id}","starred_url":"https://api.github.com/users/curarchy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curarchy/subscriptions","organizations_url":"https://api.github.com/users/curarchy/orgs","repos_url":"https://api.github.com/users/curarchy/repos","events_url":"https://api.github.com/users/curarchy/events{/privacy}","received_events_url":"https://api.github.com/users/curarchy/received_events","type":"User","site_admin":false},"body":"详情页基类","created_at":"2014-08-26T09:09:08Z","updated_at":"2014-08-29T04:09:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9910449c7f50d5626e2fe20f10e3d294bbfc5d1d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ecomfe/ub-ria/pulls/95/commits","review_comments_url":"https://api.github.com/repos/ecomfe/ub-ria/pulls/95/comments","review_comment_url":"https://api.github.com/repos/ecomfe/ub-ria/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ecomfe/ub-ria/issues/95/comments","statuses_url":"https://api.github.com/repos/ecomfe/ub-ria/statuses/bc29d5868139ac02237908dcadac56a952d69a31","head":{"label":"curarchy:detail","ref":"detail","sha":"bc29d5868139ac02237908dcadac56a952d69a31","user":{"login":"curarchy","id":4596922,"avatar_url":"https://avatars.githubusercontent.com/u/4596922?v=2","gravatar_id":"f80d1c33b0b059df570c6201a287befc","url":"https://api.github.com/users/curarchy","html_url":"https://github.com/curarchy","followers_url":"https://api.github.com/users/curarchy/followers","following_url":"https://api.github.com/users/curarchy/following{/other_user}","gists_url":"https://api.github.com/users/curarchy/gists{/gist_id}","starred_url":"https://api.github.com/users/curarchy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curarchy/subscriptions","organizations_url":"https://api.github.com/users/curarchy/orgs","repos_url":"https://api.github.com/users/curarchy/repos","events_url":"https://api.github.com/users/curarchy/events{/privacy}","received_events_url":"https://api.github.com/users/curarchy/received_events","type":"User","site_admin":false},"repo":{"id":21231592,"name":"ub-ria","full_name":"curarchy/ub-ria","owner":{"login":"curarchy","id":4596922,"avatar_url":"https://avatars.githubusercontent.com/u/4596922?v=2","gravatar_id":"f80d1c33b0b059df570c6201a287befc","url":"https://api.github.com/users/curarchy","html_url":"https://github.com/curarchy","followers_url":"https://api.github.com/users/curarchy/followers","following_url":"https://api.github.com/users/curarchy/following{/other_user}","gists_url":"https://api.github.com/users/curarchy/gists{/gist_id}","starred_url":"https://api.github.com/users/curarchy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curarchy/subscriptions","organizations_url":"https://api.github.com/users/curarchy/orgs","repos_url":"https://api.github.com/users/curarchy/repos","events_url":"https://api.github.com/users/curarchy/events{/privacy}","received_events_url":"https://api.github.com/users/curarchy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/curarchy/ub-ria","description":"RIA base for union business","fork":true,"url":"https://api.github.com/repos/curarchy/ub-ria","forks_url":"https://api.github.com/repos/curarchy/ub-ria/forks","keys_url":"https://api.github.com/repos/curarchy/ub-ria/keys{/key_id}","collaborators_url":"https://api.github.com/repos/curarchy/ub-ria/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/curarchy/ub-ria/teams","hooks_url":"https://api.github.com/repos/curarchy/ub-ria/hooks","issue_events_url":"https://api.github.com/repos/curarchy/ub-ria/issues/events{/number}","events_url":"https://api.github.com/repos/curarchy/ub-ria/events","assignees_url":"https://api.github.com/repos/curarchy/ub-ria/assignees{/user}","branches_url":"https://api.github.com/repos/curarchy/ub-ria/branches{/branch}","tags_url":"https://api.github.com/repos/curarchy/ub-ria/tags","blobs_url":"https://api.github.com/repos/curarchy/ub-ria/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/curarchy/ub-ria/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/curarchy/ub-ria/git/refs{/sha}","trees_url":"https://api.github.com/repos/curarchy/ub-ria/git/trees{/sha}","statuses_url":"https://api.github.com/repos/curarchy/ub-ria/statuses/{sha}","languages_url":"https://api.github.com/repos/curarchy/ub-ria/languages","stargazers_url":"https://api.github.com/repos/curarchy/ub-ria/stargazers","contributors_url":"https://api.github.com/repos/curarchy/ub-ria/contributors","subscribers_url":"https://api.github.com/repos/curarchy/ub-ria/subscribers","subscription_url":"https://api.github.com/repos/curarchy/ub-ria/subscription","commits_url":"https://api.github.com/repos/curarchy/ub-ria/commits{/sha}","git_commits_url":"https://api.github.com/repos/curarchy/ub-ria/git/commits{/sha}","comments_url":"https://api.github.com/repos/curarchy/ub-ria/comments{/number}","issue_comment_url":"https://api.github.com/repos/curarchy/ub-ria/issues/comments/{number}","contents_url":"https://api.github.com/repos/curarchy/ub-ria/contents/{+path}","compare_url":"https://api.github.com/repos/curarchy/ub-ria/compare/{base}...{head}","merges_url":"https://api.github.com/repos/curarchy/ub-ria/merges","archive_url":"https://api.github.com/repos/curarchy/ub-ria/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/curarchy/ub-ria/downloads","issues_url":"https://api.github.com/repos/curarchy/ub-ria/issues{/number}","pulls_url":"https://api.github.com/repos/curarchy/ub-ria/pulls{/number}","milestones_url":"https://api.github.com/repos/curarchy/ub-ria/milestones{/number}","notifications_url":"https://api.github.com/repos/curarchy/ub-ria/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/curarchy/ub-ria/labels{/name}","releases_url":"https://api.github.com/repos/curarchy/ub-ria/releases{/id}","created_at":"2014-06-26T07:14:38Z","updated_at":"2014-06-26T04:21:04Z","pushed_at":"2014-08-26T09:07:00Z","git_url":"git://github.com/curarchy/ub-ria.git","ssh_url":"git@github.com:curarchy/ub-ria.git","clone_url":"https://github.com/curarchy/ub-ria.git","svn_url":"https://github.com/curarchy/ub-ria","homepage":null,"size":565,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ecomfe:master","ref":"master","sha":"3155e8ace3744f32a109f652ec9261beb0c98b54","user":{"login":"ecomfe","id":2268460,"avatar_url":"https://avatars.githubusercontent.com/u/2268460?v=2","gravatar_id":"52eec96c6d0e280a2c9b07720b72d13f","url":"https://api.github.com/users/ecomfe","html_url":"https://github.com/ecomfe","followers_url":"https://api.github.com/users/ecomfe/followers","following_url":"https://api.github.com/users/ecomfe/following{/other_user}","gists_url":"https://api.github.com/users/ecomfe/gists{/gist_id}","starred_url":"https://api.github.com/users/ecomfe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecomfe/subscriptions","organizations_url":"https://api.github.com/users/ecomfe/orgs","repos_url":"https://api.github.com/users/ecomfe/repos","events_url":"https://api.github.com/users/ecomfe/events{/privacy}","received_events_url":"https://api.github.com/users/ecomfe/received_events","type":"Organization","site_admin":false},"repo":{"id":15821257,"name":"ub-ria","full_name":"ecomfe/ub-ria","owner":{"login":"ecomfe","id":2268460,"avatar_url":"https://avatars.githubusercontent.com/u/2268460?v=2","gravatar_id":"52eec96c6d0e280a2c9b07720b72d13f","url":"https://api.github.com/users/ecomfe","html_url":"https://github.com/ecomfe","followers_url":"https://api.github.com/users/ecomfe/followers","following_url":"https://api.github.com/users/ecomfe/following{/other_user}","gists_url":"https://api.github.com/users/ecomfe/gists{/gist_id}","starred_url":"https://api.github.com/users/ecomfe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecomfe/subscriptions","organizations_url":"https://api.github.com/users/ecomfe/orgs","repos_url":"https://api.github.com/users/ecomfe/repos","events_url":"https://api.github.com/users/ecomfe/events{/privacy}","received_events_url":"https://api.github.com/users/ecomfe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ecomfe/ub-ria","description":"RIA base for union business","fork":false,"url":"https://api.github.com/repos/ecomfe/ub-ria","forks_url":"https://api.github.com/repos/ecomfe/ub-ria/forks","keys_url":"https://api.github.com/repos/ecomfe/ub-ria/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ecomfe/ub-ria/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ecomfe/ub-ria/teams","hooks_url":"https://api.github.com/repos/ecomfe/ub-ria/hooks","issue_events_url":"https://api.github.com/repos/ecomfe/ub-ria/issues/events{/number}","events_url":"https://api.github.com/repos/ecomfe/ub-ria/events","assignees_url":"https://api.github.com/repos/ecomfe/ub-ria/assignees{/user}","branches_url":"https://api.github.com/repos/ecomfe/ub-ria/branches{/branch}","tags_url":"https://api.github.com/repos/ecomfe/ub-ria/tags","blobs_url":"https://api.github.com/repos/ecomfe/ub-ria/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ecomfe/ub-ria/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ecomfe/ub-ria/git/refs{/sha}","trees_url":"https://api.github.com/repos/ecomfe/ub-ria/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ecomfe/ub-ria/statuses/{sha}","languages_url":"https://api.github.com/repos/ecomfe/ub-ria/languages","stargazers_url":"https://api.github.com/repos/ecomfe/ub-ria/stargazers","contributors_url":"https://api.github.com/repos/ecomfe/ub-ria/contributors","subscribers_url":"https://api.github.com/repos/ecomfe/ub-ria/subscribers","subscription_url":"https://api.github.com/repos/ecomfe/ub-ria/subscription","commits_url":"https://api.github.com/repos/ecomfe/ub-ria/commits{/sha}","git_commits_url":"https://api.github.com/repos/ecomfe/ub-ria/git/commits{/sha}","comments_url":"https://api.github.com/repos/ecomfe/ub-ria/comments{/number}","issue_comment_url":"https://api.github.com/repos/ecomfe/ub-ria/issues/comments/{number}","contents_url":"https://api.github.com/repos/ecomfe/ub-ria/contents/{+path}","compare_url":"https://api.github.com/repos/ecomfe/ub-ria/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ecomfe/ub-ria/merges","archive_url":"https://api.github.com/repos/ecomfe/ub-ria/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ecomfe/ub-ria/downloads","issues_url":"https://api.github.com/repos/ecomfe/ub-ria/issues{/number}","pulls_url":"https://api.github.com/repos/ecomfe/ub-ria/pulls{/number}","milestones_url":"https://api.github.com/repos/ecomfe/ub-ria/milestones{/number}","notifications_url":"https://api.github.com/repos/ecomfe/ub-ria/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ecomfe/ub-ria/labels{/name}","releases_url":"https://api.github.com/repos/ecomfe/ub-ria/releases{/id}","created_at":"2014-01-11T11:15:10Z","updated_at":"2014-08-28T06:04:55Z","pushed_at":"2014-08-28T06:04:54Z","git_url":"git://github.com/ecomfe/ub-ria.git","ssh_url":"git@github.com:ecomfe/ub-ria.git","clone_url":"https://github.com/ecomfe/ub-ria.git","svn_url":"https://github.com/ecomfe/ub-ria","homepage":null,"size":3300,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":9,"mirror_url":null,"open_issues_count":31,"forks":9,"open_issues":31,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ecomfe/ub-ria/pulls/95"},"html":{"href":"https://github.com/ecomfe/ub-ria/pull/95"},"issue":{"href":"https://api.github.com/repos/ecomfe/ub-ria/issues/95"},"comments":{"href":"https://api.github.com/repos/ecomfe/ub-ria/issues/95/comments"},"review_comments":{"href":"https://api.github.com/repos/ecomfe/ub-ria/pulls/95/comments"},"review_comment":{"href":"https://api.github.com/repos/ecomfe/ub-ria/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ecomfe/ub-ria/pulls/95/commits"},"statuses":{"href":"https://api.github.com/repos/ecomfe/ub-ria/statuses/bc29d5868139ac02237908dcadac56a952d69a31"}}}}