{"action":"created","issue":{"url":"https://api.github.com/repos/sbg/sevenbridges-python/issues/22","repository_url":"https://api.github.com/repos/sbg/sevenbridges-python","labels_url":"https://api.github.com/repos/sbg/sevenbridges-python/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/sbg/sevenbridges-python/issues/22/comments","events_url":"https://api.github.com/repos/sbg/sevenbridges-python/issues/22/events","html_url":"https://github.com/sbg/sevenbridges-python/issues/22","id":172165062,"number":22,"title":"User surprise: Asking for file metadata via dot (.) operator overwrites name changes that have not been saved","user":{"login":"kghosesbg","id":6299530,"avatar_url":"https://avatars.githubusercontent.com/u/6299530?v=3","gravatar_id":"","url":"https://api.github.com/users/kghosesbg","html_url":"https://github.com/kghosesbg","followers_url":"https://api.github.com/users/kghosesbg/followers","following_url":"https://api.github.com/users/kghosesbg/following{/other_user}","gists_url":"https://api.github.com/users/kghosesbg/gists{/gist_id}","starred_url":"https://api.github.com/users/kghosesbg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kghosesbg/subscriptions","organizations_url":"https://api.github.com/users/kghosesbg/orgs","repos_url":"https://api.github.com/users/kghosesbg/repos","events_url":"https://api.github.com/users/kghosesbg/events{/privacy}","received_events_url":"https://api.github.com/users/kghosesbg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-19T16:03:33Z","updated_at":"2016-08-19T17:13:14Z","closed_at":"2016-08-19T16:54:10Z","body":"Fetch a file\r\n`f=api.files.get(id='57574236e4b083c873cc5eba')`\r\n\r\nCheck name\r\n\r\n`f.name`\r\n`Out[191]: u'haha.i.changed.this'`\r\n\r\nCheck metadata (I believe this fetches the metadata from the platform. I like it's lazy nature!)\r\n\r\n`f.metadata`\r\n``  (There's no metadata)\r\n\r\nChange file name\r\n`f.name = 'oops.i.changed.it.again'`\r\n \r\nVerify the local version has the changed file name\r\n`f.name`\r\n`'oops.i.changed.it.again'`\r\n\r\nNow ask to see the metadata again. What I did not expect was that a) this would be a fresh fetch of the metadata and, b) this would overwrite the file name\r\n\r\n`f.metadata`\r\n`` (No metadata as expected)\r\n\r\n`f.name`\r\n`'haha.i.changed.this'` <---- Zowie! Was not expecting this\r\n\r\nNeed to do `f.save()` first\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sbg/sevenbridges-python/issues/comments/241077371","html_url":"https://github.com/sbg/sevenbridges-python/issues/22#issuecomment-241077371","issue_url":"https://api.github.com/repos/sbg/sevenbridges-python/issues/22","id":241077371,"user":{"login":"jackDiGi","id":13199814,"avatar_url":"https://avatars.githubusercontent.com/u/13199814?v=3","gravatar_id":"","url":"https://api.github.com/users/jackDiGi","html_url":"https://github.com/jackDiGi","followers_url":"https://api.github.com/users/jackDiGi/followers","following_url":"https://api.github.com/users/jackDiGi/following{/other_user}","gists_url":"https://api.github.com/users/jackDiGi/gists{/gist_id}","starred_url":"https://api.github.com/users/jackDiGi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackDiGi/subscriptions","organizations_url":"https://api.github.com/users/jackDiGi/orgs","repos_url":"https://api.github.com/users/jackDiGi/repos","events_url":"https://api.github.com/users/jackDiGi/events{/privacy}","received_events_url":"https://api.github.com/users/jackDiGi/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T17:13:14Z","updated_at":"2016-08-19T17:13:14Z","body":"oops.i.changed.it.again for the win @kghosesbg "}}
{"actor":{"display_login":"jackDiGi"}}