summaryrefslogtreecommitdiffstats
path: root/models/issue.go
Commit message (Collapse)AuthorAgeFilesLines
* Fix failure on creating pull request with assignees (#4419) (#4583)SagePtr2018-08-161-1/+1
|
* Update xorm to latest version and fix correct `user` table referencing in ↵Lauris BH2018-07-201-1/+1
| | | | sql (#4473)
* Added dependencies for issues (#2196) (#2531)kolaente2018-07-171-0/+44
|
* Fix some webhooks bugs (#3981)Lunny Xiao2018-05-211-8/+93
| | | | | | | | | | | | | | | | | | | | | | * fix some webhooks bugs * update vendor Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * fix test * fix clearlabels * fix pullrequest webhook bug fix #3492 * update release webhook description * remove unused code * fix push webhook in pull request * small changes
* Multiple assignees (#3705)kolaente2018-05-091-102/+57
|
* Issue due date (#3794)kolaente2018-05-011-3/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Shows total tracked time in issue and milestone list (#3341)Jonas Franz2018-04-291-3/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Show total tracked time in issue and milestone list Show total tracked time at issue page Signed-off-by: Jonas Franz <info@jonasfranz.software> * Optimizing TotalTimes by using SumInt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fixing wrong total times for milestones caused by a missing JOIN Adding unit tests for total times Signed-off-by: Jonas Franz <info@jonasfranz.software> * Logging error instead of ignoring it Signed-off-by: Jonas Franz <info@jonasfranz.software> * Correcting spelling mistakes Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change error message to a short version Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add error handling to TotalTimes Add variable for totalTimes Signed-off-by: Jonas Franz <info@jonasfranz.de> * Introduce TotalTrackedTimes as variable of issue Load TotalTrackedTimes by loading attributes of IssueList Load TotalTrackedTimes by loading attributes of single issue Add Sec2Time as helper to use it in templates Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fixed test + gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Load TotalTrackedTimes via MilestoneList instead of single requests Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add documentation for MilestoneList Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add documentation for MilestoneList Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix test Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change comment from SQL query to description Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit test by using int64 instead of int Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit test by using int64 instead of int Signed-off-by: Jonas Franz <info@jonasfranz.software> * Check if timetracker is enabled Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix test by enabling timetracking Signed-off-by: Jonas Franz <info@jonasfranz.de>
* Add issue closed time column to fix activity closed issues list (#3537)Lauris BH2018-02-191-1/+7
| | | Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
* Use issue number/index instead of id for API URL. (#3298)Alberto González Palomo2018-01-031-1/+1
| | | | | | | | | | | | | | | | | Using the API calls, the issue objects retrieved by /repos/{owner}/{repo}/issues contains the wrong value in the "url" field: it uses the "id" value instead of the "number" value. For instance, in a new repo in try.gitea.io with just one issue: [{ "id": 896, "url": "https://try.gitea.io/api/v1/repos/AlbertoGP/uno/issues/896", "number": 1, ... }] The given URL does not work, but if you replace the "896" by "1" it does.
* Fixed asterisk based tasklist items, fixed requirement for one char after ↵modmew82018-01-031-2/+2
| | | | | last blank to be a valid task. (#3296) Signed-off-by: modmew8 <modmew8@gmail.com>
* Added progressbar for issues (#1146). (#3171)modmew82018-01-031-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | * Added progressbar for issues (#1146). * Updated the generated index.css. Signed-off-by: modmew8 <modmew8@gmail.com> * Removed stored progress percentage and changed it to css calc. Also added the issue task progress to the user/dashboard/issues. Signed-off-by: modmew8 <modmew8@gmail.com> * Removed unnecessary blanks. Signed-off-by: modmew8 <modmew8@gmail.com> * Formatted the files correctly, fmt-check terminates now without errors. Signed-off-by: modmew8 <modmew8@gmail.com> * Removed variables, made computing the tasks on demand with precompiled regexp. Signed-off-by: modmew8 <modmew8@gmail.com>
* Fix bugs in issue dashboard stats (#3073)Ethan Koenig2017-12-261-45/+77
|
* Remove unnecessary updates to issue indexer (#3212)Ethan Koenig2017-12-171-1/+1
|
* Refactor struct's time to remove unnecessary memory usage (#3142)Lunny Xiao2017-12-111-23/+6
| | | | | | | | | | | | | | * refactor struct's time to remove unnecessary memory usage * use AsTimePtr simple code * fix tests * fix time compare * fix template on gpg * use AddDuration instead of Add
* Add reactions to issues/PR and comments (#2856)Lauris BH2017-12-041-2/+34
|
* Fix ref parsing in commit messages (#3067)Ethan Koenig2017-12-031-32/+0
|
* Remove GetRepositoryByRef and add GetRepositoryByOwnerAndName (#3043)Lunny Xiao2017-12-021-2/+7
| | | | | | | | | | * remove GetRepositoryByRef and add GetRepositoryByOwnerAndName * fix tests * fix tests bug * some improvements
* Replace deprecated Id method with ID (#2655)Ethan Koenig2017-10-051-4/+4
|
* Use AfterLoad instead of AfterSet on Structs (#2628)Lunny Xiao2017-10-011-10/+5
| | | | | | | | * use AfterLoad instead of AfterSet on Structs * fix the comments on AfterLoad * fix the comments on action AfterLoad
* Remove redudant issue LoadAttributes() calls (#2614)Morlinest2017-09-271-6/+1
|
* Fix lint errors (#2547)Ethan Koenig2017-09-191-5/+1
|
* Improve issue search (#2387)Ethan Koenig2017-09-161-12/+17
| | | | | | | | | | * Improve issue indexer * Fix new issue sqlite bug * Different test indexer paths for each db * Add integration indexer paths to make clean
* Prevent sending emails and notifications to inactive users (#2384)David Schneiderbauer2017-09-161-2/+5
| | | | | | | | | | | | | | | | | | | | | | * Filter inactive users before sending emails or creating browser notifications Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com> * fix formatting issues Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com> * included requested changes Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com> * optimized database queries * rebasing new master and add tablenames for clarification in xorm queries * remove escaped quotationmarks using backticks Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Use created & updated instead BeforeInsert & BeforeUpdate (#2482)Lunny Xiao2017-09-131-10/+2
| | | | | | | | | | | | * use created & updated instead BeforeInsert & BeforeUpdate * fix vendor checksum * only show generated SQL when development mode * remove extra update column updated_unix * remove trace config
* some refactors for issue and comments (#2419)Lunny Xiao2017-08-301-2/+6
|
* Add possibility to record branch or tag information in an issue (#780)Zsombor2017-08-241-0/+1
|
* fix 500 error when view an issue which's milestone deleted (#2297)Lunny Xiao2017-08-121-1/+1
|
* Fix counts on issues dashboard (#2215)Ethan Koenig2017-08-031-12/+45
| | | | | | | | | | * Fix counts on issues dashboard * setupSess -> setupSession * Unit test * Load repo owners for issues
* Fix issue updated_unix bug (#2204)Ethan Koenig2017-07-271-0/+1
|
* Fix unclosed session bug (#2214)Ethan Koenig2017-07-261-1/+1
|
* Fix PR nil-dereference bug (#2195)Ethan Koenig2017-07-261-7/+26
| | | | | | * Fix PR nil-dereference bug * Revert to original error format
* Ignore invalid issue numbers in commit messages. Fixes #2022 (#2150)Lauris BH2017-07-121-1/+2
|
* Fix default ghost assignee bug (#2069)Ethan Koenig2017-06-281-1/+1
|
* Enable assignee e-mail notification (#2003)Győrvári Gábor2017-06-231-5/+18
| | | | | | | | | | | | * Enable assignee e-mail notification * Check assignee and doer to avoid self made comment notifications. * Assignee not always defined * New method to avoid error when assignee deleted * Assignee empty check
* Fix #2001 and fix issue comments hidden (#2016)Lunny Xiao2017-06-211-1/+4
| | | | | | | | | | | | | | * revert #2001 and fix issue comments hidden * fix #2001 * fix import * improve comment type * reduce unnecessary join * fix comment on FindCommentsOptions
* Refactor session close as xorm already does everything needed internally (#2020)Lauris BH2017-06-211-4/+4
|
* Fix search by issue type (#1914)Ethan Koenig2017-06-151-39/+13
| | | | * Fix search by issue type
* Fix engine bug in getIssueByID (#1934)Ethan Koenig2017-06-111-1/+1
|
* Fix activity feed (#1779)Ethan Koenig2017-05-261-8/+7
| | | | | | | | | | | | * Fix activity feed Preserve actions after user/repo name change * Add missing comment * Fix migration, and remove fields completely * Tests
* Send notifications to partecipants in issue comments (#1217)Sandro Santilli2017-03-161-0/+18
| | | | | | | | | | | | * Send notifications to partecipants in issue comments Closes #1216 Includes test (still failing) * Do not include "labelers" to participants Fix test to expect what GetParticipants return
* Batch updates for issues (#926)Ethan Koenig2017-03-151-0/+10
|
* Fix typos in models/ and modules/ (#1248)Ethan Koenig2017-03-151-1/+1
|
* Refactor and fix incorrect comment (#1247)Ethan Koenig2017-03-151-18/+9
|
* feat: expose url field on issue api. (#982)Bo-Yi Wu2017-03-031-0/+7
| | | | | | | | | | | | | | * Add api url func. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * fix: Add unit testing. * fix: conflicts * fix: remove trim * fix: revert test function name.
* LableIDs -> LabelIDs (#1088)Ethan Koenig2017-03-011-6/+6
|
* Optimize and unit test Issue_ReplaceLabels (#1080)Ethan Koenig2017-02-281-27/+18
|
* Refactor for issues loadattributes of a repository (#971)Lunny Xiao2017-02-221-64/+2
| | | | | | * refactor for issues loadattributes of a repository * refactors
* Fix all the bugs in issues and pulls on dashboard (#943)Lunny Xiao2017-02-171-0/+59
| | | | | | | | * fix all the bugs in issues and pulls on dashboard * small fix and refactor * add method getRepoIDs for IssueList
* Fix assigned issues dashboard (#920)Lunny Xiao2017-02-141-28/+61
| | | | | | | | | | | | | | | | | | | | | | * Fix assigned/created issues in dashboard. (#3560) * Fix assigned/created issues in dashboard. * Use GetUserIssueStats for getting all Dashboard stats. * Use gofmt to format the file properly. * Replace &Issue{} with new(Issue). * Check if user has access to given repository. * Remove unnecessary filtering of issues. * Return 404 error if invalid repository is given. * Use correct number of issues in paginater. * fix issues on dashboard
* Fix logging bugEthan Koenig2017-02-121-7/+5
| | | | Error logged everytime an assignee was removed