Skip to content

Check existing forks for user access before suggesting creation of a fork

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Release notes

Problem to solve

When users without access try to edit a page, they get a popup telling them to fork the project to make changes.

gitlab_fork

For large projects like GitLab, forking it can exceed the Free storage limit of 10GiB, which prevents changes being added to the fork.

Proposal

The "Fork to make changes" popup should present the user with forks that the user has appropriate permission to edit (if one exists).

I think the order that makes the most sense is:

  1. Check the user's namespace (this is the current behavior)
  2. Check the current namespace (e.g. GitLab.org/gitlab-community-fork)
  3. Check groups the user is a member of (e.g. Gitlab Community/Gitlab)

Other points:

  • I don't think it makes sense to check all public forks - but it could be configurable for an instance?
  • Project Owners might want to be able to specify a default fork.
  • Instance Administrators might want to be able to specify a default forking behavior.

Intended users

Open source communities/organizations, but particularly ones that follow a similar model to GitLab. But the utility can extend to any organization that wants to limit private namespaces while also limiting edit access to projects.

Feature Usage Metrics

Does this feature require an audit event?

If setting default forks or default forking behavior is implemented, those would need audit events.

Edited by 🤖 GitLab Bot 🤖