openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Mockserver: Filters on deep navigations are not working in mockserver

Open anoojrkrishnan opened this issue 8 years ago • 9 comments

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)

anoojrkrishnan avatar Nov 20 '18 07:11 anoojrkrishnan

Hello @anoojrkrishnan ,

Could you provide us with an example via https://jsbin.com/ in order to reproduce this issue?

Regards, Iliana

IlianaB avatar Nov 20 '18 13:11 IlianaB

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

anoojrkrishnan avatar Nov 20 '18 16:11 anoojrkrishnan

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

IlianaB avatar Nov 21 '18 11:11 IlianaB

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,

anoojrkrishnan avatar Jan 02 '19 10:01 anoojrkrishnan

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

fifoosid avatar Jan 11 '19 11:01 fifoosid

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.

allacherkes avatar Feb 27 '19 12:02 allacherkes

Hello @fifoosid

We've a similar issue. Is there any progress on 1970030447?

Regards,

franzreitmayer avatar Oct 12 '21 12:10 franzreitmayer

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

rotemso avatar Oct 14 '21 07:10 rotemso

Since there is no response from the author for more than 4 weeks I'm closing the ticket.

flovogt avatar Mar 01 '22 08:03 flovogt