Skip to content

Commit

Permalink
Do not ratelimit the tag-changes endpoint (#743)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jake-low authored Mar 4, 2025
1 parent 6302a7b commit 7159e7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions osmchadjango/changeset/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@ def filter_primary_tags(feature):
class SetChangesetTagChangesAPIView(ModelViewSet):
queryset = Changeset.objects.all()
permission_classes = (IsAdminUser,)
throttle_classes = [] # do not rate limit the tag changes endpoint
# The serializer is not used in this view. It's here only to avoid errors
# in docs schema generation.
serializer_class = ChangesetStatsSerializer
Expand Down

0 comments on commit 7159e7a

Please sign in to comment.