{"action":"created","issue":{"url":"https://api.github.com/repos/SAP/openui5/issues/329","labels_url":"https://api.github.com/repos/SAP/openui5/issues/329/labels{/name}","comments_url":"https://api.github.com/repos/SAP/openui5/issues/329/comments","events_url":"https://api.github.com/repos/SAP/openui5/issues/329/events","html_url":"https://github.com/SAP/openui5/issues/329","id":58824759,"number":329,"title":"MockServer: Apply $expand before $filter","user":{"login":"cgerold","id":1333087,"avatar_url":"https://avatars.githubusercontent.com/u/1333087?v=3","gravatar_id":"","url":"https://api.github.com/users/cgerold","html_url":"https://github.com/cgerold","followers_url":"https://api.github.com/users/cgerold/followers","following_url":"https://api.github.com/users/cgerold/following{/other_user}","gists_url":"https://api.github.com/users/cgerold/gists{/gist_id}","starred_url":"https://api.github.com/users/cgerold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgerold/subscriptions","organizations_url":"https://api.github.com/users/cgerold/orgs","repos_url":"https://api.github.com/users/cgerold/repos","events_url":"https://api.github.com/users/cgerold/events{/privacy}","received_events_url":"https://api.github.com/users/cgerold/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SAP/openui5/labels/approved","name":"approved","color":"FFBF7F"},{"url":"https://api.github.com/repos/SAP/openui5/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-24T23:36:38Z","updated_at":"2015-07-24T14:54:28Z","closed_at":null,"body":"OpenUI5 Version: 1.26.7\r\nClass: sap.ui.core.util.MockServer\r\nMethod: MockServer.prototype._orderQueryOptions\r\n\r\nThe expand parameters should be pushed to the ordered url params before the filter params. Otherwise you can not apply a filter on an attribute of a nested navigation property.\r\n\r\nThe following pseudo example helps to demonstrate the problem.\r\nDataSet:\r\n```\r\nCustomer {\r\n    Order {\r\n       ID: 1\r\n    }\r\n}\r\n```\r\n\r\nOData query:\r\n```\r\n    filter=Order/ID eq 1&expand=Order\r\n```\r\n\r\nThis circumstance causes an error because the filter query gets executed before the expand provides the attributes(data) of the *Order* object."},"comment":{"url":"https://api.github.com/repos/SAP/openui5/issues/comments/124549546","html_url":"https://github.com/SAP/openui5/issues/329#issuecomment-124549546","issue_url":"https://api.github.com/repos/SAP/openui5/issues/329","id":124549546,"user":{"login":"cgerold","id":1333087,"avatar_url":"https://avatars.githubusercontent.com/u/1333087?v=3","gravatar_id":"","url":"https://api.github.com/users/cgerold","html_url":"https://github.com/cgerold","followers_url":"https://api.github.com/users/cgerold/followers","following_url":"https://api.github.com/users/cgerold/following{/other_user}","gists_url":"https://api.github.com/users/cgerold/gists{/gist_id}","starred_url":"https://api.github.com/users/cgerold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgerold/subscriptions","organizations_url":"https://api.github.com/users/cgerold/orgs","repos_url":"https://api.github.com/users/cgerold/repos","events_url":"https://api.github.com/users/cgerold/events{/privacy}","received_events_url":"https://api.github.com/users/cgerold/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T14:54:28Z","updated_at":"2015-07-24T14:54:28Z","body":"Thanks for your feedback :+1: "}}