Skip to content

Improve get templates endpoint to return the amount of entities of each Template to the client #8506

@daneryl

Description

@daneryl

Page where we have table of Templates also displays amount of entities for each Template, the problem is that the client side makes one request for each Template whenever data is re-validated.

I believe that the back-end should be responsible for delivery what the client needs in terms of data to populate the UI on a single HTTP request, avoiding flooding our infra with too many requests.

Image

This is a easy win, specially now that we have layered architecture for Templates module.

The ideal solution is to create a View Model (A Data shape specific for a View/UI/Page) for a Template that also includes amount of Entities.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions