opencivicdata / imago

django app powering Open Civic Data API
Other
12 stars 12 forks source link

Limit related entities #22

Open paultag opened 10 years ago

paultag commented 10 years ago

I get the gut feeling we can DoS / avoid pagination limits by hitting a related field on an object detail / list view.

We should limit the number of elements we return on related entities.

(I'm thinking jurisdiction.events or something, not in particular, but to give an example of the route you can use)

jamesturk commented 10 years ago

I think this is solved now? I can't seem to request things like events through jurisdiction because it throws the FieldKeyError "You've asked for a field () that is invalid..."

dcloud commented 9 years ago

Maybe an overridable default of 500 said @paultag a moment ago.