Skip to content

Fix missing `forked_from_project` property for unauthenticated users

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA

What does this MR do and why?

Fix #361952: missing forked_from_project property in projects API for unauthenticated users

The API response returned to unauthenticated users is based on BasicProjectDetails, which is the same class as the one used in projects list.

This introduces a new class, between BasicProjectDetails and Projects in the class hierarchy, that provides this property.

This replaces !152231 (closed) with a more limited scope.

Submitted as part of gitlab-org/developer-relations/contributor-success/team-task#479

Changelog: fixed

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After
Screenshot_2024-05-27_at_16-13-26_Screenshot Screenshot_2024-05-27_at_16-11-20_Screenshot
Edited by Val Lorentz

Merge request reports