-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Due date not saving when set via API #8179
Comments
Oh and setting the date in the web interface works just fine |
I've just tried a clean install: stop gitea, move aside config/data, dropping the db, starting gitea, recreating an admin user, repo, issue and testing again. Still the same problem. |
Just tried this again but this time using SQLite. Same issue. Also tried on try.gitea.io again and this time it is also NOT working!!
I was either mistaken the first time or some regression has happened. Hmmm. I've updated the issue to reflect this new info. |
Same issue on 1.9.3 |
OK, I'm tracking this down: Seems there is a separate API endpoint for setting a "deadline" So why does this specific field have its own endpoint? And how come it half works (generates timeline message) when set with other fields on the "normal" endpoint? |
So now my script is using the correct endpoint I'm having better luck setting due dates. Now I have noticed that if I PATCH the issue to change the issue body, that the timeline notice says I've removed the due date, even though due date was not in the post fields, and is not actually removed!
Guess this is the same functionality that erroneously said I'd added a due date from above! |
@bobemoe do you have permission of writing issues? The deadline only be set when users have write permission of issues unit. Otherwise it will be ignored. |
I have also encountered this issue. We have repo with issues disabled. When I try to set Due Date on pull request my API call result in 403 Forbidden. I also see red box with message: "The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'. " Gitea ver: 1.10-rc1. |
That doesn't quite sound like the issue I was describing... I don't get 403 or that message. What API call are you using? |
I've found two bugs in the code
This affects at least issue and pull request update API. Creation API should also be checked. |
[x]
):Description
When using API to set a due date the timeline shows it has been set, but the due date comes back null.
The same API call works just fine on try.gitea.io so it must be something local. Any ideas?edit: not trueScreenshots
You can see the timeline showing my attempts to add a date, yet still it is not shown in the due date field on the right bar.
The text was updated successfully, but these errors were encountered: