{"action":"created","issue":{"url":"https://api.github.com/repos/CredentialEngine/CredentialRegistry/issues/185","repository_url":"https://api.github.com/repos/CredentialEngine/CredentialRegistry","labels_url":"https://api.github.com/repos/CredentialEngine/CredentialRegistry/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/CredentialEngine/CredentialRegistry/issues/185/comments","events_url":"https://api.github.com/repos/CredentialEngine/CredentialRegistry/issues/185/events","html_url":"https://github.com/CredentialEngine/CredentialRegistry/issues/185","id":296910459,"number":185,"title":"Graph search returning 502 Bad Gateway or 301 Moved Permanently","user":{"login":"siuc-nate","id":21346519,"avatar_url":"https://avatars0.githubusercontent.com/u/21346519?v=4","gravatar_id":"","url":"https://api.github.com/users/siuc-nate","html_url":"https://github.com/siuc-nate","followers_url":"https://api.github.com/users/siuc-nate/followers","following_url":"https://api.github.com/users/siuc-nate/following{/other_user}","gists_url":"https://api.github.com/users/siuc-nate/gists{/gist_id}","starred_url":"https://api.github.com/users/siuc-nate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siuc-nate/subscriptions","organizations_url":"https://api.github.com/users/siuc-nate/orgs","repos_url":"https://api.github.com/users/siuc-nate/repos","events_url":"https://api.github.com/users/siuc-nate/events{/privacy}","received_events_url":"https://api.github.com/users/siuc-nate/received_events","type":"User","site_admin":false},"labels":[{"id":671043644,"url":"https://api.github.com/repos/CredentialEngine/CredentialRegistry/labels/Documentation","name":"Documentation","color":"c2e0c6","default":false},{"id":652304833,"url":"https://api.github.com/repos/CredentialEngine/CredentialRegistry/labels/High%20Priority","name":"High Priority","color":"b60205","default":false},{"id":646371761,"url":"https://api.github.com/repos/CredentialEngine/CredentialRegistry/labels/Search","name":"Search","color":"fbca04","default":false},{"id":555394121,"url":"https://api.github.com/repos/CredentialEngine/CredentialRegistry/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true},{"id":555394123,"url":"https://api.github.com/repos/CredentialEngine/CredentialRegistry/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"science","id":67948,"avatar_url":"https://avatars1.githubusercontent.com/u/67948?v=4","gravatar_id":"","url":"https://api.github.com/users/science","html_url":"https://github.com/science","followers_url":"https://api.github.com/users/science/followers","following_url":"https://api.github.com/users/science/following{/other_user}","gists_url":"https://api.github.com/users/science/gists{/gist_id}","starred_url":"https://api.github.com/users/science/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/science/subscriptions","organizations_url":"https://api.github.com/users/science/orgs","repos_url":"https://api.github.com/users/science/repos","events_url":"https://api.github.com/users/science/events{/privacy}","received_events_url":"https://api.github.com/users/science/received_events","type":"User","site_admin":false},"assignees":[{"login":"science","id":67948,"avatar_url":"https://avatars1.githubusercontent.com/u/67948?v=4","gravatar_id":"","url":"https://api.github.com/users/science","html_url":"https://github.com/science","followers_url":"https://api.github.com/users/science/followers","following_url":"https://api.github.com/users/science/following{/other_user}","gists_url":"https://api.github.com/users/science/gists{/gist_id}","starred_url":"https://api.github.com/users/science/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/science/subscriptions","organizations_url":"https://api.github.com/users/science/orgs","repos_url":"https://api.github.com/users/science/repos","events_url":"https://api.github.com/users/science/events{/privacy}","received_events_url":"https://api.github.com/users/science/received_events","type":"User","site_admin":false},{"login":"rradonic","id":488309,"avatar_url":"https://avatars0.githubusercontent.com/u/488309?v=4","gravatar_id":"","url":"https://api.github.com/users/rradonic","html_url":"https://github.com/rradonic","followers_url":"https://api.github.com/users/rradonic/followers","following_url":"https://api.github.com/users/rradonic/following{/other_user}","gists_url":"https://api.github.com/users/rradonic/gists{/gist_id}","starred_url":"https://api.github.com/users/rradonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rradonic/subscriptions","organizations_url":"https://api.github.com/users/rradonic/orgs","repos_url":"https://api.github.com/users/rradonic/repos","events_url":"https://api.github.com/users/rradonic/events{/privacy}","received_events_url":"https://api.github.com/users/rradonic/received_events","type":"User","site_admin":false},{"login":"jbaird123","id":2940423,"avatar_url":"https://avatars0.githubusercontent.com/u/2940423?v=4","gravatar_id":"","url":"https://api.github.com/users/jbaird123","html_url":"https://github.com/jbaird123","followers_url":"https://api.github.com/users/jbaird123/followers","following_url":"https://api.github.com/users/jbaird123/following{/other_user}","gists_url":"https://api.github.com/users/jbaird123/gists{/gist_id}","starred_url":"https://api.github.com/users/jbaird123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbaird123/subscriptions","organizations_url":"https://api.github.com/users/jbaird123/orgs","repos_url":"https://api.github.com/users/jbaird123/repos","events_url":"https://api.github.com/users/jbaird123/events{/privacy}","received_events_url":"https://api.github.com/users/jbaird123/received_events","type":"User","site_admin":false},{"login":"siuc-nate","id":21346519,"avatar_url":"https://avatars0.githubusercontent.com/u/21346519?v=4","gravatar_id":"","url":"https://api.github.com/users/siuc-nate","html_url":"https://github.com/siuc-nate","followers_url":"https://api.github.com/users/siuc-nate/followers","following_url":"https://api.github.com/users/siuc-nate/following{/other_user}","gists_url":"https://api.github.com/users/siuc-nate/gists{/gist_id}","starred_url":"https://api.github.com/users/siuc-nate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siuc-nate/subscriptions","organizations_url":"https://api.github.com/users/siuc-nate/orgs","repos_url":"https://api.github.com/users/siuc-nate/repos","events_url":"https://api.github.com/users/siuc-nate/events{/privacy}","received_events_url":"https://api.github.com/users/siuc-nate/received_events","type":"User","site_admin":false},{"login":"cwd-mparsons","id":26332112,"avatar_url":"https://avatars2.githubusercontent.com/u/26332112?v=4","gravatar_id":"","url":"https://api.github.com/users/cwd-mparsons","html_url":"https://github.com/cwd-mparsons","followers_url":"https://api.github.com/users/cwd-mparsons/followers","following_url":"https://api.github.com/users/cwd-mparsons/following{/other_user}","gists_url":"https://api.github.com/users/cwd-mparsons/gists{/gist_id}","starred_url":"https://api.github.com/users/cwd-mparsons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwd-mparsons/subscriptions","organizations_url":"https://api.github.com/users/cwd-mparsons/orgs","repos_url":"https://api.github.com/users/cwd-mparsons/repos","events_url":"https://api.github.com/users/cwd-mparsons/events{/privacy}","received_events_url":"https://api.github.com/users/cwd-mparsons/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-02-13T22:33:46Z","updated_at":"2018-02-14T15:23:18Z","closed_at":null,"author_association":"COLLABORATOR","body":"I finally had a chance to mess around with the graph search endpoint, and I haven't had much luck. Hopefully you can point out what I'm doing wrong (the tool used in the screenshots below is [Advanced REST Client](https://install.advancedrestclient.com)):\r\n\r\nUsing the example query from the [examples page](https://github.com/CredentialEngine/CredentialRegistry/blob/master/docs/graphql-examples.md):\r\n\r\n```\r\n{\r\n  \"query\": \"query searchCredentials($conditions: [QueryCondition]) { credentials(conditions: $conditions) { ctid name }}\",\r\n  \"variables\": {\r\n    \"conditions\": [\r\n      {\r\n        \"object\": \"Competency\",\r\n        \"element\": \"description\",\r\n        \"value\": \"robotics\",\r\n        \"operator\": \"CONTAINS\"\r\n      }\r\n    ]\r\n  }\r\n}\r\n```\r\nI have made POST requests (with the above in the body of the request) to the following:\r\nhttps://credentialengineregistry.org/ce-registry/graph-search\r\nhttps://credentialengineregistry.org/resources/graph-search\r\nhttps://credentialengineregistry.org/graph-search\r\nThese all return 503 Bad Gateway. \r\n![image](https://user-images.githubusercontent.com/21346519/36177256-bf54b296-10da-11e8-85c7-1bb5b198598b.png)\r\n\r\nTrying again with just http:// I get:\r\nhttp://credentialengineregistry.org/ce-registry/graph-search\r\nhttp://credentialengineregistry.org/resources/graph-search\r\nhttp://credentialengineregistry.org/graph-search\r\nThese all return 301 Moved Permanently.\r\n![image](https://user-images.githubusercontent.com/21346519/36177313-dfeb52a8-10da-11e8-83d4-25d478918145.png)\r\n\r\nThe documentation doesn't specify exactly what the URL should look like, so I'm not sure which of the 3 formats above (if any) are correct. I assume the body content type should be `application/json`, but I'm not sure if the request even gets far enough for that to matter. \r\n\r\nHas the graph search not been implemented on the production registry server?\r\n"},"comment":{"url":"https://api.github.com/repos/CredentialEngine/CredentialRegistry/issues/comments/365640592","html_url":"https://github.com/CredentialEngine/CredentialRegistry/issues/185#issuecomment-365640592","issue_url":"https://api.github.com/repos/CredentialEngine/CredentialRegistry/issues/185","id":365640592,"user":{"login":"siuc-nate","id":21346519,"avatar_url":"https://avatars0.githubusercontent.com/u/21346519?v=4","gravatar_id":"","url":"https://api.github.com/users/siuc-nate","html_url":"https://github.com/siuc-nate","followers_url":"https://api.github.com/users/siuc-nate/followers","following_url":"https://api.github.com/users/siuc-nate/following{/other_user}","gists_url":"https://api.github.com/users/siuc-nate/gists{/gist_id}","starred_url":"https://api.github.com/users/siuc-nate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siuc-nate/subscriptions","organizations_url":"https://api.github.com/users/siuc-nate/orgs","repos_url":"https://api.github.com/users/siuc-nate/repos","events_url":"https://api.github.com/users/siuc-nate/events{/privacy}","received_events_url":"https://api.github.com/users/siuc-nate/received_events","type":"User","site_admin":false},"created_at":"2018-02-14T15:23:18Z","updated_at":"2018-02-14T15:23:18Z","author_association":"COLLABORATOR","body":"Thanks, that's all very useful information. And I apologize for forgetting that you mentioned the namespace thing earlier. \r\n\r\nWe can leave it on the sandbox for now - somewhere along the line I picked up the notion that it was already implemented on production, hence my confusion earlier. \r\n\r\nI do have one question though:\r\n\r\n> That's probably because those credentials don't match any of the paths considered as required. In the case of credentials, the paths are:\r\n>\r\n> -`Organization > Credential`\r\n> -`Credential > ConditionProfile > CredentialAlignmentObject > Competency`\r\n> -`Credential > ConditionProfile > AssessmentProfile > CredentialAlignmentObject > Competency`\r\n> -`Credential > ConditionProfile > LearningOpportunity > CredentialAlignmentObject > Competency`\r\n> -`Credential > ConditionProfile > Credential > ConditionProfile > CredentialAlignmentObject >` \r\n> -`Competency`\r\n>If the credentials don't match at least one of these paths, even if they match the filters, they won't be returned as search results.\r\n\r\nDoes this mean it's not possible to do a query that simply returns all credentials of a given type (or list of types) (or similar queries that don't really need to traverse a graph)?\r\n"}}
{"actor":{"display_login":"siuc-nate"}}