TheThingsNetwork / lorawan-stack

The Things Stack, an Open Source LoRaWAN Network Server
https://www.thethingsindustries.com/stack/
Apache License 2.0
978 stars 307 forks source link

Apply a default pagination on IS List RPCs if not provided in the request #7327

Closed KrishnaIyer closed 16 hours ago

KrishnaIyer commented 3 weeks ago

Summary

Apply a default pagination on IS List RPCs if not provided in the request.

Steps to Reproduce

  1. List end devices in an application or all gateways of a user.
  2. Don't set the Limit field of the request.

Current Result

Currently limit value of 0 returns all entries.

Expected Result

We should use a default value and use that when the limit in the request is not set.

Relevant Logs

No response

URL

No response

Deployment

The Things Stack Cloud

The Things Stack Version

3.32.1

Client Name and Version

No response

Other Information

No response

Proposed Fix

Contributing

Validation

Code of Conduct

KrishnaIyer commented 16 hours ago

This is tested and being rolled out.