{"action":"created","issue":{"url":"https://api.github.com/repos/openstax/accounts/issues/134","labels_url":"https://api.github.com/repos/openstax/accounts/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/openstax/accounts/issues/134/comments","events_url":"https://api.github.com/repos/openstax/accounts/issues/134/events","html_url":"https://github.com/openstax/accounts/issues/134","id":58780662,"number":134,"title":"Allow for exact matching on user search","user":{"login":"pumazi","id":168470,"avatar_url":"https://avatars.githubusercontent.com/u/168470?v=3","gravatar_id":"","url":"https://api.github.com/users/pumazi","html_url":"https://github.com/pumazi","followers_url":"https://api.github.com/users/pumazi/followers","following_url":"https://api.github.com/users/pumazi/following{/other_user}","gists_url":"https://api.github.com/users/pumazi/gists{/gist_id}","starred_url":"https://api.github.com/users/pumazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pumazi/subscriptions","organizations_url":"https://api.github.com/users/pumazi/orgs","repos_url":"https://api.github.com/users/pumazi/repos","events_url":"https://api.github.com/users/pumazi/events{/privacy}","received_events_url":"https://api.github.com/users/pumazi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-02-24T18:16:36Z","updated_at":"2015-02-25T18:28:11Z","closed_at":null,"body":"This comes out of Connexions/cnx-publishing#83. We identify the users by username (partly because they are human readable and partly because that's what legacy uses.) As part of publishing, we make a shadow record of user-info in accounts (for search and representation of data). To do this, we search accounts by username (the only piece of unique data we have available at this time). However, it is currently possible to match a username within another username. For example, searching for username 'moo' would match 'moo', 'smoo', 'wolfsmoon', etc. We currently work around this by iterating through the results to exactly match the username.\r\n\r\nWe would like to possibly submit a new parameter that makes the search criteria match exactly. For example, searching for ``?q=first_name:\"Smoo Ooms\"&exact=1`` should match only records with that exact name. If this general case parameter ``exact=<boolean>`` can not be done, we at the very least would like something that can do an exact match on the ``username`` (maybe something like ``exact-username:<string>``."},"comment":{"url":"https://api.github.com/repos/openstax/accounts/issues/comments/76024283","html_url":"https://github.com/openstax/accounts/issues/134#issuecomment-76024283","issue_url":"https://api.github.com/repos/openstax/accounts/issues/134","id":76024283,"user":{"login":"jpslav","id":1001691,"avatar_url":"https://avatars.githubusercontent.com/u/1001691?v=3","gravatar_id":"","url":"https://api.github.com/users/jpslav","html_url":"https://github.com/jpslav","followers_url":"https://api.github.com/users/jpslav/followers","following_url":"https://api.github.com/users/jpslav/following{/other_user}","gists_url":"https://api.github.com/users/jpslav/gists{/gist_id}","starred_url":"https://api.github.com/users/jpslav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpslav/subscriptions","organizations_url":"https://api.github.com/users/jpslav/orgs","repos_url":"https://api.github.com/users/jpslav/repos","events_url":"https://api.github.com/users/jpslav/events{/privacy}","received_events_url":"https://api.github.com/users/jpslav/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T18:28:11Z","updated_at":"2015-02-25T18:28:11Z","body":"@pumazi how urgent is the need to handle multiple callbacks?"}}