TNRIS / tnris.org

The Texas Geographic Information Office (TxGIO) website.
https://tnris.org
MIT License
8 stars 3 forks source link

Featured data collections section on homepage fetches all collections from API instead of first three #483

Closed ctrepka closed 3 months ago

ctrepka commented 1 year ago

Expected Behavior

only first three collections should be fetched from API to avoid bloated payload

Actual Behavior

all collections are fetched from API, resulting in large payload

Solution

Use API query parameters to sort and request only the data that is needed

Related Issues

481

482

ctrepka commented 1 year ago

Suggested Fix

add ?limit=3&ordering=publication_date to end of url