Skip to content

Topics added using API don't display on explore page #12426

Closed
@mooror

Description

@mooror
  • Gitea version: 1.12.3
  • Git version: 2.7.4
  • Operating system: Ubuntu 16.04 (xenial) LTS
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

If you use the /repos/{owner}/{repo}/topics/{topic} API route to add a topic to a repository it will not be displayed on the explore page, but will show up properly on the repository page.

Steps to reproduce

  1. Go to the API route on your Gitea installation (/api/swagger)
  2. Click the Authorize button and provide some form of authentication (if the repository is private)
  3. Expand the "Add a topic to a repository" section (under the "Repository" heading)
  4. Click the "Try it out" button, fill in the fields, and click "Execute"
  5. Go to the explore page and find the repository that you have added a topic to (notice that the topic is not displayed)
  6. Click on the repository to go to its repository page (notice that the topics were added successfully)

Screenshots

Screenshot_2020-08-04 MyGit
Screenshot_2020-08-04 theme-eighty

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