{"action":"created","issue":{"url":"https://api.github.com/repos/Laverna/laverna/issues/343","labels_url":"https://api.github.com/repos/Laverna/laverna/issues/343/labels{/name}","comments_url":"https://api.github.com/repos/Laverna/laverna/issues/343/comments","events_url":"https://api.github.com/repos/Laverna/laverna/issues/343/events","html_url":"https://github.com/Laverna/laverna/issues/343","id":123926252,"number":343,"title":"Import data does not work","user":{"login":"ryanmcnz","id":2803389,"avatar_url":"https://avatars.githubusercontent.com/u/2803389?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanmcnz","html_url":"https://github.com/ryanmcnz","followers_url":"https://api.github.com/users/ryanmcnz/followers","following_url":"https://api.github.com/users/ryanmcnz/following{/other_user}","gists_url":"https://api.github.com/users/ryanmcnz/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanmcnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanmcnz/subscriptions","organizations_url":"https://api.github.com/users/ryanmcnz/orgs","repos_url":"https://api.github.com/users/ryanmcnz/repos","events_url":"https://api.github.com/users/ryanmcnz/events{/privacy}","received_events_url":"https://api.github.com/users/ryanmcnz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-26T11:57:16Z","updated_at":"2015-12-26T17:38:21Z","closed_at":null,"body":"The \"Import data\" feature for loading notes from a zip file does not currently work when using Laverna in either the browser or desktop app.\r\n\r\nI ran into this issue while using the latest Chrome under Windows 7. The issue was also present in both the 32bit and 64bit desktop client for Windows, version 0.7.1.\r\n\r\nSteps to reproduce:\r\n- Run the latest version of Laverna via either downloading the desktop app or by accessing it at https://laverna.cc/app/.\r\n- Create a test note. Give it a title and some content. Save the note.\r\n- Click \"Export data\" in the Settings screen. This will successfully save the notes database to a zip file.\r\n- Delete the test note in Laverna, ensuring it is also removed from the trash.\r\n- Attempt to re-import the notes database by clicking \"Import data\" on the Settings screen and selecting the previously saved zip file.\r\n- Navigate back to the list of notes. The previously saved test note will not be listed anywhere.\r\n\r\nExpected outcome:\r\n- The data should import successfully from the zip file.\r\n- There should be one test note shown in the notes list.\r\n\r\nActual outcome:\r\n- Nothing seems to happen. No notes are imported.\r\n\r\nAdditional details:\r\n\r\nThe export feature seems to work fine in both the browser and desktop app.\r\nTo double check that the exported data was correct, I looked into the exported notes database in the zip file:\r\n- The default database name of \"notes-db\" is present.\r\n- The test note is present inside the \"notes\" folder, as both a markdown and json file. The contents of these files also seem correct."},"comment":{"url":"https://api.github.com/repos/Laverna/laverna/issues/comments/167347668","html_url":"https://github.com/Laverna/laverna/issues/343#issuecomment-167347668","issue_url":"https://api.github.com/repos/Laverna/laverna/issues/343","id":167347668,"user":{"login":"wwwredfish","id":5780855,"avatar_url":"https://avatars.githubusercontent.com/u/5780855?v=3","gravatar_id":"","url":"https://api.github.com/users/wwwredfish","html_url":"https://github.com/wwwredfish","followers_url":"https://api.github.com/users/wwwredfish/followers","following_url":"https://api.github.com/users/wwwredfish/following{/other_user}","gists_url":"https://api.github.com/users/wwwredfish/gists{/gist_id}","starred_url":"https://api.github.com/users/wwwredfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wwwredfish/subscriptions","organizations_url":"https://api.github.com/users/wwwredfish/orgs","repos_url":"https://api.github.com/users/wwwredfish/repos","events_url":"https://api.github.com/users/wwwredfish/events{/privacy}","received_events_url":"https://api.github.com/users/wwwredfish/received_events","type":"User","site_admin":false},"created_at":"2015-12-26T17:38:21Z","updated_at":"2015-12-26T17:38:21Z","body":"Thank you for reporting this bug. We will start working on it."}}