{"action":"created","issue":{"url":"https://api.github.com/repos/craftercms/craftercms/issues/2685","repository_url":"https://api.github.com/repos/craftercms/craftercms","labels_url":"https://api.github.com/repos/craftercms/craftercms/issues/2685/labels{/name}","comments_url":"https://api.github.com/repos/craftercms/craftercms/issues/2685/comments","events_url":"https://api.github.com/repos/craftercms/craftercms/issues/2685/events","html_url":"https://github.com/craftercms/craftercms/issues/2685","id":388244329,"node_id":"MDU6SXNzdWUzODgyNDQzMjk=","number":2685,"title":"[studio-ui] Sidebar (nav tree) is not updated after editing a static-asset when in Preview","user":{"login":"alhambrav","id":25483966,"node_id":"MDQ6VXNlcjI1NDgzOTY2","avatar_url":"https://avatars2.githubusercontent.com/u/25483966?v=4","gravatar_id":"","url":"https://api.github.com/users/alhambrav","html_url":"https://github.com/alhambrav","followers_url":"https://api.github.com/users/alhambrav/followers","following_url":"https://api.github.com/users/alhambrav/following{/other_user}","gists_url":"https://api.github.com/users/alhambrav/gists{/gist_id}","starred_url":"https://api.github.com/users/alhambrav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alhambrav/subscriptions","organizations_url":"https://api.github.com/users/alhambrav/orgs","repos_url":"https://api.github.com/users/alhambrav/repos","events_url":"https://api.github.com/users/alhambrav/events{/privacy}","received_events_url":"https://api.github.com/users/alhambrav/received_events","type":"User","site_admin":false},"labels":[{"id":954498320,"node_id":"MDU6TGFiZWw5NTQ0OTgzMjA=","url":"https://api.github.com/repos/craftercms/craftercms/labels/CI","name":"CI","color":"d93f0b","default":false},{"id":469369224,"node_id":"MDU6TGFiZWw0NjkzNjkyMjQ=","url":"https://api.github.com/repos/craftercms/craftercms/labels/bug","name":"bug","color":"ee0701","default":true},{"id":544813742,"node_id":"MDU6TGFiZWw1NDQ4MTM3NDI=","url":"https://api.github.com/repos/craftercms/craftercms/labels/priority:%20medium","name":"priority: medium","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"vestrada","id":11640613,"node_id":"MDQ6VXNlcjExNjQwNjEz","avatar_url":"https://avatars3.githubusercontent.com/u/11640613?v=4","gravatar_id":"","url":"https://api.github.com/users/vestrada","html_url":"https://github.com/vestrada","followers_url":"https://api.github.com/users/vestrada/followers","following_url":"https://api.github.com/users/vestrada/following{/other_user}","gists_url":"https://api.github.com/users/vestrada/gists{/gist_id}","starred_url":"https://api.github.com/users/vestrada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vestrada/subscriptions","organizations_url":"https://api.github.com/users/vestrada/orgs","repos_url":"https://api.github.com/users/vestrada/repos","events_url":"https://api.github.com/users/vestrada/events{/privacy}","received_events_url":"https://api.github.com/users/vestrada/received_events","type":"User","site_admin":false},"assignees":[{"login":"vestrada","id":11640613,"node_id":"MDQ6VXNlcjExNjQwNjEz","avatar_url":"https://avatars3.githubusercontent.com/u/11640613?v=4","gravatar_id":"","url":"https://api.github.com/users/vestrada","html_url":"https://github.com/vestrada","followers_url":"https://api.github.com/users/vestrada/followers","following_url":"https://api.github.com/users/vestrada/following{/other_user}","gists_url":"https://api.github.com/users/vestrada/gists{/gist_id}","starred_url":"https://api.github.com/users/vestrada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vestrada/subscriptions","organizations_url":"https://api.github.com/users/vestrada/orgs","repos_url":"https://api.github.com/users/vestrada/repos","events_url":"https://api.github.com/users/vestrada/events{/privacy}","received_events_url":"https://api.github.com/users/vestrada/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/craftercms/craftercms/milestones/47","html_url":"https://github.com/craftercms/craftercms/milestone/47","labels_url":"https://api.github.com/repos/craftercms/craftercms/milestones/47/labels","id":3773233,"node_id":"MDk6TWlsZXN0b25lMzc3MzIzMw==","number":47,"title":"Crafter CMS v3.0.19","description":"","creator":{"login":"sumerjabri","id":3931908,"node_id":"MDQ6VXNlcjM5MzE5MDg=","avatar_url":"https://avatars1.githubusercontent.com/u/3931908?v=4","gravatar_id":"","url":"https://api.github.com/users/sumerjabri","html_url":"https://github.com/sumerjabri","followers_url":"https://api.github.com/users/sumerjabri/followers","following_url":"https://api.github.com/users/sumerjabri/following{/other_user}","gists_url":"https://api.github.com/users/sumerjabri/gists{/gist_id}","starred_url":"https://api.github.com/users/sumerjabri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumerjabri/subscriptions","organizations_url":"https://api.github.com/users/sumerjabri/orgs","repos_url":"https://api.github.com/users/sumerjabri/repos","events_url":"https://api.github.com/users/sumerjabri/events{/privacy}","received_events_url":"https://api.github.com/users/sumerjabri/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":12,"state":"open","created_at":"2018-10-27T01:54:17Z","updated_at":"2018-12-07T15:18:21Z","due_on":"2018-12-31T08:00:00Z","closed_at":null},"comments":1,"created_at":"2018-12-06T14:43:32Z","updated_at":"2018-12-07T21:00:56Z","closed_at":null,"author_association":"MEMBER","body":"## Describe the bug\r\nSidebar (nav tree)is not updated after editing a static-asset when in Preview for both master and 3.0\r\n\r\n## To Reproduce\r\n1. Create a site using website_editorial\r\n2. Go to Preview by clicking on `Home`  from the `Sidebar`\r\n3. In the `Sidebar`, right click `/static-assets/js/main.js` and select `Edit`\r\n![screen shot 2018-12-06 at 9 25 24 am](https://user-images.githubusercontent.com/25483966/49590074-eaf1cc80-f938-11e8-985c-ce724ec11e05.png)\r\n(You can edit any of the css or js files to test)\r\n4. Make some changes then click on the `Update` button to save.  Notice on the `Sidebar` that the icon for `main.js` does not indicated edited \r\n![screen shot 2018-12-06 at 9 28 00 am](https://user-images.githubusercontent.com/25483966/49590241-5f2c7000-f939-11e8-94d9-8795f773bf66.png)\r\n\r\n5. Either refresh your browser or click on the `Dashboard`, notice that the icon for `main.js` now indicates it is edited.\r\n![screen shot 2018-12-06 at 9 29 57 am](https://user-images.githubusercontent.com/25483966/49590327-9c90fd80-f939-11e8-8073-f40e4cc9a21c.png)\r\n\r\n\r\n## Expected behavior\r\nThe `Sidebar` nav tree should be updated without having to refresh whenever edits have been made to `static-assets`\r\n\r\n## Screenshots/Videos\r\nHere's a short clip showing the Sidebar nav tree not updated when editing an item in static-asset when in Preview:\r\nhttps://www.useloom.com/share/6b039dcc8c984bbab287fdb743c16c42\r\n\r\nThe clip shows the following:\r\n1. When in Preview, and you edit a static-asset item, the Sidebar is not updated\r\n2. Then it goes on to show when in the Dashboard and you edit a static-asset item, the Sidebar is updated\r\n3. Finally shows again that when in Preview and you edit a static-asset item, the Sidebar is not updated\r\n\r\n## Logs\r\nIf applicable, attach the logs/stack trace (use https://gist.github.com).\r\n\r\n## Specs\r\n### Version\r\nStudio Version Number: 3.0.19-SNAPSHOT-0d3eab\r\nBuild Number: 0d3eabd5042974c3d9c55752baff29dafd5a351b\r\nBuild Date/Time: 12-06-2018 01:34:09 -0500\r\n\r\nPlease note the issue is also in master.\r\n\r\n### OS\r\nOS X\r\n\r\n### Browser\r\nChrome Browser\r\n"},"comment":{"url":"https://api.github.com/repos/craftercms/craftercms/issues/comments/445364066","html_url":"https://github.com/craftercms/craftercms/issues/2685#issuecomment-445364066","issue_url":"https://api.github.com/repos/craftercms/craftercms/issues/2685","id":445364066,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTM2NDA2Ng==","user":{"login":"vestrada","id":11640613,"node_id":"MDQ6VXNlcjExNjQwNjEz","avatar_url":"https://avatars3.githubusercontent.com/u/11640613?v=4","gravatar_id":"","url":"https://api.github.com/users/vestrada","html_url":"https://github.com/vestrada","followers_url":"https://api.github.com/users/vestrada/followers","following_url":"https://api.github.com/users/vestrada/following{/other_user}","gists_url":"https://api.github.com/users/vestrada/gists{/gist_id}","starred_url":"https://api.github.com/users/vestrada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vestrada/subscriptions","organizations_url":"https://api.github.com/users/vestrada/orgs","repos_url":"https://api.github.com/users/vestrada/repos","events_url":"https://api.github.com/users/vestrada/events{/privacy}","received_events_url":"https://api.github.com/users/vestrada/received_events","type":"User","site_admin":false},"created_at":"2018-12-07T21:00:56Z","updated_at":"2018-12-07T21:00:56Z","author_association":"MEMBER","body":"3.0.x -> PR: https://github.com/craftercms/studio-ui/pull/1008"}}
{"actor":{"display_login":"vestrada"}}