Closed galbwe closed 3 years ago
At the moment, we are sending a request to get tags for each lead. This can take about 10s when there are 100 leads to render.
we can probably cut down overhead from sending network requests by returning tags in the leads response. Something like
"leads": [ { "tags": [ { "id": 1, "tag": "Animals", }, ... ], "assigned": null, "colorado_region": null, "company_address": "16965 Pine Lane #120, Parker, CO, 80134", "company_name": "Advocates for Children CASA", ... },
Update the GET /leads endpoint so the response body includes a tags array similar to the above.
GET /leads
tags
@galbwe Can I get it assigned?
closed via https://github.com/codefordenver/partner-finder/pull/207
At the moment, we are sending a request to get tags for each lead. This can take about 10s when there are 100 leads to render.
we can probably cut down overhead from sending network requests by returning tags in the leads response. Something like
Update the
GET /leads
endpoint so the response body includes atags
array similar to the above.