crossroads / app.goodcity

GoodCity App for Donors
https://app.goodcity.hk
GNU General Public License v3.0
0 stars 4 forks source link

Delay loading of /api/v1/versions #401

Closed steveyken closed 2 years ago

steveyken commented 2 years ago

When an authenticated user loads the app, an API call is made to /api/v1/versions. For users who have a few offers, this call can take a very long time to load. (e.g. I have 14 offers and /api/v1/versions was taking 30+ seconds.

On admin.goodcity.hk, we load versions with filtering when the specific messages page is opened /api/v1/versions?for_offer=true&item_id=12345 this typically returns in <100ms.

We would like to replicate this behaviour on the donor app to improve load speeds. It should only affect the messages screens for offer and items.

steveyken commented 2 years ago

@patrixr did we ever implement this feature?

patrixr commented 2 years ago

@steveyken I believe we did

steveyken commented 2 years ago

Confirmed versions are not loading anymore 💯