Closed
Description
Environment
- Gitea version 1.13.2
- Git version: not relevant
- Operating system: Official Docker image running on Ubuntu
- Database:
- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes, using swagger
- No
Description
When using the PATCH /repos/{owner}/{repo}
endpoint, values set inside internal_tracker
are not applied. I tried with either the full internal_tracker
object or a subset, the behavior is the same: the properties are not applied.
Expected: when setting one or more values in the nested internal_tracker
object and making a PATCH request, the corresponding settings are updated in the database.
Steps to reproduce (detailed)
- Create an account
- Create a repository
- Go to the settings page
- Ensure both "Use built-in issue tracker" and "Enable time tracking" are enabled
- Create a personal access token for the API
- Go to
/api/swagger
- Find the
PATCH /repos/{owner}/{repo}
endpoint under "repository" - Fill the fields with your username and the repo just created
- Fill the body with
{
"internal_tracker": {
"enable_time_tracker": false
}
}
- Click on execute
- The request returns a 200 status code
- Go to the settings page of your repo
- Observe the time tracker setting still enabled.