Description
Bug description
The project search currently returns archived GitHub repositories in the results.
For a feature intended to help users discover active open source projects, this seems misleading, since archived repositories are generally not suitable for contribution.
Current behavior
When using the project search with filters, some returned repositories are archived.
Expected behavior
Archived repositories should be excluded from search results.
Suspected cause
In the backend GitHub search query builder:
apps/api/src/services/project.service.ts
the query includes filters like:
is:organization
is:public
fork:true
but it does not exclude archived repositories.
It looks like adding:
queryParts.push("archived:false");
would likely prevent archived repositories from being returned.
Steps to Reproduce
- Open the project search feature in Opensox.
- Set
Popularity to Moderate.
- Set
Competition to Low.
- Run the search.
- Observe that the repository
marl appears in the results.
- Open the repository on GitHub and note that it is marked as archived.
Expected Behavior
Archived repositories should not appear in project search results.
Actual Behavior
An archived repository (marl) is returned in the search results.
Version
No response
Environment
No response
Additional Context
No response
Description
Bug description
The project search currently returns archived GitHub repositories in the results.
For a feature intended to help users discover active open source projects, this seems misleading, since archived repositories are generally not suitable for contribution.
Current behavior
When using the project search with filters, some returned repositories are archived.
Expected behavior
Archived repositories should be excluded from search results.
Suspected cause
In the backend GitHub search query builder:
apps/api/src/services/project.service.tsthe query includes filters like:
is:organizationis:publicfork:truebut it does not exclude archived repositories.
It looks like adding:
would likely prevent archived repositories from being returned.
Steps to Reproduce
PopularitytoModerate.CompetitiontoLow.marlappears in the results.Expected Behavior
Archived repositories should not appear in project search results.
Actual Behavior
An archived repository (
marl) is returned in the search results.Version
No response
Environment
No response
Additional Context
No response