{"action":"created","issue":{"url":"https://api.github.com/repos/sul-dlss/dor-services/issues/112","labels_url":"https://api.github.com/repos/sul-dlss/dor-services/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/sul-dlss/dor-services/issues/112/comments","events_url":"https://api.github.com/repos/sul-dlss/dor-services/issues/112/events","html_url":"https://github.com/sul-dlss/dor-services/pull/112","id":115574203,"number":112,"title":"add ability to refresh cached version of workflows datastream","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":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-06T19:46:46Z","updated_at":"2015-11-09T19:39:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sul-dlss/dor-services/pulls/112","html_url":"https://github.com/sul-dlss/dor-services/pull/112","diff_url":"https://github.com/sul-dlss/dor-services/pull/112.diff","patch_url":"https://github.com/sul-dlss/dor-services/pull/112.patch"},"body":"Fixes #111 \r\n\r\nThe `Dor::Item` object caches the XML for the workflows data stream. I've added the ability to refresh the cached XML from the workflow service using `item.workflows.content(true)`. I've also changed `create_workflow` (the new name for the deprecated `initialize_workflow`) so that after it calls the workflow service to create a new workflow, it refreshes the cache. I added unit tests for the cache invalidation logic.\r\n\r\n@atz @jmartin-sul please review"},"comment":{"url":"https://api.github.com/repos/sul-dlss/dor-services/issues/comments/155168477","html_url":"https://github.com/sul-dlss/dor-services/pull/112#issuecomment-155168477","issue_url":"https://api.github.com/repos/sul-dlss/dor-services/issues/112","id":155168477,"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},"created_at":"2015-11-09T19:39:10Z","updated_at":"2015-11-09T19:39:10Z","body":"ok i added a todo comment to the argo PR for this fix. https://github.com/sul-dlss/argo/pull/113. go ahead and merge..."}}