Actions
Improvement #10389
openAPI Call Improvement for Device Listing Page Filter
Start date:
18/10/2023
Due date:
% Done:
0%
Estimated time:
Device Type:
Component:
Type:
Description
In the current device listing page we have api calls ongoing to fetch the groups, types.. (etc.) which is needed to set the values of the device list filter.
As an improvement we can do the below changes.
Modify the get filters api to send the filters with the values set from the backend itself.
- Send the filter list from the front end
- Check if the user has permissions for the requested filters.
- Need to change the current user management logic here as it is all done in the API layer (move it to a separate service).
- If user has the permission for the filter do separate service calls to get the values of the filter - Send back the filter list with the values set
With the above steps we do not need to make several API calls to fetch the filter values from the UI.
Actions