{"action":"created","comment":{"url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/pulls/comments/68840830","id":68840830,"diff_hunk":"@@ -0,0 +1,62 @@\n+# Jenkins JavaScript Extensions\n+\n+Jenkins JavasScript Extensions (JSe) in BlueOcean are handled in the UI by the `@jenkins-cd/js-extensions` module.\n+\n+JSe is based on the extensibility model already established by Jenkins, based on data and views, with the ability to inherit views based on parent data types.\n+\n+JSe `@jenkins-cd/js-extensions` module exports 2 things:\n+- `store` - the `ExtensionStore` instance, which must be initialized\n+- `Renderer` - a React component to conveniently render extensions\n+\n+### Store API\n+\n+The `ExtensionStore` API is very simple, all public methods are asynchronous:\n+\n+- `getExtensions(extensionPointName, [type,] onload)`\n+    This method will async load data and type information as needed, and call the onload handler with a list of extension exports, e.g. the React classes or otherwise exported references.\n+\n+- `getTypeInfo(type, onload)`","path":"js-extensions/EXTENSIONS.md","position":18,"original_position":18,"commit_id":"b6416878891647ae6ac1335acd99e5b6c900566e","original_commit_id":"b6416878891647ae6ac1335acd99e5b6c900566e","user":{"login":"tfennelly","id":429311,"avatar_url":"https://avatars.githubusercontent.com/u/429311?v=3","gravatar_id":"","url":"https://api.github.com/users/tfennelly","html_url":"https://github.com/tfennelly","followers_url":"https://api.github.com/users/tfennelly/followers","following_url":"https://api.github.com/users/tfennelly/following{/other_user}","gists_url":"https://api.github.com/users/tfennelly/gists{/gist_id}","starred_url":"https://api.github.com/users/tfennelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfennelly/subscriptions","organizations_url":"https://api.github.com/users/tfennelly/orgs","repos_url":"https://api.github.com/users/tfennelly/repos","events_url":"https://api.github.com/users/tfennelly/events{/privacy}","received_events_url":"https://api.github.com/users/tfennelly/received_events","type":"User","site_admin":false},"body":"Does it really expose `getTypeInfo`? Does it need to? I'd think that should be a separate \"Classes\" api that extensions depends on.","created_at":"2016-06-28T20:52:16Z","updated_at":"2016-06-28T20:52:16Z","html_url":"https://github.com/jenkinsci/blueocean-plugin/pull/291#discussion_r68840830","pull_request_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/pulls/291","_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/blueocean-plugin/pulls/comments/68840830"},"html":{"href":"https://github.com/jenkinsci/blueocean-plugin/pull/291#discussion_r68840830"},"pull_request":{"href":"https://api.github.com/repos/jenkinsci/blueocean-plugin/pulls/291"}}},"pull_request":{"url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/pulls/291","id":75009743,"html_url":"https://github.com/jenkinsci/blueocean-plugin/pull/291","diff_url":"https://github.com/jenkinsci/blueocean-plugin/pull/291.diff","patch_url":"https://github.com/jenkinsci/blueocean-plugin/pull/291.patch","issue_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/issues/291","number":291,"state":"open","locked":false,"title":"[FIX JENKINS-35990] refactor js extensions","user":{"login":"kzantow","id":3009477,"avatar_url":"https://avatars.githubusercontent.com/u/3009477?v=3","gravatar_id":"","url":"https://api.github.com/users/kzantow","html_url":"https://github.com/kzantow","followers_url":"https://api.github.com/users/kzantow/followers","following_url":"https://api.github.com/users/kzantow/following{/other_user}","gists_url":"https://api.github.com/users/kzantow/gists{/gist_id}","starred_url":"https://api.github.com/users/kzantow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzantow/subscriptions","organizations_url":"https://api.github.com/users/kzantow/orgs","repos_url":"https://api.github.com/users/kzantow/repos","events_url":"https://api.github.com/users/kzantow/events{/privacy}","received_events_url":"https://api.github.com/users/kzantow/received_events","type":"User","site_admin":false},"body":"Related to issue #JENKINS-35990 .\r\n\r\n*NOTE: BUMP js-extensions version to 0.0.16 when finalizing*\r\n\r\nSummary of this pull request: \r\n. Refactor Extension code to ES6 & add tests\r\n. Add support for types & inheritance to extensions\r\n. Add test result component, which uses type inheritance to display JUnit results (I can move this to another PR, but it's directly dependent on this)\r\n\r\nIncluded here (as it is the driving example of how this extensibility feature works):\r\n[![Test Result Video](https://img.youtube.com/vi/QEeSOBCYY4o/0.jpg)](https://www.youtube.com/watch?v=QEeSOBCYY4o)\r\n\r\n@reviewbybees esp. @tfennelly \r\n","created_at":"2016-06-23T19:07:13Z","updated_at":"2016-06-28T20:52:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"21b14ed568a264610b0e4a984c0fec31420e0954","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/pulls/291/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/pulls/291/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/issues/291/comments","statuses_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/statuses/b6416878891647ae6ac1335acd99e5b6c900566e","head":{"label":"kzantow:JENKINS-35990-refactor-js-extensions","ref":"JENKINS-35990-refactor-js-extensions","sha":"b6416878891647ae6ac1335acd99e5b6c900566e","user":{"login":"kzantow","id":3009477,"avatar_url":"https://avatars.githubusercontent.com/u/3009477?v=3","gravatar_id":"","url":"https://api.github.com/users/kzantow","html_url":"https://github.com/kzantow","followers_url":"https://api.github.com/users/kzantow/followers","following_url":"https://api.github.com/users/kzantow/following{/other_user}","gists_url":"https://api.github.com/users/kzantow/gists{/gist_id}","starred_url":"https://api.github.com/users/kzantow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzantow/subscriptions","organizations_url":"https://api.github.com/users/kzantow/orgs","repos_url":"https://api.github.com/users/kzantow/repos","events_url":"https://api.github.com/users/kzantow/events{/privacy}","received_events_url":"https://api.github.com/users/kzantow/received_events","type":"User","site_admin":false},"repo":{"id":60725922,"name":"blueocean-plugin","full_name":"kzantow/blueocean-plugin","owner":{"login":"kzantow","id":3009477,"avatar_url":"https://avatars.githubusercontent.com/u/3009477?v=3","gravatar_id":"","url":"https://api.github.com/users/kzantow","html_url":"https://github.com/kzantow","followers_url":"https://api.github.com/users/kzantow/followers","following_url":"https://api.github.com/users/kzantow/following{/other_user}","gists_url":"https://api.github.com/users/kzantow/gists{/gist_id}","starred_url":"https://api.github.com/users/kzantow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzantow/subscriptions","organizations_url":"https://api.github.com/users/kzantow/orgs","repos_url":"https://api.github.com/users/kzantow/repos","events_url":"https://api.github.com/users/kzantow/events{/privacy}","received_events_url":"https://api.github.com/users/kzantow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kzantow/blueocean-plugin","description":"Blue Ocean UI app","fork":true,"url":"https://api.github.com/repos/kzantow/blueocean-plugin","forks_url":"https://api.github.com/repos/kzantow/blueocean-plugin/forks","keys_url":"https://api.github.com/repos/kzantow/blueocean-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kzantow/blueocean-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kzantow/blueocean-plugin/teams","hooks_url":"https://api.github.com/repos/kzantow/blueocean-plugin/hooks","issue_events_url":"https://api.github.com/repos/kzantow/blueocean-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/kzantow/blueocean-plugin/events","assignees_url":"https://api.github.com/repos/kzantow/blueocean-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/kzantow/blueocean-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/kzantow/blueocean-plugin/tags","blobs_url":"https://api.github.com/repos/kzantow/blueocean-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kzantow/blueocean-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kzantow/blueocean-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/kzantow/blueocean-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kzantow/blueocean-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/kzantow/blueocean-plugin/languages","stargazers_url":"https://api.github.com/repos/kzantow/blueocean-plugin/stargazers","contributors_url":"https://api.github.com/repos/kzantow/blueocean-plugin/contributors","subscribers_url":"https://api.github.com/repos/kzantow/blueocean-plugin/subscribers","subscription_url":"https://api.github.com/repos/kzantow/blueocean-plugin/subscription","commits_url":"https://api.github.com/repos/kzantow/blueocean-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/kzantow/blueocean-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/kzantow/blueocean-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/kzantow/blueocean-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/kzantow/blueocean-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/kzantow/blueocean-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kzantow/blueocean-plugin/merges","archive_url":"https://api.github.com/repos/kzantow/blueocean-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kzantow/blueocean-plugin/downloads","issues_url":"https://api.github.com/repos/kzantow/blueocean-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/kzantow/blueocean-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/kzantow/blueocean-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/kzantow/blueocean-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kzantow/blueocean-plugin/labels{/name}","releases_url":"https://api.github.com/repos/kzantow/blueocean-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/kzantow/blueocean-plugin/deployments","created_at":"2016-06-08T19:46:31Z","updated_at":"2016-06-08T19:46:33Z","pushed_at":"2016-06-28T13:58:55Z","git_url":"git://github.com/kzantow/blueocean-plugin.git","ssh_url":"git@github.com:kzantow/blueocean-plugin.git","clone_url":"https://github.com/kzantow/blueocean-plugin.git","svn_url":"https://github.com/kzantow/blueocean-plugin","homepage":null,"size":6965,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jenkinsci:master","ref":"master","sha":"458a23621dd5b4c8b56075e8b30ec280cac8ee1f","user":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"repo":{"id":50250915,"name":"blueocean-plugin","full_name":"jenkinsci/blueocean-plugin","owner":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jenkinsci/blueocean-plugin","description":"Blue Ocean is a reboot of the Jenkins CI/CD User Experience","fork":false,"url":"https://api.github.com/repos/jenkinsci/blueocean-plugin","forks_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/forks","keys_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/teams","hooks_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/events","assignees_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/tags","blobs_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/subscription","commits_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/merges","archive_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/downloads","issues_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/jenkinsci/blueocean-plugin/deployments","created_at":"2016-01-23T18:02:45Z","updated_at":"2016-06-28T20:25:25Z","pushed_at":"2016-06-28T20:09:16Z","git_url":"git://github.com/jenkinsci/blueocean-plugin.git","ssh_url":"git@github.com:jenkinsci/blueocean-plugin.git","clone_url":"https://github.com/jenkinsci/blueocean-plugin.git","svn_url":"https://github.com/jenkinsci/blueocean-plugin","homepage":"https://jenkins.io/projects/blueocean/","size":7963,"stargazers_count":1081,"watchers_count":1081,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":71,"mirror_url":null,"open_issues_count":7,"forks":71,"open_issues":7,"watchers":1081,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/blueocean-plugin/pulls/291"},"html":{"href":"https://github.com/jenkinsci/blueocean-plugin/pull/291"},"issue":{"href":"https://api.github.com/repos/jenkinsci/blueocean-plugin/issues/291"},"comments":{"href":"https://api.github.com/repos/jenkinsci/blueocean-plugin/issues/291/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/blueocean-plugin/pulls/291/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/blueocean-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/blueocean-plugin/pulls/291/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/blueocean-plugin/statuses/b6416878891647ae6ac1335acd99e5b6c900566e"}}}}
{"actor":{"display_login":"tfennelly"}}