{"action":"created","comment":{"url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/pulls/comments/171105418","pull_request_review_id":99900638,"id":171105418,"diff_hunk":"@@ -0,0 +1,41 @@\n+// Copyright 2018, Oracle Corporation and/or its affiliates.  All rights reserved.\n+// Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.\n+\n+package oracle.kubernetes.operator.rest.model;\n+\n+import java.util.List;\n+\n+/**\n+ * UpgradeApplicationsModel describes the \"applications\" input data to the WebLogic application upgrade operation. It's a Map object with its value of a list of application info.\n+ *\n+ * The input data looks like this:\n+ *\n+ *  {\"applications\":[\n+ *   {\"applicationName\": \"app1\",\n+ *    \"patchedLocation\": \"/shared/applications/myApp1v2.ear\",\n+ *    \"backupLocation\": \"/shared/applications/myApp1v1.ear\"},\n+ *   {\"applicationName\": \"app2\",\n+ *    \"patchedLocation\": \"/shared/applications/myApp2v2.ear\",\n+ *    \"backupLocation\": \"/shared/applications/myApp2v1.ear\"}\n+ *   ]}\n+ *\n+ */\n+public class UpgradeApplicationsModel extends LinkContainerModel {\n+\n+  private List<UpgradeApplicationModel> applications;\n+\n+\n+  public List<UpgradeApplicationModel> getApplications() {","path":"src/main/java/oracle/kubernetes/operator/rest/model/UpgradeApplicationsModel.java","position":28,"original_position":28,"commit_id":"5bca86acb459bb1a1e6f97fe8f3aafd9d3378518","original_commit_id":"5bca86acb459bb1a1e6f97fe8f3aafd9d3378518","user":{"login":"rosepan","id":35276096,"avatar_url":"https://avatars1.githubusercontent.com/u/35276096?v=4","gravatar_id":"","url":"https://api.github.com/users/rosepan","html_url":"https://github.com/rosepan","followers_url":"https://api.github.com/users/rosepan/followers","following_url":"https://api.github.com/users/rosepan/following{/other_user}","gists_url":"https://api.github.com/users/rosepan/gists{/gist_id}","starred_url":"https://api.github.com/users/rosepan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosepan/subscriptions","organizations_url":"https://api.github.com/users/rosepan/orgs","repos_url":"https://api.github.com/users/rosepan/repos","events_url":"https://api.github.com/users/rosepan/events{/privacy}","received_events_url":"https://api.github.com/users/rosepan/received_events","type":"User","site_admin":false},"body":"Added.","created_at":"2018-02-27T23:50:57Z","updated_at":"2018-02-27T23:50:57Z","html_url":"https://github.com/oracle/weblogic-kubernetes-operator/pull/121#discussion_r171105418","pull_request_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/pulls/121","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/pulls/comments/171105418"},"html":{"href":"https://github.com/oracle/weblogic-kubernetes-operator/pull/121#discussion_r171105418"},"pull_request":{"href":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/pulls/121"}},"in_reply_to_id":171091488},"pull_request":{"url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/pulls/121","id":171732816,"html_url":"https://github.com/oracle/weblogic-kubernetes-operator/pull/121","diff_url":"https://github.com/oracle/weblogic-kubernetes-operator/pull/121.diff","patch_url":"https://github.com/oracle/weblogic-kubernetes-operator/pull/121.patch","issue_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/issues/121","number":121,"state":"open","locked":false,"title":"Rpan app upgrade rest endpoint","user":{"login":"rosepan","id":35276096,"avatar_url":"https://avatars1.githubusercontent.com/u/35276096?v=4","gravatar_id":"","url":"https://api.github.com/users/rosepan","html_url":"https://github.com/rosepan","followers_url":"https://api.github.com/users/rosepan/followers","following_url":"https://api.github.com/users/rosepan/following{/other_user}","gists_url":"https://api.github.com/users/rosepan/gists{/gist_id}","starred_url":"https://api.github.com/users/rosepan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosepan/subscriptions","organizations_url":"https://api.github.com/users/rosepan/orgs","repos_url":"https://api.github.com/users/rosepan/repos","events_url":"https://api.github.com/users/rosepan/events{/privacy}","received_events_url":"https://api.github.com/users/rosepan/received_events","type":"User","site_admin":false},"body":"Summary of this change:\r\n\r\n1. In REST backend: added a new method: public void  upgradeApplications(String domainUID, UpgradeApplicationsModel appsToUpgrade).\r\n2. Created two REST models: UpgradeApplicationModel.java and UpgradeApplicationsModel.java,  representing the structured data on the POST request, a list of application infos to be upgraded.\r\n3. Created one REST resource: UpgradeApplicationsResource.java, construct the applications info from the REST models which are passed in as parameters and pass the application info to the REST backend implementation class  RestBackendImpl.upgradeApplications() method.\r\n4. The backend implementation calls WlsConfigRetriever.readWlsAppConfigs() to get additional application info in the domain: name, targets and sourcePath, via WebLogic REST APIs.\r\n5. WlsConfigRetriever.readWlsAppConfigs() then parses the JSON result from the WebLogic REST APIs, construct a Map<String, WlsAppConfig> for future real upgrade process (TBD).\r\n6. Created two unit tests: \r\n  - RestTest.testUpgradeApplications(): make sure the REST backend, models and resources are created correctly.\r\n  - WlsServerConfigTest.java: make sure the JSON result parsing is correct.","created_at":"2018-02-27T17:32:13Z","updated_at":"2018-02-27T23:50:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b980f6ee8d829232d1f182e68abf7633581d8544","assignee":null,"assignees":[],"requested_reviewers":[{"login":"LorenKonkus","id":33292325,"avatar_url":"https://avatars0.githubusercontent.com/u/33292325?v=4","gravatar_id":"","url":"https://api.github.com/users/LorenKonkus","html_url":"https://github.com/LorenKonkus","followers_url":"https://api.github.com/users/LorenKonkus/followers","following_url":"https://api.github.com/users/LorenKonkus/following{/other_user}","gists_url":"https://api.github.com/users/LorenKonkus/gists{/gist_id}","starred_url":"https://api.github.com/users/LorenKonkus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LorenKonkus/subscriptions","organizations_url":"https://api.github.com/users/LorenKonkus/orgs","repos_url":"https://api.github.com/users/LorenKonkus/repos","events_url":"https://api.github.com/users/LorenKonkus/events{/privacy}","received_events_url":"https://api.github.com/users/LorenKonkus/received_events","type":"User","site_admin":false},{"login":"moreaut","id":34136184,"avatar_url":"https://avatars3.githubusercontent.com/u/34136184?v=4","gravatar_id":"","url":"https://api.github.com/users/moreaut","html_url":"https://github.com/moreaut","followers_url":"https://api.github.com/users/moreaut/followers","following_url":"https://api.github.com/users/moreaut/following{/other_user}","gists_url":"https://api.github.com/users/moreaut/gists{/gist_id}","starred_url":"https://api.github.com/users/moreaut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moreaut/subscriptions","organizations_url":"https://api.github.com/users/moreaut/orgs","repos_url":"https://api.github.com/users/moreaut/repos","events_url":"https://api.github.com/users/moreaut/events{/privacy}","received_events_url":"https://api.github.com/users/moreaut/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/pulls/121/commits","review_comments_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/pulls/121/comments","review_comment_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/issues/121/comments","statuses_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/statuses/5bca86acb459bb1a1e6f97fe8f3aafd9d3378518","head":{"label":"oracle:rpan-app-upgrade-rest-endpoint","ref":"rpan-app-upgrade-rest-endpoint","sha":"5bca86acb459bb1a1e6f97fe8f3aafd9d3378518","user":{"login":"oracle","id":4430336,"avatar_url":"https://avatars1.githubusercontent.com/u/4430336?v=4","gravatar_id":"","url":"https://api.github.com/users/oracle","html_url":"https://github.com/oracle","followers_url":"https://api.github.com/users/oracle/followers","following_url":"https://api.github.com/users/oracle/following{/other_user}","gists_url":"https://api.github.com/users/oracle/gists{/gist_id}","starred_url":"https://api.github.com/users/oracle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oracle/subscriptions","organizations_url":"https://api.github.com/users/oracle/orgs","repos_url":"https://api.github.com/users/oracle/repos","events_url":"https://api.github.com/users/oracle/events{/privacy}","received_events_url":"https://api.github.com/users/oracle/received_events","type":"Organization","site_admin":false},"repo":{"id":113222463,"name":"weblogic-kubernetes-operator","full_name":"oracle/weblogic-kubernetes-operator","owner":{"login":"oracle","id":4430336,"avatar_url":"https://avatars1.githubusercontent.com/u/4430336?v=4","gravatar_id":"","url":"https://api.github.com/users/oracle","html_url":"https://github.com/oracle","followers_url":"https://api.github.com/users/oracle/followers","following_url":"https://api.github.com/users/oracle/following{/other_user}","gists_url":"https://api.github.com/users/oracle/gists{/gist_id}","starred_url":"https://api.github.com/users/oracle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oracle/subscriptions","organizations_url":"https://api.github.com/users/oracle/orgs","repos_url":"https://api.github.com/users/oracle/repos","events_url":"https://api.github.com/users/oracle/events{/privacy}","received_events_url":"https://api.github.com/users/oracle/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oracle/weblogic-kubernetes-operator","description":"Oracle Weblogic Server Kubernetes Operator","fork":false,"url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator","forks_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/forks","keys_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/teams","hooks_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/hooks","issue_events_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/issues/events{/number}","events_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/events","assignees_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/assignees{/user}","branches_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/branches{/branch}","tags_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/tags","blobs_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/git/refs{/sha}","trees_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/statuses/{sha}","languages_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/languages","stargazers_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/stargazers","contributors_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/contributors","subscribers_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/subscribers","subscription_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/subscription","commits_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/commits{/sha}","git_commits_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/git/commits{/sha}","comments_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/comments{/number}","issue_comment_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/issues/comments{/number}","contents_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/contents/{+path}","compare_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/merges","archive_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/downloads","issues_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/issues{/number}","pulls_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/pulls{/number}","milestones_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/milestones{/number}","notifications_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/labels{/name}","releases_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/releases{/id}","deployments_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/deployments","created_at":"2017-12-05T19:11:06Z","updated_at":"2018-02-25T14:48:41Z","pushed_at":"2018-02-27T22:56:43Z","git_url":"git://github.com/oracle/weblogic-kubernetes-operator.git","ssh_url":"git@github.com:oracle/weblogic-kubernetes-operator.git","clone_url":"https://github.com/oracle/weblogic-kubernetes-operator.git","svn_url":"https://github.com/oracle/weblogic-kubernetes-operator","homepage":"","size":6100,"stargazers_count":15,"watchers_count":15,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":5,"open_issues":19,"watchers":15,"default_branch":"master"}},"base":{"label":"oracle:master","ref":"master","sha":"f4c5cb59c284618a0b08ed28e119dd19ff12a899","user":{"login":"oracle","id":4430336,"avatar_url":"https://avatars1.githubusercontent.com/u/4430336?v=4","gravatar_id":"","url":"https://api.github.com/users/oracle","html_url":"https://github.com/oracle","followers_url":"https://api.github.com/users/oracle/followers","following_url":"https://api.github.com/users/oracle/following{/other_user}","gists_url":"https://api.github.com/users/oracle/gists{/gist_id}","starred_url":"https://api.github.com/users/oracle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oracle/subscriptions","organizations_url":"https://api.github.com/users/oracle/orgs","repos_url":"https://api.github.com/users/oracle/repos","events_url":"https://api.github.com/users/oracle/events{/privacy}","received_events_url":"https://api.github.com/users/oracle/received_events","type":"Organization","site_admin":false},"repo":{"id":113222463,"name":"weblogic-kubernetes-operator","full_name":"oracle/weblogic-kubernetes-operator","owner":{"login":"oracle","id":4430336,"avatar_url":"https://avatars1.githubusercontent.com/u/4430336?v=4","gravatar_id":"","url":"https://api.github.com/users/oracle","html_url":"https://github.com/oracle","followers_url":"https://api.github.com/users/oracle/followers","following_url":"https://api.github.com/users/oracle/following{/other_user}","gists_url":"https://api.github.com/users/oracle/gists{/gist_id}","starred_url":"https://api.github.com/users/oracle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oracle/subscriptions","organizations_url":"https://api.github.com/users/oracle/orgs","repos_url":"https://api.github.com/users/oracle/repos","events_url":"https://api.github.com/users/oracle/events{/privacy}","received_events_url":"https://api.github.com/users/oracle/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oracle/weblogic-kubernetes-operator","description":"Oracle Weblogic Server Kubernetes Operator","fork":false,"url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator","forks_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/forks","keys_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/teams","hooks_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/hooks","issue_events_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/issues/events{/number}","events_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/events","assignees_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/assignees{/user}","branches_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/branches{/branch}","tags_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/tags","blobs_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/git/refs{/sha}","trees_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/statuses/{sha}","languages_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/languages","stargazers_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/stargazers","contributors_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/contributors","subscribers_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/subscribers","subscription_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/subscription","commits_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/commits{/sha}","git_commits_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/git/commits{/sha}","comments_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/comments{/number}","issue_comment_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/issues/comments{/number}","contents_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/contents/{+path}","compare_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/merges","archive_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/downloads","issues_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/issues{/number}","pulls_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/pulls{/number}","milestones_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/milestones{/number}","notifications_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/labels{/name}","releases_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/releases{/id}","deployments_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/deployments","created_at":"2017-12-05T19:11:06Z","updated_at":"2018-02-25T14:48:41Z","pushed_at":"2018-02-27T22:56:43Z","git_url":"git://github.com/oracle/weblogic-kubernetes-operator.git","ssh_url":"git@github.com:oracle/weblogic-kubernetes-operator.git","clone_url":"https://github.com/oracle/weblogic-kubernetes-operator.git","svn_url":"https://github.com/oracle/weblogic-kubernetes-operator","homepage":"","size":6100,"stargazers_count":15,"watchers_count":15,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":5,"open_issues":19,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/pulls/121"},"html":{"href":"https://github.com/oracle/weblogic-kubernetes-operator/pull/121"},"issue":{"href":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/issues/121"},"comments":{"href":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/issues/121/comments"},"review_comments":{"href":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/pulls/121/comments"},"review_comment":{"href":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/pulls/121/commits"},"statuses":{"href":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/statuses/5bca86acb459bb1a1e6f97fe8f3aafd9d3378518"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"rosepan"}}