{"action":"created","issue":{"url":"https://api.github.com/repos/marcellustavares/liferay-portal/issues/1449","repository_url":"https://api.github.com/repos/marcellustavares/liferay-portal","labels_url":"https://api.github.com/repos/marcellustavares/liferay-portal/issues/1449/labels{/name}","comments_url":"https://api.github.com/repos/marcellustavares/liferay-portal/issues/1449/comments","events_url":"https://api.github.com/repos/marcellustavares/liferay-portal/issues/1449/events","html_url":"https://github.com/marcellustavares/liferay-portal/pull/1449","id":156787922,"number":1449,"title":"[TECHNICAL-SUPPORT] LPS-66069","user":{"login":"jonathanmccann","id":1919610,"avatar_url":"https://avatars.githubusercontent.com/u/1919610?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanmccann","html_url":"https://github.com/jonathanmccann","followers_url":"https://api.github.com/users/jonathanmccann/followers","following_url":"https://api.github.com/users/jonathanmccann/following{/other_user}","gists_url":"https://api.github.com/users/jonathanmccann/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanmccann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanmccann/subscriptions","organizations_url":"https://api.github.com/users/jonathanmccann/orgs","repos_url":"https://api.github.com/users/jonathanmccann/repos","events_url":"https://api.github.com/users/jonathanmccann/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanmccann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-25T16:00:06Z","updated_at":"2016-05-27T13:24:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/marcellustavares/liferay-portal/pulls/1449","html_url":"https://github.com/marcellustavares/liferay-portal/pull/1449","diff_url":"https://github.com/marcellustavares/liferay-portal/pull/1449.diff","patch_url":"https://github.com/marcellustavares/liferay-portal/pull/1449.patch"},"body":"/cc @mbowerman\r\n\r\nInformation from Michael\r\n\r\n>Please see forum threads [here](https://in.liferay.com/web/global.engineering/forums/-/message_boards/message/21133979) and [here](https://in.liferay.com/web/global.engineering/forums/-/message_boards/message/20971077), in which engineers on the DDL team and on the staging team both agreed that we should implement this fix.\r\n\r\n>The reason I added the second commit was because I found the following bug. When you first publish a DDLRecordSet to live, if you are using a global DDMStructure, the DDLRecordSet gets the ddmStructureId that corresponds to the live site. Later, however, when you first publish records from staging to live, the ddmStructureId attached to the DDLRecordSet changes to the ddmStructureId corresponding to the global site. If you had already added records on the live site, they will get deleted because it thinks that you are publishing a change to the structure.\r\n\r\n>The second commit prevents this bug from occurring by modifying the way we get the ddmStructureId. Now, it will return the ddmStructureId attached to the live site if it exists, and it will use the groupId from the referenceElement otherwise. This prevents the DDLRecordSet from having its ddmStructureId modified."},"comment":{"url":"https://api.github.com/repos/marcellustavares/liferay-portal/issues/comments/222145229","html_url":"https://github.com/marcellustavares/liferay-portal/pull/1449#issuecomment-222145229","issue_url":"https://api.github.com/repos/marcellustavares/liferay-portal/issues/1449","id":222145229,"user":{"login":"marcellustavares","id":286892,"avatar_url":"https://avatars.githubusercontent.com/u/286892?v=3","gravatar_id":"","url":"https://api.github.com/users/marcellustavares","html_url":"https://github.com/marcellustavares","followers_url":"https://api.github.com/users/marcellustavares/followers","following_url":"https://api.github.com/users/marcellustavares/following{/other_user}","gists_url":"https://api.github.com/users/marcellustavares/gists{/gist_id}","starred_url":"https://api.github.com/users/marcellustavares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcellustavares/subscriptions","organizations_url":"https://api.github.com/users/marcellustavares/orgs","repos_url":"https://api.github.com/users/marcellustavares/repos","events_url":"https://api.github.com/users/marcellustavares/events{/privacy}","received_events_url":"https://api.github.com/users/marcellustavares/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T13:24:27Z","updated_at":"2016-05-27T13:24:27Z","body":"Just started reviewing :) <br><br>:octocat: *Sent from [GH](http://nodegh.io).*"}}
{"actor":{"display_login":"marcellustavares"}}