Skip to content

Issues with the repository search API #873

Closed
@andreynering

Description

@andreynering
  • Gitea version (or commit ref): c5887b0
  • Git version: 2.9.3
  • Operating system: Ubuntu 16.10
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

Take a look at https://try.gitea.io/api/v1/repos/search?q=gitea

  • Many attributes are returning the zero value:
    • name is always "". (full_name is OK)
    • description, html_url, clone_url, default_branch and website also always ""
    • stars_count, forks_count, watchers_count, open_issues_count always 0
    • created_at and updated_at always 0001-01-01T00:00:00Z
    • fork and private always false

Also:

  • Private repos are not being showed. Should be showed if the user has access to it, or at least if they is the owner.
  • Missing mirror attribute, to know if repo is a mirror.

Metadata

Metadata

Assignees

No one assigned

    Labels

    modifies/apiThis PR adds API routes or modifies themtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions