{"action":"created","issue":{"url":"https://api.github.com/repos/commercetools/nodejs/issues/310","repository_url":"https://api.github.com/repos/commercetools/nodejs","labels_url":"https://api.github.com/repos/commercetools/nodejs/issues/310/labels{/name}","comments_url":"https://api.github.com/repos/commercetools/nodejs/issues/310/comments","events_url":"https://api.github.com/repos/commercetools/nodejs/issues/310/events","html_url":"https://github.com/commercetools/nodejs/pull/310","id":263087077,"number":310,"title":"fix(sync-action): to only pass reference for reference actions","user":{"login":"tdeekens","id":1877073,"avatar_url":"https://avatars3.githubusercontent.com/u/1877073?v=4","gravatar_id":"","url":"https://api.github.com/users/tdeekens","html_url":"https://github.com/tdeekens","followers_url":"https://api.github.com/users/tdeekens/followers","following_url":"https://api.github.com/users/tdeekens/following{/other_user}","gists_url":"https://api.github.com/users/tdeekens/gists{/gist_id}","starred_url":"https://api.github.com/users/tdeekens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdeekens/subscriptions","organizations_url":"https://api.github.com/users/tdeekens/orgs","repos_url":"https://api.github.com/users/tdeekens/repos","events_url":"https://api.github.com/users/tdeekens/events{/privacy}","received_events_url":"https://api.github.com/users/tdeekens/received_events","type":"User","site_admin":false},"labels":[{"id":458563459,"url":"https://api.github.com/repos/commercetools/nodejs/labels/Type:%20Bug","name":"Type: Bug","color":"e11d21","default":false}],"state":"closed","locked":false,"assignee":{"login":"tdeekens","id":1877073,"avatar_url":"https://avatars3.githubusercontent.com/u/1877073?v=4","gravatar_id":"","url":"https://api.github.com/users/tdeekens","html_url":"https://github.com/tdeekens","followers_url":"https://api.github.com/users/tdeekens/followers","following_url":"https://api.github.com/users/tdeekens/following{/other_user}","gists_url":"https://api.github.com/users/tdeekens/gists{/gist_id}","starred_url":"https://api.github.com/users/tdeekens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdeekens/subscriptions","organizations_url":"https://api.github.com/users/tdeekens/orgs","repos_url":"https://api.github.com/users/tdeekens/repos","events_url":"https://api.github.com/users/tdeekens/events{/privacy}","received_events_url":"https://api.github.com/users/tdeekens/received_events","type":"User","site_admin":false},"assignees":[{"login":"tdeekens","id":1877073,"avatar_url":"https://avatars3.githubusercontent.com/u/1877073?v=4","gravatar_id":"","url":"https://api.github.com/users/tdeekens","html_url":"https://github.com/tdeekens","followers_url":"https://api.github.com/users/tdeekens/followers","following_url":"https://api.github.com/users/tdeekens/following{/other_user}","gists_url":"https://api.github.com/users/tdeekens/gists{/gist_id}","starred_url":"https://api.github.com/users/tdeekens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdeekens/subscriptions","organizations_url":"https://api.github.com/users/tdeekens/orgs","repos_url":"https://api.github.com/users/tdeekens/repos","events_url":"https://api.github.com/users/tdeekens/events{/privacy}","received_events_url":"https://api.github.com/users/tdeekens/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2017-10-05T11:14:53Z","updated_at":"2017-10-08T17:50:56Z","closed_at":"2017-10-08T16:49:37Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/commercetools/nodejs/pulls/310","html_url":"https://github.com/commercetools/nodejs/pull/310","diff_url":"https://github.com/commercetools/nodejs/pull/310.diff","patch_url":"https://github.com/commercetools/nodejs/pull/310.patch"},"body":"#### Summary\r\n\r\nActions based on references only need to send a reference of `typeId` and `id` in addition with the reference itself. Before `sync-actions`, whenever `now` contained the expanded object would also attach those to the action. \r\n\r\n```json\r\n[{\r\n\t\"action\": \"transitionState\",\r\n\t\"state\": {\r\n\t\t\"typeId\": \"state\",\r\n\t\t\"id\": \"fb77d7dc-94c5-45df-95bc-b8499286e4d5\",\r\n\t\t\"obj\": {\r\n\t\t\t\"id\": \"fb77d7dc-94c5-45df-95bc-b8499286e4d5\",\r\n\t\t\t\"version\": 2,\r\n\t\t\t\"key\": \"new\",\r\n\t\t\t\"type\": \"ProductState\",\r\n\t\t\t\"roles\": [],\r\n\t\t\t\"name\": {\r\n\t\t\t\t\"de\": \"Neu\",\r\n\t\t\t\t\"en\": \"New\"\r\n\t\t\t},\r\n\t\t\t\"builtIn\": false,\r\n\t\t\t\"transitions\": [{\r\n\t\t\t\t\"typeId\": \"state\",\r\n\t\t\t\t\"id\": \"1436898f-6080-4a18-99df-134e05a80f73\"\r\n\t\t\t}],\r\n\t\t\t\"initial\": true,\r\n\t\t\t\"createdAt\": \"2016-08-11T16:07:33.676Z\",\r\n\t\t\t\"lastModifiedAt\": \"2016-08-11T16:07:34.888Z\"\r\n\t\t}\r\n\t}\r\n}]\r\n```\r\n\r\nWhereas the update action should be\r\n\r\n```json\r\n[{\r\n\t\"action\": \"transitionState\",\r\n\t\"state\": {\r\n\t\t\"typeId\": \"state\",\r\n\t\t\"id\": \"fb77d7dc-94c5-45df-95bc-b8499286e4d5\",\r\n\t}\r\n}]\r\n```\r\n\r\nThis intends to fix that behaviour which will apply to taxCategories and states at least."},"comment":{"url":"https://api.github.com/repos/commercetools/nodejs/issues/comments/335025166","html_url":"https://github.com/commercetools/nodejs/pull/310#issuecomment-335025166","issue_url":"https://api.github.com/repos/commercetools/nodejs/issues/310","id":335025166,"user":{"login":"tdeekens","id":1877073,"avatar_url":"https://avatars3.githubusercontent.com/u/1877073?v=4","gravatar_id":"","url":"https://api.github.com/users/tdeekens","html_url":"https://github.com/tdeekens","followers_url":"https://api.github.com/users/tdeekens/followers","following_url":"https://api.github.com/users/tdeekens/following{/other_user}","gists_url":"https://api.github.com/users/tdeekens/gists{/gist_id}","starred_url":"https://api.github.com/users/tdeekens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdeekens/subscriptions","organizations_url":"https://api.github.com/users/tdeekens/orgs","repos_url":"https://api.github.com/users/tdeekens/repos","events_url":"https://api.github.com/users/tdeekens/events{/privacy}","received_events_url":"https://api.github.com/users/tdeekens/received_events","type":"User","site_admin":false},"created_at":"2017-10-08T17:50:56Z","updated_at":"2017-10-08T17:50:56Z","author_association":"CONTRIBUTOR","body":"You‘re welcome. Id love to help out on some tooling improvements on the project when I have/get time. "}}
{"actor":{"display_login":"tdeekens"}}