Skip to content

Commit 7159e7a

Browse files
authored
Do not ratelimit the tag-changes endpoint (#743)
This endpoint recieves a large volume of requests (one for each new changeset) from a single admin user account. Rate-limiting it will cause tag-changes data to stop being ingested during periods when there are lots of edits happening in OSM, which isn't desirable.
1 parent 6302a7b commit 7159e7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

osmchadjango/changeset/views.py

+1
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ def filter_primary_tags(feature):
698698
class SetChangesetTagChangesAPIView(ModelViewSet):
699699
queryset = Changeset.objects.all()
700700
permission_classes = (IsAdminUser,)
701+
throttle_classes = [] # do not rate limit the tag changes endpoint
701702
# The serializer is not used in this view. It's here only to avoid errors
702703
# in docs schema generation.
703704
serializer_class = ChangesetStatsSerializer

0 commit comments

Comments
 (0)