Skip to content

[BUG] Archived repositories appear in project search results #440

Description

@krishnumkhodke

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

  1. Open the project search feature in Opensox.
  2. Set Popularity to Moderate.
  3. Set Competition to Low.
  4. Run the search.
  5. Observe that the repository marl appears in the results.
  6. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions