Fix bug where project search set search_level to group

What does this MR do and why?

Fix bug where project search set search_level to group when group_id was provided alongside project_id.

There wasn't any functional difference, but when the search level is project_id, we can skip traversal ID generation and just use repo_id for a slight performance improvement.

References

Screenshots or screen recordings

Before After

How to set up and validate locally

MR acceptance checklist

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

Merge request reports

Loading