{"action":"created","comment":{"url":"https://api.github.com/repos/exoplatform/ecms/pulls/comments/48406526","id":48406526,"diff_hunk":"@@ -67,6 +76,24 @@ public void processUpgrade(String oldVersion, String newVersion) {\n       log.info(\"Start \" + this.getClass().getName() + \".............\");\n     }\n     String unchangedNodeTypes = PrivilegedSystemHelper.getProperty(\"unchanged-nodetype-templates\");\n+    String previousPlfVersion = PRODUCT_VERSION_ZERO;\n+    Set<String> modifiedTemplateLog = new HashSet<String>();\n+    try {\n+      modifiedTemplateLog = Utils.getAllEditedConfiguredData(TemplateServiceImpl.class.getSimpleName(),","path":"upgrade-plugins/src/main/java/org/exoplatform/ecms/upgrade/templates/NodeTypeTemplateUpgradePlugin.java","position":46,"original_position":46,"commit_id":"8550f158561499ee9816bcc421d4984954399f28","original_commit_id":"8550f158561499ee9816bcc421d4984954399f28","user":{"login":"tungdt","id":1511131,"avatar_url":"https://avatars.githubusercontent.com/u/1511131?v=3","gravatar_id":"","url":"https://api.github.com/users/tungdt","html_url":"https://github.com/tungdt","followers_url":"https://api.github.com/users/tungdt/followers","following_url":"https://api.github.com/users/tungdt/following{/other_user}","gists_url":"https://api.github.com/users/tungdt/gists{/gist_id}","starred_url":"https://api.github.com/users/tungdt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tungdt/subscriptions","organizations_url":"https://api.github.com/users/tungdt/orgs","repos_url":"https://api.github.com/users/tungdt/repos","events_url":"https://api.github.com/users/tungdt/events{/privacy}","received_events_url":"https://api.github.com/users/tungdt/received_events","type":"User","site_admin":false},"body":"modifiedTemplateLog does not seem intuitive as a name. modifiedTemplates ?\r\n<= modifiedTemplateLog mean Templates those were modified and mark in Log data.\r\nSo I prefer to use name \"modifiedTemplateLog\"","created_at":"2015-12-24T09:54:40Z","updated_at":"2015-12-24T09:54:40Z","html_url":"https://github.com/exoplatform/ecms/pull/869#discussion_r48406526","pull_request_url":"https://api.github.com/repos/exoplatform/ecms/pulls/869","_links":{"self":{"href":"https://api.github.com/repos/exoplatform/ecms/pulls/comments/48406526"},"html":{"href":"https://github.com/exoplatform/ecms/pull/869#discussion_r48406526"},"pull_request":{"href":"https://api.github.com/repos/exoplatform/ecms/pulls/869"}}},"pull_request":{"url":"https://api.github.com/repos/exoplatform/ecms/pulls/869","id":54534192,"html_url":"https://github.com/exoplatform/ecms/pull/869","diff_url":"https://github.com/exoplatform/ecms/pull/869.diff","patch_url":"https://github.com/exoplatform/ecms/pull/869.patch","issue_url":"https://api.github.com/repos/exoplatform/ecms/issues/869","number":869,"state":"open","locked":false,"title":"ECMS-7315: Modified templates are deleted after running migration","user":{"login":"tungdt","id":1511131,"avatar_url":"https://avatars.githubusercontent.com/u/1511131?v=3","gravatar_id":"","url":"https://api.github.com/users/tungdt","html_url":"https://github.com/tungdt","followers_url":"https://api.github.com/users/tungdt/followers","following_url":"https://api.github.com/users/tungdt/following{/other_user}","gists_url":"https://api.github.com/users/tungdt/gists{/gist_id}","starred_url":"https://api.github.com/users/tungdt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tungdt/subscriptions","organizations_url":"https://api.github.com/users/tungdt/orgs","repos_url":"https://api.github.com/users/tungdt/repos","events_url":"https://api.github.com/users/tungdt/events{/privacy}","received_events_url":"https://api.github.com/users/tungdt/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-24T07:57:40Z","updated_at":"2015-12-24T09:54:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3ff0f5f1bed088c89d32001fb821c357c8064f6d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/exoplatform/ecms/pulls/869/commits","review_comments_url":"https://api.github.com/repos/exoplatform/ecms/pulls/869/comments","review_comment_url":"https://api.github.com/repos/exoplatform/ecms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/exoplatform/ecms/issues/869/comments","statuses_url":"https://api.github.com/repos/exoplatform/ecms/statuses/8550f158561499ee9816bcc421d4984954399f28","head":{"label":"exodev:fix/4.4.x/ECMS-7315","ref":"fix/4.4.x/ECMS-7315","sha":"8550f158561499ee9816bcc421d4984954399f28","user":{"login":"exodev","id":1606522,"avatar_url":"https://avatars.githubusercontent.com/u/1606522?v=3","gravatar_id":"","url":"https://api.github.com/users/exodev","html_url":"https://github.com/exodev","followers_url":"https://api.github.com/users/exodev/followers","following_url":"https://api.github.com/users/exodev/following{/other_user}","gists_url":"https://api.github.com/users/exodev/gists{/gist_id}","starred_url":"https://api.github.com/users/exodev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exodev/subscriptions","organizations_url":"https://api.github.com/users/exodev/orgs","repos_url":"https://api.github.com/users/exodev/repos","events_url":"https://api.github.com/users/exodev/events{/privacy}","received_events_url":"https://api.github.com/users/exodev/received_events","type":"Organization","site_admin":false},"repo":{"id":4003238,"name":"ecms","full_name":"exodev/ecms","owner":{"login":"exodev","id":1606522,"avatar_url":"https://avatars.githubusercontent.com/u/1606522?v=3","gravatar_id":"","url":"https://api.github.com/users/exodev","html_url":"https://github.com/exodev","followers_url":"https://api.github.com/users/exodev/followers","following_url":"https://api.github.com/users/exodev/following{/other_user}","gists_url":"https://api.github.com/users/exodev/gists{/gist_id}","starred_url":"https://api.github.com/users/exodev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exodev/subscriptions","organizations_url":"https://api.github.com/users/exodev/orgs","repos_url":"https://api.github.com/users/exodev/repos","events_url":"https://api.github.com/users/exodev/events{/privacy}","received_events_url":"https://api.github.com/users/exodev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/exodev/ecms","description":"eXo ECMS","fork":true,"url":"https://api.github.com/repos/exodev/ecms","forks_url":"https://api.github.com/repos/exodev/ecms/forks","keys_url":"https://api.github.com/repos/exodev/ecms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/exodev/ecms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/exodev/ecms/teams","hooks_url":"https://api.github.com/repos/exodev/ecms/hooks","issue_events_url":"https://api.github.com/repos/exodev/ecms/issues/events{/number}","events_url":"https://api.github.com/repos/exodev/ecms/events","assignees_url":"https://api.github.com/repos/exodev/ecms/assignees{/user}","branches_url":"https://api.github.com/repos/exodev/ecms/branches{/branch}","tags_url":"https://api.github.com/repos/exodev/ecms/tags","blobs_url":"https://api.github.com/repos/exodev/ecms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/exodev/ecms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/exodev/ecms/git/refs{/sha}","trees_url":"https://api.github.com/repos/exodev/ecms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/exodev/ecms/statuses/{sha}","languages_url":"https://api.github.com/repos/exodev/ecms/languages","stargazers_url":"https://api.github.com/repos/exodev/ecms/stargazers","contributors_url":"https://api.github.com/repos/exodev/ecms/contributors","subscribers_url":"https://api.github.com/repos/exodev/ecms/subscribers","subscription_url":"https://api.github.com/repos/exodev/ecms/subscription","commits_url":"https://api.github.com/repos/exodev/ecms/commits{/sha}","git_commits_url":"https://api.github.com/repos/exodev/ecms/git/commits{/sha}","comments_url":"https://api.github.com/repos/exodev/ecms/comments{/number}","issue_comment_url":"https://api.github.com/repos/exodev/ecms/issues/comments{/number}","contents_url":"https://api.github.com/repos/exodev/ecms/contents/{+path}","compare_url":"https://api.github.com/repos/exodev/ecms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/exodev/ecms/merges","archive_url":"https://api.github.com/repos/exodev/ecms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/exodev/ecms/downloads","issues_url":"https://api.github.com/repos/exodev/ecms/issues{/number}","pulls_url":"https://api.github.com/repos/exodev/ecms/pulls{/number}","milestones_url":"https://api.github.com/repos/exodev/ecms/milestones{/number}","notifications_url":"https://api.github.com/repos/exodev/ecms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/exodev/ecms/labels{/name}","releases_url":"https://api.github.com/repos/exodev/ecms/releases{/id}","created_at":"2012-04-12T09:40:08Z","updated_at":"2015-05-08T05:13:42Z","pushed_at":"2015-12-24T07:54:24Z","git_url":"git://github.com/exodev/ecms.git","ssh_url":"git@github.com:exodev/ecms.git","clone_url":"https://github.com/exodev/ecms.git","svn_url":"https://github.com/exodev/ecms","homepage":null,"size":183666,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":74,"forks":10,"open_issues":74,"watchers":4,"default_branch":"develop"}},"base":{"label":"exoplatform:develop","ref":"develop","sha":"274af91eb1ac605c85dd8eef20d38a3cba5447f9","user":{"login":"exoplatform","id":259384,"avatar_url":"https://avatars.githubusercontent.com/u/259384?v=3","gravatar_id":"","url":"https://api.github.com/users/exoplatform","html_url":"https://github.com/exoplatform","followers_url":"https://api.github.com/users/exoplatform/followers","following_url":"https://api.github.com/users/exoplatform/following{/other_user}","gists_url":"https://api.github.com/users/exoplatform/gists{/gist_id}","starred_url":"https://api.github.com/users/exoplatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exoplatform/subscriptions","organizations_url":"https://api.github.com/users/exoplatform/orgs","repos_url":"https://api.github.com/users/exoplatform/repos","events_url":"https://api.github.com/users/exoplatform/events{/privacy}","received_events_url":"https://api.github.com/users/exoplatform/received_events","type":"Organization","site_admin":false},"repo":{"id":3935748,"name":"ecms","full_name":"exoplatform/ecms","owner":{"login":"exoplatform","id":259384,"avatar_url":"https://avatars.githubusercontent.com/u/259384?v=3","gravatar_id":"","url":"https://api.github.com/users/exoplatform","html_url":"https://github.com/exoplatform","followers_url":"https://api.github.com/users/exoplatform/followers","following_url":"https://api.github.com/users/exoplatform/following{/other_user}","gists_url":"https://api.github.com/users/exoplatform/gists{/gist_id}","starred_url":"https://api.github.com/users/exoplatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exoplatform/subscriptions","organizations_url":"https://api.github.com/users/exoplatform/orgs","repos_url":"https://api.github.com/users/exoplatform/repos","events_url":"https://api.github.com/users/exoplatform/events{/privacy}","received_events_url":"https://api.github.com/users/exoplatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/exoplatform/ecms","description":"eXo ECMS","fork":false,"url":"https://api.github.com/repos/exoplatform/ecms","forks_url":"https://api.github.com/repos/exoplatform/ecms/forks","keys_url":"https://api.github.com/repos/exoplatform/ecms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/exoplatform/ecms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/exoplatform/ecms/teams","hooks_url":"https://api.github.com/repos/exoplatform/ecms/hooks","issue_events_url":"https://api.github.com/repos/exoplatform/ecms/issues/events{/number}","events_url":"https://api.github.com/repos/exoplatform/ecms/events","assignees_url":"https://api.github.com/repos/exoplatform/ecms/assignees{/user}","branches_url":"https://api.github.com/repos/exoplatform/ecms/branches{/branch}","tags_url":"https://api.github.com/repos/exoplatform/ecms/tags","blobs_url":"https://api.github.com/repos/exoplatform/ecms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/exoplatform/ecms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/exoplatform/ecms/git/refs{/sha}","trees_url":"https://api.github.com/repos/exoplatform/ecms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/exoplatform/ecms/statuses/{sha}","languages_url":"https://api.github.com/repos/exoplatform/ecms/languages","stargazers_url":"https://api.github.com/repos/exoplatform/ecms/stargazers","contributors_url":"https://api.github.com/repos/exoplatform/ecms/contributors","subscribers_url":"https://api.github.com/repos/exoplatform/ecms/subscribers","subscription_url":"https://api.github.com/repos/exoplatform/ecms/subscription","commits_url":"https://api.github.com/repos/exoplatform/ecms/commits{/sha}","git_commits_url":"https://api.github.com/repos/exoplatform/ecms/git/commits{/sha}","comments_url":"https://api.github.com/repos/exoplatform/ecms/comments{/number}","issue_comment_url":"https://api.github.com/repos/exoplatform/ecms/issues/comments{/number}","contents_url":"https://api.github.com/repos/exoplatform/ecms/contents/{+path}","compare_url":"https://api.github.com/repos/exoplatform/ecms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/exoplatform/ecms/merges","archive_url":"https://api.github.com/repos/exoplatform/ecms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/exoplatform/ecms/downloads","issues_url":"https://api.github.com/repos/exoplatform/ecms/issues{/number}","pulls_url":"https://api.github.com/repos/exoplatform/ecms/pulls{/number}","milestones_url":"https://api.github.com/repos/exoplatform/ecms/milestones{/number}","notifications_url":"https://api.github.com/repos/exoplatform/ecms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/exoplatform/ecms/labels{/name}","releases_url":"https://api.github.com/repos/exoplatform/ecms/releases{/id}","created_at":"2012-04-05T03:17:28Z","updated_at":"2015-11-14T07:17:19Z","pushed_at":"2015-12-24T07:57:40Z","git_url":"git://github.com/exoplatform/ecms.git","ssh_url":"git@github.com:exoplatform/ecms.git","clone_url":"https://github.com/exoplatform/ecms.git","svn_url":"https://github.com/exoplatform/ecms","homepage":null,"size":182852,"stargazers_count":12,"watchers_count":12,"language":"Java","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":116,"forks":42,"open_issues":116,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/exoplatform/ecms/pulls/869"},"html":{"href":"https://github.com/exoplatform/ecms/pull/869"},"issue":{"href":"https://api.github.com/repos/exoplatform/ecms/issues/869"},"comments":{"href":"https://api.github.com/repos/exoplatform/ecms/issues/869/comments"},"review_comments":{"href":"https://api.github.com/repos/exoplatform/ecms/pulls/869/comments"},"review_comment":{"href":"https://api.github.com/repos/exoplatform/ecms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/exoplatform/ecms/pulls/869/commits"},"statuses":{"href":"https://api.github.com/repos/exoplatform/ecms/statuses/8550f158561499ee9816bcc421d4984954399f28"}}}}