All the dynamic fields are not getting synced to Registration Client in MOSIPv1.1.5

Problem

We have observed that when the number of dynamic fields is more than 10 then all the dynamic fields are not getting synced to the client application.

Root Cause

When the registration client performs sync it just fetches only 10 dynamic fields (irrespective of any order) because the default page size in sync API is set as 10.

Solution

There is a simple workaround for this issue. The page size can be set in the application-mz.properties, by updating the below property.

mosip.kernel.syncdata-service-dynamicfield-url=https://{base_url}/v1/masterdata/dynamicfields?pageSize=30