problem: teams page may load too many avatars for large organizations #12448
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Does your problem still exist on the latest Forgejo version?
Yes, the problem still exists (tested on a next instance)
About your usage of Forgejo
Codeberg and third-party instances
Problem description
The page listing all teams of an organization includes the avatars of all members of each visible team.

For instance at https://codeberg.org/org/forgejo/teams :
This also means that my browser will make many requests to fetch each avatar, leading to high bandwidth usage. In the case of Codeberg, I also get blocked (HTTP 429) for making too many requests because of that.
If you are a Codeberg-e.V. member and want to try that, you can go to:
Potential workarounds
The way GitHub lists contributors to a repository could be an inspiration:

Unfortunately that may require sorting the team members in some sort of a meaningful order so that the ones that get displayed by default aren't completely arbitrary.
Forgejo Version
15.0.1-4-80476238ab
Other details about your environment (software names and versions)
Irrelevant
Solutions
Accepted solutions to address this problem will go here
@wetneb wrote in https://codeberg.org/forgejo/forgejo/issues/12448#issue-4902041:
It’s beautiful :) But, yes, shouldn’t be like this.
@wetneb wrote in https://codeberg.org/forgejo/forgejo/issues/12448#issue-4902041:
Indeed. I think it would be nice to pick
nrandom members for each team.