Project

General

Profile

Actions

Improvement #10389

open

API Call Improvement for Device Listing Page Filter

Added by Oshani Silva about 1 year ago. Updated 9 months ago.

Status:
Implementation
Priority:
None
Assignee:
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.

  1. Send the filter list from the front end
  2. 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
  3. 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

Also available in: Atom PDF