{"action":"opened","number":397,"pull_request":{"url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/pulls/397","id":38014579,"html_url":"https://github.com/pentaho/pentaho-platform-plugin-common-ui/pull/397","diff_url":"https://github.com/pentaho/pentaho-platform-plugin-common-ui/pull/397.diff","patch_url":"https://github.com/pentaho/pentaho-platform-plugin-common-ui/pull/397.patch","issue_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/issues/397","number":397,"state":"open","locked":false,"title":"[BACKLOG-2542][BACKLOG-2548][BACKLOG-2553][BACKLOG-2568][BACKLOG-2569] Various issues.","user":{"login":"dcleao","id":284983,"avatar_url":"https://avatars.githubusercontent.com/u/284983?v=3","gravatar_id":"","url":"https://api.github.com/users/dcleao","html_url":"https://github.com/dcleao","followers_url":"https://api.github.com/users/dcleao/followers","following_url":"https://api.github.com/users/dcleao/following{/other_user}","gists_url":"https://api.github.com/users/dcleao/gists{/gist_id}","starred_url":"https://api.github.com/users/dcleao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcleao/subscriptions","organizations_url":"https://api.github.com/users/dcleao/orgs","repos_url":"https://api.github.com/users/dcleao/repos","events_url":"https://api.github.com/users/dcleao/events{/privacy}","received_events_url":"https://api.github.com/users/dcleao/received_events","type":"User","site_admin":false},"body":"This PR should not be merged until the accompanying Analyzer PR can be merged as well.\r\n\r\nEven then, plugins like \"geo\" and \"12 days of vizs\" will stop working, for some time, until they're updated to conform with the latest VisualAPI changes.\r\n\r\n@pamval please review.\r\n\r\nGeneral Common-UI supporting changes\r\n------------------------------------\r\n* \"config/context.js\" — removed duplicate requireCfg variable declaration (already present in requireCfgRaw.js)\r\n* Fixed configuration of \"require-css\" plugin\r\n* Removed \"common-ui/\" prefix from \"es6-promise-shim\", as this is, arguably, an universal name for an universal behavior\r\n* \"pentaho/common/propertiesPanel/Configuration\" (now, also, the Visual API EditModel) — added itemsById map so that byId method is generally faster\r\n* \"pentaho/common/propertiesPanel/Panel\" — remove `Panel#propUIs` instantiation from the prototype to avoid errors; formatting.\r\n* In \"panelSpec.js\",  fixed undesired global variable\r\n\r\nVisual API\r\n----------\r\n* Renamed VizAPI to VisualAPI, \"Viz*\" to \"Visual*\" (much less cryptic that zs all around)\r\n* Renamed Visual API module id from \"common-ui/vizapi\" to \"pentaho/visual\" (backwards compatible)!\r\n* Renamed most VisualAPI _module ids_ to take advantage of their folder names;\r\n  actual class/interface names (as documented) remain complete names like `VisualEvents` or `VisualTypeRegistry`; examples:\r\n   * \"common-ui/vizapi/eventsManager\" -> \"pentaho/visual/events\"\r\n   * \"common-ui/vizapi/vizTypeRegistry\" -> \"pentaho/visual/type/registry\"\r\n   * \"common-ui/vizapi/colorPaletteRegistry\" -> \"pentaho/visual/color/paletteRegistry\"\r\n   * ...\r\n* Reorganized docs with the creation of the annexed \"_doc\" folders and \"_doc.js\" files;\r\n  \"_doc\" folders allow dropping the suffixes \".doc.js\" of documentation-only files and, also, focusing on code files in the main folders.\r\n* [BACKLOG-2553](http://jira.pentaho.com/browse/BACKLOG-2553) Configuration\r\n   * allows configuring visualizations, for all or for specific sets of containers\r\n   * enabled/disabled\r\n   * \"direct\" options for the underlying graphical libraries (pass-through properties)\r\n   * `IVisualTypeConfiguration#translateEditorProperties` adapts container options to visualization options\r\n   * main VisualAPI configuration file that can be freely changed by the user\r\n     (at resources/web/vizapi/config.js\")\r\n   * Any number of `IVisualApiConfiguration` can be service-registered, allowing for distributed configuration scenarios (configurations can be provided either by the container, the visualization or, centrally, by the VisualAPI config itself)\r\n* [BACKLOG-2568](http://jira.pentaho.com/browse/BACKLOG-2568) Design Hooks - Feature\r\n   * Now supports `IVizType#updateEditModel`\r\n      * propertiesPanel/Configuration (now, also, the Visual API EditModel) — added GemBar#value property getter to match the VisualAPI's `IVisualRoleRequirement` interface\r\n   * Now supports `IVisualTypeConfiguration#translateEditorProperties` (see Configuration story)\r\n   * Support for editors is provided by the new \"pentaho/visual/editor/utils\" module\r\n   * Analyzer's `VizHelper#canRefreshModel` no longer needed\r\n   * Analyzer's `VizHelper#generateOptionsFromAnalyzerState` no longer needed\r\n   * Analyzer's `VizConfig#updateProperties` no longer needed\r\n* [BACKLOG-2569](http://jira.pentaho.com/browse/BACKLOG-2569) Design Hooks - Spread\r\n   * Updated the CCC and Sample visualizations visual types and configurations\r\n* [BACKLOG-2542](http://jira.pentaho.com/browse/BACKLOG-2542) Visual mapping options are now being passed to the visualization\r\n  * Still not being handled for printing, and CCC wrapper is still not taking advantage of the new options\r\n* [BACKLOG-2548](http://jira.pentaho.com/browse/BACKLOG-2548) VizController - Refactor\r\n  * Repurposed and renamed the `VizController` to `VisualWrapper`; module id is \"pentaho/visual/Wrapper\"\r\n  * No longer has a \"controller\" role, but simply that of making it easier to instantiate and comply with the `IVisual` contract and of switching between visual types.\r\n  * Moved all static color methods to a new module \"pentaho/visual/color/utils\"\r\n  * New method `VisualWrapper#save` that integrates with `IVisual#getState` to produce a complete and up-to-date `IVisualSpec`.\r\n  * Removed not used or rarely used features (propMaps, needsColorGradient, metrics, palette), providing alternatives for actually used ones (metrics and palette).\r\n* Created private (and undocumented, and directly untested) \"pentaho/visual/_utils\" module for small helper functions used throughout the VisualAPI modules.\r\n* Unit tests and documentation for all of the new public modules","created_at":"2015-06-18T14:47:06Z","updated_at":"2015-06-18T14:47:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/pulls/397/commits","review_comments_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/pulls/397/comments","review_comment_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/issues/397/comments","statuses_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/statuses/a39da9f6fd8f63012c02c3b28b4de71f23335c08","head":{"label":"dcleao:BACKLOG-2548","ref":"BACKLOG-2548","sha":"a39da9f6fd8f63012c02c3b28b4de71f23335c08","user":{"login":"dcleao","id":284983,"avatar_url":"https://avatars.githubusercontent.com/u/284983?v=3","gravatar_id":"","url":"https://api.github.com/users/dcleao","html_url":"https://github.com/dcleao","followers_url":"https://api.github.com/users/dcleao/followers","following_url":"https://api.github.com/users/dcleao/following{/other_user}","gists_url":"https://api.github.com/users/dcleao/gists{/gist_id}","starred_url":"https://api.github.com/users/dcleao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcleao/subscriptions","organizations_url":"https://api.github.com/users/dcleao/orgs","repos_url":"https://api.github.com/users/dcleao/repos","events_url":"https://api.github.com/users/dcleao/events{/privacy}","received_events_url":"https://api.github.com/users/dcleao/received_events","type":"User","site_admin":false},"repo":{"id":17474118,"name":"pentaho-platform-plugin-common-ui","full_name":"dcleao/pentaho-platform-plugin-common-ui","owner":{"login":"dcleao","id":284983,"avatar_url":"https://avatars.githubusercontent.com/u/284983?v=3","gravatar_id":"","url":"https://api.github.com/users/dcleao","html_url":"https://github.com/dcleao","followers_url":"https://api.github.com/users/dcleao/followers","following_url":"https://api.github.com/users/dcleao/following{/other_user}","gists_url":"https://api.github.com/users/dcleao/gists{/gist_id}","starred_url":"https://api.github.com/users/dcleao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcleao/subscriptions","organizations_url":"https://api.github.com/users/dcleao/orgs","repos_url":"https://api.github.com/users/dcleao/repos","events_url":"https://api.github.com/users/dcleao/events{/privacy}","received_events_url":"https://api.github.com/users/dcleao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dcleao/pentaho-platform-plugin-common-ui","description":"","fork":true,"url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui","forks_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/forks","keys_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/teams","hooks_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/hooks","issue_events_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/issues/events{/number}","events_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/events","assignees_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/assignees{/user}","branches_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/branches{/branch}","tags_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/tags","blobs_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/languages","stargazers_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/stargazers","contributors_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/contributors","subscribers_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/subscribers","subscription_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/subscription","commits_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/contents/{+path}","compare_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/merges","archive_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/downloads","issues_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/issues{/number}","pulls_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/labels{/name}","releases_url":"https://api.github.com/repos/dcleao/pentaho-platform-plugin-common-ui/releases{/id}","created_at":"2014-03-06T10:28:52Z","updated_at":"2014-03-14T14:41:22Z","pushed_at":"2015-06-18T10:39:45Z","git_url":"git://github.com/dcleao/pentaho-platform-plugin-common-ui.git","ssh_url":"git@github.com:dcleao/pentaho-platform-plugin-common-ui.git","clone_url":"https://github.com/dcleao/pentaho-platform-plugin-common-ui.git","svn_url":"https://github.com/dcleao/pentaho-platform-plugin-common-ui","homepage":null,"size":13340,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pentaho:master","ref":"master","sha":"8d3fdbb76c4c08cb8d9a70c6d95c046b0c3bf9b8","user":{"login":"pentaho","id":1022787,"avatar_url":"https://avatars.githubusercontent.com/u/1022787?v=3","gravatar_id":"","url":"https://api.github.com/users/pentaho","html_url":"https://github.com/pentaho","followers_url":"https://api.github.com/users/pentaho/followers","following_url":"https://api.github.com/users/pentaho/following{/other_user}","gists_url":"https://api.github.com/users/pentaho/gists{/gist_id}","starred_url":"https://api.github.com/users/pentaho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pentaho/subscriptions","organizations_url":"https://api.github.com/users/pentaho/orgs","repos_url":"https://api.github.com/users/pentaho/repos","events_url":"https://api.github.com/users/pentaho/events{/privacy}","received_events_url":"https://api.github.com/users/pentaho/received_events","type":"Organization","site_admin":false},"repo":{"id":4597815,"name":"pentaho-platform-plugin-common-ui","full_name":"pentaho/pentaho-platform-plugin-common-ui","owner":{"login":"pentaho","id":1022787,"avatar_url":"https://avatars.githubusercontent.com/u/1022787?v=3","gravatar_id":"","url":"https://api.github.com/users/pentaho","html_url":"https://github.com/pentaho","followers_url":"https://api.github.com/users/pentaho/followers","following_url":"https://api.github.com/users/pentaho/following{/other_user}","gists_url":"https://api.github.com/users/pentaho/gists{/gist_id}","starred_url":"https://api.github.com/users/pentaho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pentaho/subscriptions","organizations_url":"https://api.github.com/users/pentaho/orgs","repos_url":"https://api.github.com/users/pentaho/repos","events_url":"https://api.github.com/users/pentaho/events{/privacy}","received_events_url":"https://api.github.com/users/pentaho/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pentaho/pentaho-platform-plugin-common-ui","description":"","fork":false,"url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui","forks_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/forks","keys_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/teams","hooks_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/hooks","issue_events_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/issues/events{/number}","events_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/events","assignees_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/assignees{/user}","branches_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/branches{/branch}","tags_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/tags","blobs_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/languages","stargazers_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/stargazers","contributors_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/contributors","subscribers_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/subscribers","subscription_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/subscription","commits_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/contents/{+path}","compare_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/merges","archive_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/downloads","issues_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/issues{/number}","pulls_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/labels{/name}","releases_url":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/releases{/id}","created_at":"2012-06-08T13:53:13Z","updated_at":"2015-05-08T13:30:58Z","pushed_at":"2015-06-18T14:47:06Z","git_url":"git://github.com/pentaho/pentaho-platform-plugin-common-ui.git","ssh_url":"git@github.com:pentaho/pentaho-platform-plugin-common-ui.git","clone_url":"https://github.com/pentaho/pentaho-platform-plugin-common-ui.git","svn_url":"https://github.com/pentaho/pentaho-platform-plugin-common-ui","homepage":null,"size":18461,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":56,"mirror_url":null,"open_issues_count":2,"forks":56,"open_issues":2,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/pulls/397"},"html":{"href":"https://github.com/pentaho/pentaho-platform-plugin-common-ui/pull/397"},"issue":{"href":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/issues/397"},"comments":{"href":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/issues/397/comments"},"review_comments":{"href":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/pulls/397/comments"},"review_comment":{"href":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/pulls/397/commits"},"statuses":{"href":"https://api.github.com/repos/pentaho/pentaho-platform-plugin-common-ui/statuses/a39da9f6fd8f63012c02c3b28b4de71f23335c08"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":8977,"deletions":8944,"changed_files":95}}