{"action":"created","issue":{"url":"https://api.github.com/repos/sul-dlss/argo/issues/73","labels_url":"https://api.github.com/repos/sul-dlss/argo/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/sul-dlss/argo/issues/73/comments","events_url":"https://api.github.com/repos/sul-dlss/argo/issues/73/events","html_url":"https://github.com/sul-dlss/argo/issues/73","id":114496698,"number":73,"title":"Workflow grid - status reset button problem on workflows related to repo = sdr","user":{"login":"LynnMcRae","id":1824732,"avatar_url":"https://avatars.githubusercontent.com/u/1824732?v=3","gravatar_id":"","url":"https://api.github.com/users/LynnMcRae","html_url":"https://github.com/LynnMcRae","followers_url":"https://api.github.com/users/LynnMcRae/followers","following_url":"https://api.github.com/users/LynnMcRae/following{/other_user}","gists_url":"https://api.github.com/users/LynnMcRae/gists{/gist_id}","starred_url":"https://api.github.com/users/LynnMcRae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LynnMcRae/subscriptions","organizations_url":"https://api.github.com/users/LynnMcRae/orgs","repos_url":"https://api.github.com/users/LynnMcRae/repos","events_url":"https://api.github.com/users/LynnMcRae/events{/privacy}","received_events_url":"https://api.github.com/users/LynnMcRae/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sul-dlss/argo/labels/+1","name":"+1","color":"5319e7"},{"url":"https://api.github.com/repos/sul-dlss/argo/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"mejackreed","id":1656824,"avatar_url":"https://avatars.githubusercontent.com/u/1656824?v=3","gravatar_id":"","url":"https://api.github.com/users/mejackreed","html_url":"https://github.com/mejackreed","followers_url":"https://api.github.com/users/mejackreed/followers","following_url":"https://api.github.com/users/mejackreed/following{/other_user}","gists_url":"https://api.github.com/users/mejackreed/gists{/gist_id}","starred_url":"https://api.github.com/users/mejackreed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mejackreed/subscriptions","organizations_url":"https://api.github.com/users/mejackreed/orgs","repos_url":"https://api.github.com/users/mejackreed/repos","events_url":"https://api.github.com/users/mejackreed/events{/privacy}","received_events_url":"https://api.github.com/users/mejackreed/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/sul-dlss/argo/milestones/5","html_url":"https://github.com/sul-dlss/argo/milestones/Sprint%204","labels_url":"https://api.github.com/repos/sul-dlss/argo/milestones/5/labels","id":1425816,"number":5,"title":"Sprint 4","description":"","creator":{"login":"mejackreed","id":1656824,"avatar_url":"https://avatars.githubusercontent.com/u/1656824?v=3","gravatar_id":"","url":"https://api.github.com/users/mejackreed","html_url":"https://github.com/mejackreed","followers_url":"https://api.github.com/users/mejackreed/followers","following_url":"https://api.github.com/users/mejackreed/following{/other_user}","gists_url":"https://api.github.com/users/mejackreed/gists{/gist_id}","starred_url":"https://api.github.com/users/mejackreed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mejackreed/subscriptions","organizations_url":"https://api.github.com/users/mejackreed/orgs","repos_url":"https://api.github.com/users/mejackreed/repos","events_url":"https://api.github.com/users/mejackreed/events{/privacy}","received_events_url":"https://api.github.com/users/mejackreed/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":2,"state":"open","created_at":"2015-11-23T18:58:52Z","updated_at":"2015-11-23T21:46:19Z","due_on":"2015-12-07T05:00:00Z","closed_at":null},"comments":14,"created_at":"2015-11-01T22:16:56Z","updated_at":"2015-11-23T22:22:36Z","closed_at":null,"body":"when you make a call to reset a step you must indicate the repo associated with that step. compare: \r\n\r\nDor::WorkflowService.update_workflow_status 'sdr', druid, 'sdrIngestWF', 'verify-agreement', 'waiting' \r\nDor::WorkflowService.update_workflow_status 'dor', druid, 'accessionWF', 'provenance-metadata', 'waiting' \r\n\r\nNote the distinction between sdr and dor in the call. When this feature was implemented in Argo, the repo variable was hard coded into Argo, see the code below: \r\nhttps://github.com/sul-dlss/argo/blob/cb68582b783bd0593a1cb412918cb767800edddb/app/controllers/report_controller.rb#L76 \r\nThe reset button logic needs to reference the appropriate repo; similar to what (I think) is being done here: \r\nhttps://github.com/sul-dlss/argo/blob/48c1b6071f7852e299d2ea9b7e7fa7a64866cf74/app/helpers/workflow_helper.rb#L34 \r\n"},"comment":{"url":"https://api.github.com/repos/sul-dlss/argo/issues/comments/159086197","html_url":"https://github.com/sul-dlss/argo/issues/73#issuecomment-159086197","issue_url":"https://api.github.com/repos/sul-dlss/argo/issues/73","id":159086197,"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-23T22:22:35Z","updated_at":"2015-11-23T22:22:35Z","body":"if you need a list of all workflow definitions, you can get them from the Solr index using `objectType_t:workflow` and `fl= id,workflow_name_s`, then you can fetch the data from Fedora, like so:  \r\n\r\n```ruby\r\n#{FEDORA_URL}/objects/#{druid}/datastreams/workflowDefinition/content\r\n```\r\n\r\nThere's some example code that does it here: https://github.com/sul-dlss/robot-master/blob/master/bin/robot-download-workflows#L45\r\n\r\nin theory, they are all cacheable as they change rarely, if ever."}}