{"action":"opened","issue":{"url":"https://api.github.com/repos/isawnyu/isaw.web/issues/157","repository_url":"https://api.github.com/repos/isawnyu/isaw.web","labels_url":"https://api.github.com/repos/isawnyu/isaw.web/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/isawnyu/isaw.web/issues/157/comments","events_url":"https://api.github.com/repos/isawnyu/isaw.web/issues/157/events","html_url":"https://github.com/isawnyu/isaw.web/issues/157","id":175867320,"number":157,"title":"bibliography batch load won't use existing directories","user":{"login":"paregorios","id":263285,"avatar_url":"https://avatars.githubusercontent.com/u/263285?v=3","gravatar_id":"","url":"https://api.github.com/users/paregorios","html_url":"https://github.com/paregorios","followers_url":"https://api.github.com/users/paregorios/followers","following_url":"https://api.github.com/users/paregorios/following{/other_user}","gists_url":"https://api.github.com/users/paregorios/gists{/gist_id}","starred_url":"https://api.github.com/users/paregorios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paregorios/subscriptions","organizations_url":"https://api.github.com/users/paregorios/orgs","repos_url":"https://api.github.com/users/paregorios/repos","events_url":"https://api.github.com/users/paregorios/events{/privacy}","received_events_url":"https://api.github.com/users/paregorios/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/isawnyu/isaw.web/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/isawnyu/isaw.web/labels/medium%20priority","name":"medium priority","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"alecpm","id":202854,"avatar_url":"https://avatars.githubusercontent.com/u/202854?v=3","gravatar_id":"","url":"https://api.github.com/users/alecpm","html_url":"https://github.com/alecpm","followers_url":"https://api.github.com/users/alecpm/followers","following_url":"https://api.github.com/users/alecpm/following{/other_user}","gists_url":"https://api.github.com/users/alecpm/gists{/gist_id}","starred_url":"https://api.github.com/users/alecpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alecpm/subscriptions","organizations_url":"https://api.github.com/users/alecpm/orgs","repos_url":"https://api.github.com/users/alecpm/repos","events_url":"https://api.github.com/users/alecpm/events{/privacy}","received_events_url":"https://api.github.com/users/alecpm/received_events","type":"User","site_admin":false},"assignees":[{"login":"alecpm","id":202854,"avatar_url":"https://avatars.githubusercontent.com/u/202854?v=3","gravatar_id":"","url":"https://api.github.com/users/alecpm","html_url":"https://github.com/alecpm","followers_url":"https://api.github.com/users/alecpm/followers","following_url":"https://api.github.com/users/alecpm/following{/other_user}","gists_url":"https://api.github.com/users/alecpm/gists{/gist_id}","starred_url":"https://api.github.com/users/alecpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alecpm/subscriptions","organizations_url":"https://api.github.com/users/alecpm/orgs","repos_url":"https://api.github.com/users/alecpm/repos","events_url":"https://api.github.com/users/alecpm/events{/privacy}","received_events_url":"https://api.github.com/users/alecpm/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-09-08T21:19:09Z","updated_at":"2016-09-08T21:19:09Z","closed_at":null,"body":"*reviewing [scrumdo story 125](https://www.scrumdo.com/projects/story_permalink/1098339)*\r\n\r\nIf the directory tree path given to the script is entirely unique, it works. But if the path starts with an existing folder, that portion of the path is ignored and the script creates the next (previously non-existent) component of the path at the site root.\r\n\r\n## To recreate:\r\n\r\n### This fails\r\n- ssh into the staging server\r\n- transmogrify into the \"plone\" user\r\n- ```cd /srv/isaw.web/```\r\n- ```bin/client1 run scripts/batch_bibliography.py /home/telliott/bibitems.txt members/paregorian/fooberts --title \"Fun with biblio again\" --site isaw```\r\n- note that there's a successful-looking run output:\r\n\r\n```\r\nStarting batch content creation...\r\n\r\nCreated new folder isaw/fooberts\r\nCreating Bibliographic Item: new-pauly-gallia-gaul\r\nCreated Bibliographic Item with id \"new-pauly-gallia-gaul\"\r\n\r\nCreating Bibliographic Item: the-library-of-alexandria\r\nCreated Bibliographic Item with id \"the-library-of-alexandria\"\r\n\r\nCreating Bibliographic Item: a-history-of-information-storage-and-retrieval\r\nCreated Bibliographic Item with id \"a-history-of-information-storage-and-retrieval\"\r\n\r\nCreating Bibliographic Item: the-ancient-messenians\r\nCreated Bibliographic Item with id \"the-ancient-messenians\"\r\n\r\nCreating Bibliographic Item: remembering-the-mycenaeans\r\nCreated Bibliographic Item with id \"remembering-the-mycenaeans\"\r\n\r\nCreating Bibliographic Item: doorway\r\nCreated Bibliographic Item with id \"doorway\"\r\n\r\nCreating Bibliographic Item: the-orientations-of-the-nine-tholos-tombs-at\r\nCreated Bibliographic Item with id \"the-orientations-of-the-nine-tholos-tombs-at-mycenae\"\r\n\r\nCreating Bibliographic Item: mycenae-1939-1952\r\nCreated Bibliographic Item with id \"mycenae-1939-1952\"\r\n\r\nCreating Bibliographic Item: new-pauly-gallia-gaul\r\nCreated Bibliographic Item with id \"new-pauly-gallia-gaul-1\"\r\n\r\nUpdated content in Plone.\r\n```\r\n\r\n- look for content in http://isaw4-dev.atlantides.org/members/paregorian/fooberts but don't find it\r\n- find it instead in http://isaw4-dev.atlantides.org/paregorian/fooberts\r\n\r\n### This also fails\r\n\r\n- ssh into the staging server\r\n- transmogrify into the \"plone\" user\r\n- ```cd /srv/isaw.web/```\r\n- ```bin/client1 run scripts/batch_bibliography.py /home/telliott/bibitems.txt research/argle/bargle/fun --title \"Fun with biblio again\" --site isaw```\r\n- note that there's a successful-looking run output:\r\n\r\n```\r\nStarting batch content creation...\r\n\r\nCreated new folder isaw/argle\r\nCreated new folder isaw/argle/bargle\r\nCreated new folder isaw/argle/bargle/fun\r\nCreating Bibliographic Item: new-pauly-gallia-gaul\r\nCreated Bibliographic Item with id \"new-pauly-gallia-gaul\"\r\n\r\nCreating Bibliographic Item: the-library-of-alexandria\r\nCreated Bibliographic Item with id \"the-library-of-alexandria\"\r\n\r\nCreating Bibliographic Item: a-history-of-information-storage-and-retrieval\r\nCreated Bibliographic Item with id \"a-history-of-information-storage-and-retrieval\"\r\n\r\nCreating Bibliographic Item: the-ancient-messenians\r\nCreated Bibliographic Item with id \"the-ancient-messenians\"\r\n\r\nCreating Bibliographic Item: remembering-the-mycenaeans\r\nCreated Bibliographic Item with id \"remembering-the-mycenaeans\"\r\n\r\nCreating Bibliographic Item: doorway\r\nCreated Bibliographic Item with id \"doorway\"\r\n\r\nCreating Bibliographic Item: the-orientations-of-the-nine-tholos-tombs-at\r\nCreated Bibliographic Item with id \"the-orientations-of-the-nine-tholos-tombs-at-mycenae\"\r\n\r\nCreating Bibliographic Item: mycenae-1939-1952\r\nCreated Bibliographic Item with id \"mycenae-1939-1952\"\r\n\r\nCreating Bibliographic Item: new-pauly-gallia-gaul\r\nCreated Bibliographic Item with id \"new-pauly-gallia-gaul-1\"\r\n\r\nUpdated content in Plone.\r\n```\r\n\r\n- look for content in http://isaw4-dev.atlantides.org/research/argle/bargle/fun but don't find it\r\n- find it instead in http://isaw4-dev.atlantides.org/argle/bargle/fun\r\n\r\n### but this works\r\n\r\n- ssh into the staging server\r\n- transmogrify into the \"plone\" user\r\n- ```cd /srv/isaw.web/```\r\n- ```bin/client1 run scripts/batch_bibliography.py /home/telliott/bibitems.txt la/di/da --title \"Fun with biblio again\" --site isaw```\r\n- successful-looking run output:\r\n\r\n```\r\nStarting batch content creation...\r\n\r\nCreated new folder isaw/la\r\nCreated new folder isaw/la/di\r\nCreated new folder isaw/la/di/da\r\nCreating Bibliographic Item: new-pauly-gallia-gaul\r\nCreated Bibliographic Item with id \"new-pauly-gallia-gaul\"\r\n\r\nCreating Bibliographic Item: the-library-of-alexandria\r\nCreated Bibliographic Item with id \"the-library-of-alexandria\"\r\n\r\nCreating Bibliographic Item: a-history-of-information-storage-and-retrieval\r\nCreated Bibliographic Item with id \"a-history-of-information-storage-and-retrieval\"\r\n\r\nCreating Bibliographic Item: the-ancient-messenians\r\nCreated Bibliographic Item with id \"the-ancient-messenians\"\r\n\r\nCreating Bibliographic Item: remembering-the-mycenaeans\r\nCreated Bibliographic Item with id \"remembering-the-mycenaeans\"\r\n\r\nCreating Bibliographic Item: doorway\r\nCreated Bibliographic Item with id \"doorway\"\r\n\r\nCreating Bibliographic Item: the-orientations-of-the-nine-tholos-tombs-at\r\nCreated Bibliographic Item with id \"the-orientations-of-the-nine-tholos-tombs-at-mycenae\"\r\n\r\nCreating Bibliographic Item: mycenae-1939-1952\r\nCreated Bibliographic Item with id \"mycenae-1939-1952\"\r\n\r\nCreating Bibliographic Item: new-pauly-gallia-gaul\r\nCreated Bibliographic Item with id \"new-pauly-gallia-gaul-1\"\r\n\r\nUpdated content in Plone.\r\n```\r\n\r\n- look for content in http://isaw4-dev.atlantides.org/la/di/da and find it there\r\n"}}
{"actor":{"display_login":"paregorios"}}