Archived and forked repositories included in search results even when excluded

Reported Version

v3.42.2

Problem reported

Search results don't exclude/hide results like forks or archived repo for GitLab repos. 

Archived results are not relevant to most searches, alerts and insights.

 

Possible scenarios

User-level

1. How is the code host configuration set up? Check for specific cues in configuration like projectQuery and repositoryQuery(if GitHub).

2. Is it a user-permission issue based on their token? Also, is it tied to how archived projects are defined? To confirm, run

curl -H 'Private-Token: '<$token>' -X GET 'https://<GITLAB_HOSTNAME>/api/v4/projects?membership=true&archived=false'

curl -H 'Private-Token: '<$token>' -X GET 'https://<GITLAB_HOSTNAME>/api/v4/projects?membership=true&archived=true'

curl -H 'Private-Token: '<$token>' -X GET 'https://<GITLAB_HOSTNAME>/api/v4/projects?membership=true&archived=yes' 

 

curl -H 'Private-Token: '<$token>' -X GET 'https://<GITLAB_HOSTNAME>/api/v4/projects?membership=true&archived=no'

Was this article helpful?
0 out of 0 found this helpful

Articles in this section