{"action":"created","issue":{"url":"https://api.github.com/repos/rkorytkowski/openmrs-owa-conceptdictionary/issues/11","repository_url":"https://api.github.com/repos/rkorytkowski/openmrs-owa-conceptdictionary","labels_url":"https://api.github.com/repos/rkorytkowski/openmrs-owa-conceptdictionary/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/rkorytkowski/openmrs-owa-conceptdictionary/issues/11/comments","events_url":"https://api.github.com/repos/rkorytkowski/openmrs-owa-conceptdictionary/issues/11/events","html_url":"https://github.com/rkorytkowski/openmrs-owa-conceptdictionary/pull/11","id":139319821,"number":11,"title":"RA-1054 Added concept search page","user":{"login":"tmarzeion","id":17570611,"avatar_url":"https://avatars.githubusercontent.com/u/17570611?v=3","gravatar_id":"","url":"https://api.github.com/users/tmarzeion","html_url":"https://github.com/tmarzeion","followers_url":"https://api.github.com/users/tmarzeion/followers","following_url":"https://api.github.com/users/tmarzeion/following{/other_user}","gists_url":"https://api.github.com/users/tmarzeion/gists{/gist_id}","starred_url":"https://api.github.com/users/tmarzeion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmarzeion/subscriptions","organizations_url":"https://api.github.com/users/tmarzeion/orgs","repos_url":"https://api.github.com/users/tmarzeion/repos","events_url":"https://api.github.com/users/tmarzeion/events{/privacy}","received_events_url":"https://api.github.com/users/tmarzeion/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-08T16:17:53Z","updated_at":"2016-03-09T09:55:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rkorytkowski/openmrs-owa-conceptdictionary/pulls/11","html_url":"https://github.com/rkorytkowski/openmrs-owa-conceptdictionary/pull/11","diff_url":"https://github.com/rkorytkowski/openmrs-owa-conceptdictionary/pull/11.diff","patch_url":"https://github.com/rkorytkowski/openmrs-owa-conceptdictionary/pull/11.patch"},"body":"I've added concept search page, which needs upgrades:\r\n- I'm downloading whole concept dictionary at beginning (REST methods can return only single object or whole dictionary), that may cause user to download lots of data he won't use, but makes searching very dynamic (refresh rate when changing query is client-sided, so its very fast)\r\n- I couldn't get retired concepts (REST returns whole dictionary without retired ones), so I didn't implement \"Show retired\" checkbox\r\n\r\n//edit\r\n- Didn't implement searching by ID -> There is no \"id\" field in REST json response object\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rkorytkowski/openmrs-owa-conceptdictionary/issues/comments/194216260","html_url":"https://github.com/rkorytkowski/openmrs-owa-conceptdictionary/pull/11#issuecomment-194216260","issue_url":"https://api.github.com/repos/rkorytkowski/openmrs-owa-conceptdictionary/issues/11","id":194216260,"user":{"login":"rkorytkowski","id":1163157,"avatar_url":"https://avatars.githubusercontent.com/u/1163157?v=3","gravatar_id":"","url":"https://api.github.com/users/rkorytkowski","html_url":"https://github.com/rkorytkowski","followers_url":"https://api.github.com/users/rkorytkowski/followers","following_url":"https://api.github.com/users/rkorytkowski/following{/other_user}","gists_url":"https://api.github.com/users/rkorytkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/rkorytkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkorytkowski/subscriptions","organizations_url":"https://api.github.com/users/rkorytkowski/orgs","repos_url":"https://api.github.com/users/rkorytkowski/repos","events_url":"https://api.github.com/users/rkorytkowski/events{/privacy}","received_events_url":"https://api.github.com/users/rkorytkowski/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T09:55:24Z","updated_at":"2016-03-09T09:55:24Z","body":"The query will not return you the whole concept dictionary. There's a page limit set via the webservices.rest.maxResultsDefault global property in Administration -> Manage Global Properties. See https://wiki.openmrs.org/display/docs/REST+Module\r\n\r\nGiven that you cannot do simple filtering on results you get, rather you must always issue a new query using /concept?q=Someinput"}}