{"action":"created","issue":{"url":"https://api.github.com/repos/projecthydra-labs/geo_concerns/issues/83","repository_url":"https://api.github.com/repos/projecthydra-labs/geo_concerns","labels_url":"https://api.github.com/repos/projecthydra-labs/geo_concerns/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/projecthydra-labs/geo_concerns/issues/83/comments","events_url":"https://api.github.com/repos/projecthydra-labs/geo_concerns/issues/83/events","html_url":"https://github.com/projecthydra-labs/geo_concerns/pull/83","id":141671675,"number":83,"title":"[WIP] Populate Metadata from External File","user":{"login":"drh-stanford","id":1861171,"avatar_url":"https://avatars.githubusercontent.com/u/1861171?v=3","gravatar_id":"","url":"https://api.github.com/users/drh-stanford","html_url":"https://github.com/drh-stanford","followers_url":"https://api.github.com/users/drh-stanford/followers","following_url":"https://api.github.com/users/drh-stanford/following{/other_user}","gists_url":"https://api.github.com/users/drh-stanford/gists{/gist_id}","starred_url":"https://api.github.com/users/drh-stanford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drh-stanford/subscriptions","organizations_url":"https://api.github.com/users/drh-stanford/orgs","repos_url":"https://api.github.com/users/drh-stanford/repos","events_url":"https://api.github.com/users/drh-stanford/events{/privacy}","received_events_url":"https://api.github.com/users/drh-stanford/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/projecthydra-labs/geo_concerns/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-17T18:37:34Z","updated_at":"2016-03-18T21:46:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/projecthydra-labs/geo_concerns/pulls/83","html_url":"https://github.com/projecthydra-labs/geo_concerns/pull/83","diff_url":"https://github.com/projecthydra-labs/geo_concerns/pull/83.diff","patch_url":"https://github.com/projecthydra-labs/geo_concerns/pull/83.patch"},"body":"This PR addresses #71 by adding a Populate Metadata from External File to the *Work edit form. \r\n\r\nSteps to Use:\r\n\r\n1. Create a Work\r\n2. Add a Metadata File with Geo File Format \"FGDC\" (use one from spec/fixtures)\r\n3. Edit the Work\r\n4. Select Populate Metadata pulldown at bottom to Yes\r\n5. See metadata populated :)\r\n\r\nTo get this to work I had to create a \"fake\" setter/getter for an attribute `should_populate_metadata` -- HydraEditor assumes that everything you're doing is with attributes. Also the tests are really lame. We need a factory for creating a work plus metadata file that points to real fixtures."},"comment":{"url":"https://api.github.com/repos/projecthydra-labs/geo_concerns/issues/comments/198556812","html_url":"https://github.com/projecthydra-labs/geo_concerns/pull/83#issuecomment-198556812","issue_url":"https://api.github.com/repos/projecthydra-labs/geo_concerns/issues/83","id":198556812,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T21:46:58Z","updated_at":"2016-03-18T21:46:58Z","body":"\n[![Coverage Status](https://coveralls.io/builds/5472570/badge)](https://coveralls.io/builds/5472570)\n\nCoverage decreased (-1.6%) to 98.382% when pulling **1519a68e5b9b4a34c451ffe62a769a39d921a930 on populate-metadata** into **f58378dfc82510971588c01a44c8d8074e8a1021 on master**.\n"}}