{"action":"opened","issue":{"url":"https://api.github.com/repos/mozilla/addons-frontend/issues/6719","repository_url":"https://api.github.com/repos/mozilla/addons-frontend","labels_url":"https://api.github.com/repos/mozilla/addons-frontend/issues/6719/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/addons-frontend/issues/6719/comments","events_url":"https://api.github.com/repos/mozilla/addons-frontend/issues/6719/events","html_url":"https://github.com/mozilla/addons-frontend/issues/6719","id":373110169,"node_id":"MDU6SXNzdWUzNzMxMTAxNjk=","number":6719,"title":"Comprehend all Redux actions dispatched during a given server response","user":{"login":"kumar303","id":55398,"node_id":"MDQ6VXNlcjU1Mzk4","avatar_url":"https://avatars1.githubusercontent.com/u/55398?v=4","gravatar_id":"","url":"https://api.github.com/users/kumar303","html_url":"https://github.com/kumar303","followers_url":"https://api.github.com/users/kumar303/followers","following_url":"https://api.github.com/users/kumar303/following{/other_user}","gists_url":"https://api.github.com/users/kumar303/gists{/gist_id}","starred_url":"https://api.github.com/users/kumar303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumar303/subscriptions","organizations_url":"https://api.github.com/users/kumar303/orgs","repos_url":"https://api.github.com/users/kumar303/repos","events_url":"https://api.github.com/users/kumar303/events{/privacy}","received_events_url":"https://api.github.com/users/kumar303/received_events","type":"User","site_admin":false},"labels":[{"id":357492876,"node_id":"MDU6TGFiZWwzNTc0OTI4NzY=","url":"https://api.github.com/repos/mozilla/addons-frontend/labels/component:%20code%20quality","name":"component: code quality","color":"107c05","default":false},{"id":377199370,"node_id":"MDU6TGFiZWwzNzcxOTkzNzA=","url":"https://api.github.com/repos/mozilla/addons-frontend/labels/needs:%20discussion","name":"needs: discussion","color":"9924b0","default":false},{"id":820354953,"node_id":"MDU6TGFiZWw4MjAzNTQ5NTM=","url":"https://api.github.com/repos/mozilla/addons-frontend/labels/priority:%20p3","name":"priority: p3","color":"a4000f","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-23T17:22:26Z","updated_at":"2018-10-23T17:22:26Z","closed_at":null,"author_association":"MEMBER","body":"I would like to see all dispatched Redux actions for a given server response during development.\r\n\r\nWhy? I spent several hours debugging an SSR problem but when I finally added custom logging of all dispatched Redux actions and their state modifications (just the ones I was interested in), I found the bug immediately.\r\n\r\nWe've never had this feature and I don't know how to implement it 😁 ; I just want it.\r\n\r\nIdeas I have that probably won't work:\r\n- Let `pino-devtools` capture full object logging so that it can replay that on the client. This would expose standard object logging techniques in devtools like inspecting large objects (e.g. previous / next state objects). However, if I turn on the [Redux logger](https://github.com/mozilla/addons-frontend/blob/44a07385698e25abad6247cb4ac8bbb53edd0642/src/core/store.js#L22-L26), `pino-devtools` gets JSON parsing errors, probably because of the line buffering or something else related to the socket transport.\r\n- Just dump all state objects to the server console. This is how we used to do it but it was never helpful since the objects are massive.\r\n- There is, of course, a workaround where you can disable SSR and see all actions logged in the client. This may not be helpful, though, because SSR loading is different and fragile! The bug I was hunting down did not exist when SSR was disabled."}}
{"actor":{"display_login":"kumar303"}}