You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
So currently, you must provide "has_issues": true in the PATCH request if you wish to modify any field in "internal_tracker".
Additionally, if internal_tracker is provided, any field that you do not provide in internal_tracker will be set to false.
Also, the response from PATCH does not contain up to date information on the "has_issues" and "internal_tracker" (and possibly more) fields. You can confirm this by modifying "has_issues" with PATCH, then sending a GET request and the responses will be different.
I believe point 3 is unintentional and should be fixed, but I would need confirmation on if points 1 and 2 are unintentional.
Thanks ! At least I have a workaround: I can set "has_issues": true 🙂 in the request.
From an API user POV, I'd say point 3 is a bug, point 1 is an unexpected behavior since it's not documented and point 2 can be understood since it's a nested object but should be documented.
Environment
Description
When using the
PATCH /repos/{owner}/{repo}
endpoint, values set insideinternal_tracker
are not applied. I tried with either the fullinternal_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)
/api/swagger
PATCH /repos/{owner}/{repo}
endpoint under "repository"The text was updated successfully, but these errors were encountered: