Mockserver: Filters on deep navigations are not working in mockserver
OpenUI5 version:0.2.3
Browser/version (+device/version):
Any other tested browsers/devices(OK/FAIL):
URL (minimal example if possible): rootEntity/a/b/property eq 'anuValue' filter is not supporting but I can able to read the same property and display in table User/password (if required and possible - do not post any confidential information here):
Steps to reproduce the problem: 1.Apply filters to deep navigations 2.For eq: rootEntity/a/b/property eq 'value' 3.
What is the expected result?
What happens instead? Navigation property a not expanded, so property 'b/property' not found Any other information? (attach screenshot if possible)
Hello @anoojrkrishnan ,
Could you provide us with an example via https://jsbin.com/ in order to reproduce this issue?
Regards, Iliana
Hi Iliana,
Please have a look at the following application.
-if you use the search field, it will be filtering based on column3 values which is nothing but "EmployeeDataReplicationElement/PersonNav/personIdExternal" and is working as expected.
-
Now you can go to the controller and comment out line number 65 and uncomment 64
-
Now if you use search field it should filter based on column5 which is nothing but "EmployeeDataReplicationElement/PersonNav/PersonalInfoNav/firstName" and the same is not working
Application Link : https://next.plnkr.co/edit/1SLwxEGUAlDVdW8uVF4m?p=preview&preview
Hello @anoojrkrishnan ,
Thank you very much for the provided example. However, I am not able to reproduce any problem with it. Commenting out line 65 and uncommenting line 64 results in filtering based on first names (column 5). For example, writing "firstName 1" in the SearchField leads to displaying of two records in the table - the ones with "firstName 1" and "firstName 10" (as the filter operator is 'Contains'). Isn't this the expected behavior from your side?
Regards, Iliana
Hello @IlianaB
Please use the following example. The other one I shared was not proper. https://next.plnkr.co/edit/1SLwxEGUAlDVdW8uVF4m?preview
Details: Root Entity: ONB2Process ONB2Process to ONB2UsefulContactActivity ( Many to one) ONB2UsefulContactActivity to ONB2UsefulContact ( one to many)
-
Without changing anything if you use search field it will be filtering on "column 3" which is a property from a navigation property "ONB2UsefulContactActivity " which is having many to one relation with my root element.
-
Now if you comment line number "65" of controller and uncomment "66" and try to use serach field. it will applying filter on user which is a property "user" from "ONB2UsefulContact" and which is having one to many relation with its parent and the same is not working,
Hello @anoojrkrishnan , Thank you for sharing this finding. I've created an internal incident 1970030447. The status of the issue will be updated here in GitHub. Regards, Filip
Hello @anoojrkrishnan , Are you sure that it is Mock Server issue? Mock server is responsible to bring data which is put in Model. The ui (table data) is displayed based on Model data. If you see all data in table then Mock brought all relevant data. Action of filtering on fields doesn’t involve Mock Server, it is action on Model only.
Hello @fifoosid
We've a similar issue. Is there any progress on 1970030447?
Regards,
Hi @franzreitmayer, As @allacherkes mentioned above: Mock server is responsible to bring data which is put in Model. The ui (table data) is displayed based on Model data. If you see all data in table then Mock brought all relevant data. Action of filtering on fields doesn’t involve Mock Server, it is action on Model only.
Please verify the issue is indeed in the mock server behavior, and if it is please provide step-by-step example (via https://jsbin.com/ for example) that can be used to recreate the issue.
Please show in this example only mock server functionality that fails with direct request to the service, which mock server fails to bring the correct result (without any farther manipulations on model as filtering...).
Thanks, Rotem
Since there is no response from the author for more than 4 weeks I'm closing the ticket.