Skip to content

Conversation

ThisIsMissEm
Copy link
Contributor

In my experience working on FediCheck, I noticed that we were frequently needing to make at least 4-10 API requests to retrieve back the full set of domain blocks for an instance through the admin APIs, when we can just request back the full set via the public domain blocks API.

This change allows for requesting up to 500 records at a time, as opposed to 200 at a time.

From a sampling of 38 Fediverse servers that I have data for, both big and small, the median number of domain blocks is 363, with some outliers both at the low end <100 and some at the high end >1000. Given this data, 500 generally allows requesting back the full set of domain blocks in a single request, with some servers needing a few more requests.

This change will make it easier to synchronise domain block data with external tools.

@renchap renchap requested a review from a team August 1, 2024 20:10
@ClearlyClaire ClearlyClaire added this pull request to the merge queue Aug 2, 2024
Merged via the queue into mastodon:main with commit f55099f Aug 2, 2024
29 checks passed
@ThisIsMissEm ThisIsMissEm deleted the chore/increase-admin-domain-blocks-pagination-limit branch September 3, 2024 18:05
justinwritescode pushed a commit to justinwritescode/mastodon that referenced this pull request Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants