{"action":"created","issue":{"url":"https://api.github.com/repos/sul-dlss/dor-services/issues/155","repository_url":"https://api.github.com/repos/sul-dlss/dor-services","labels_url":"https://api.github.com/repos/sul-dlss/dor-services/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/sul-dlss/dor-services/issues/155/comments","events_url":"https://api.github.com/repos/sul-dlss/dor-services/issues/155/events","html_url":"https://github.com/sul-dlss/dor-services/issues/155","id":131150036,"number":155,"title":"Using DruidTools in dor-services","user":{"login":"darrenleeweber","id":240623,"avatar_url":"https://avatars.githubusercontent.com/u/240623?v=3","gravatar_id":"","url":"https://api.github.com/users/darrenleeweber","html_url":"https://github.com/darrenleeweber","followers_url":"https://api.github.com/users/darrenleeweber/followers","following_url":"https://api.github.com/users/darrenleeweber/following{/other_user}","gists_url":"https://api.github.com/users/darrenleeweber/gists{/gist_id}","starred_url":"https://api.github.com/users/darrenleeweber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrenleeweber/subscriptions","organizations_url":"https://api.github.com/users/darrenleeweber/orgs","repos_url":"https://api.github.com/users/darrenleeweber/repos","events_url":"https://api.github.com/users/darrenleeweber/events{/privacy}","received_events_url":"https://api.github.com/users/darrenleeweber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-03T20:56:05Z","updated_at":"2016-02-03T21:34:36Z","closed_at":null,"body":"What is the general policy on using DruidTools in dor-services? During recent discussions about this in slack, @atz noted that dor-services must be allowed to work with things that are not a valid DRUID.\r\n\r\nIs this the desired or necessary behavior?  Otherwise, dor-services could apply a global rule that everything dor-services handles must be a valid DRUID, so that DruidTools could be used consistently for parsing and managing DRUIDs for methods like `item.pid` or `item.id`.\r\n"},"comment":{"url":"https://api.github.com/repos/sul-dlss/dor-services/issues/comments/179481890","html_url":"https://github.com/sul-dlss/dor-services/issues/155#issuecomment-179481890","issue_url":"https://api.github.com/repos/sul-dlss/dor-services/issues/155","id":179481890,"user":{"login":"darrenleeweber","id":240623,"avatar_url":"https://avatars.githubusercontent.com/u/240623?v=3","gravatar_id":"","url":"https://api.github.com/users/darrenleeweber","html_url":"https://github.com/darrenleeweber","followers_url":"https://api.github.com/users/darrenleeweber/followers","following_url":"https://api.github.com/users/darrenleeweber/following{/other_user}","gists_url":"https://api.github.com/users/darrenleeweber/gists{/gist_id}","starred_url":"https://api.github.com/users/darrenleeweber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrenleeweber/subscriptions","organizations_url":"https://api.github.com/users/darrenleeweber/orgs","repos_url":"https://api.github.com/users/darrenleeweber/repos","events_url":"https://api.github.com/users/darrenleeweber/events{/privacy}","received_events_url":"https://api.github.com/users/darrenleeweber/received_events","type":"User","site_admin":false},"created_at":"2016-02-03T21:34:36Z","updated_at":"2016-02-03T21:34:36Z","body":"For reference, the slack chat was around creating this method in Argo:\r\nhttps://github.com/sul-dlss/argo/blob/issues76-apo-access/app/controllers/application_controller.rb#L68-L93\r\n\r\nWhere it seems that most everything should be a DRUID, but we need to allow for things that are not.  The code does check for a valid DRUID and simply issues are warning when it's not and allows Dor to find it (dor-services).  The warning may help detect and correct typos."}}