{"action":"created","issue":{"url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/484","labels_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/484/labels{/name}","comments_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/484/comments","events_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/484/events","html_url":"https://github.com/RESTful-Drupal/restful/issues/484","id":69657398,"number":484,"title":"Ability to apply language to field filters","user":{"login":"krisgraham","id":1225424,"avatar_url":"https://avatars.githubusercontent.com/u/1225424?v=3","gravatar_id":"","url":"https://api.github.com/users/krisgraham","html_url":"https://github.com/krisgraham","followers_url":"https://api.github.com/users/krisgraham/followers","following_url":"https://api.github.com/users/krisgraham/following{/other_user}","gists_url":"https://api.github.com/users/krisgraham/gists{/gist_id}","starred_url":"https://api.github.com/users/krisgraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krisgraham/subscriptions","organizations_url":"https://api.github.com/users/krisgraham/orgs","repos_url":"https://api.github.com/users/krisgraham/repos","events_url":"https://api.github.com/users/krisgraham/events{/privacy}","received_events_url":"https://api.github.com/users/krisgraham/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-20T19:02:22Z","updated_at":"2015-04-21T16:33:26Z","closed_at":null,"body":"I need to be able to apply a language dimension to my filter parameters. For example, I may want to return all results for a given resource which have an English audio file (and exclude those with Spanish or French audio files but no English file). Is there a recommended way to accomplish this? Currently, these field filters appear to be language agnostic.\r\n\r\nWould something like filter[audio][language], where [language] could be any field column, not just language or value, make sense? Currently \"value\" seems somewhat baked in (in parseRequestForListFilter() in RestfulBase).\r\n\r\nAlternatively, a global language filter that would apply to all filters might solve the issue."},"comment":{"url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/comments/94863700","html_url":"https://github.com/RESTful-Drupal/restful/issues/484#issuecomment-94863700","issue_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/484","id":94863700,"user":{"login":"krisgraham","id":1225424,"avatar_url":"https://avatars.githubusercontent.com/u/1225424?v=3","gravatar_id":"","url":"https://api.github.com/users/krisgraham","html_url":"https://github.com/krisgraham","followers_url":"https://api.github.com/users/krisgraham/followers","following_url":"https://api.github.com/users/krisgraham/following{/other_user}","gists_url":"https://api.github.com/users/krisgraham/gists{/gist_id}","starred_url":"https://api.github.com/users/krisgraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krisgraham/subscriptions","organizations_url":"https://api.github.com/users/krisgraham/orgs","repos_url":"https://api.github.com/users/krisgraham/repos","events_url":"https://api.github.com/users/krisgraham/events{/privacy}","received_events_url":"https://api.github.com/users/krisgraham/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T16:33:26Z","updated_at":"2015-04-21T16:33:26Z","body":"The second issue can be resolved by adding a $query->fieldLanguageCondition() [https://github.com/RESTful-Drupal/restful/blob/7.x-1.x/plugins/restful/RestfulDataProviderEFQ.php#L179] (here), but it might deserve to be a setting, and undefined language would need to be considered as well (is it treated as another language or included as an OR with all field queries)"}}