-
Notifications
You must be signed in to change notification settings - Fork 53
Preparation for Issue due dates (go-gitea/gitea#2533) #103
Conversation
LGTM |
gitea/issue.go
Outdated
Assignees []string `json:"assignees"` | ||
Milestone *int64 `json:"milestone"` | ||
State *string `json:"state"` | ||
Deadline *time.Time `json:"due_date"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deadline
should also be added to CreateIssueOption
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add // swagger:strfmt date-time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deadline should also be added to CreateIssueOption
It is, see line 99.
gitea/issue.go
Outdated
@@ -94,6 +96,8 @@ type CreateIssueOption struct { | |||
// username of assignee | |||
Assignee string `json:"assignee"` | |||
Assignees []string `json:"assignees"` | |||
// deadline | |||
Deadline *time.Time `json:"due_date"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add // swagger:strfmt date-time
gitea/pull.go
Outdated
Assignees []string `json:"assignees"` | ||
Milestone int64 `json:"milestone"` | ||
Labels []int64 `json:"labels"` | ||
Deadline *time.Time `json:"due_date"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add // swagger:strfmt date-time
gitea/pull.go
Outdated
Milestone int64 `json:"milestone"` | ||
Labels []int64 `json:"labels"` | ||
State *string `json:"state"` | ||
Deadline *time.Time `json:"due_date"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add // swagger:strfmt date-time
@JonasFranzDEV fixed. |
LGTM |
* Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
I'm currently implementing go-gitea/gitea#2533, this pr should be merged before go-gitea/gitea#3794.
Blocks go-gitea/gitea#3794.