Police-Data-Accessibility-Project / data-sources-app

An API and UI for using and maintaining the Data Sources database
MIT License
4 stars 5 forks source link

data sources pagination and sorting #419

Closed josh-chamberlain closed 1 month ago

josh-chamberlain commented 3 months ago

Context

Makes #75 easier. In general, with a paginated endpoint, it's helpful to allow users to sort_by

Requirements

Tests

Docs

Open questions

maxachis commented 2 months ago

@josh-chamberlain This has been addressed in Data Sources. The way I've designed things, it wouldn't take too much for me to add the sorting to Agencies and Data Requests (they both already have pagination). Would you like me to do that?

josh-chamberlain commented 2 months ago

@maxachis Yes, I suppose that would be best for symmetry and consistency, wouldn't it! Thanks.