aboutsummaryrefslogtreecommitdiffstats
path: root/models/issue.go
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Add delete branch track on pull request comments (#888)Lunny Xiao2017-02-111-0/+18
| | | | | | * add delete branch track on pull request comments * don't change vendor
* bug fixed for issue count (#881)Lunny Xiao2017-02-091-1/+1
|
* Unit tests for issue_milestone (#878)Ethan Koenig2017-02-091-366/+0
|
* Fix bug in Issue.GetIsRead (#876)Ethan Koenig2017-02-091-1/+2
|
* track issue title changes (#841)Lunny Xiao2017-02-051-3/+17
|
* Move IssueUser code to separate file (#836)Ethan Koenig2017-02-041-125/+0
| | | Also add unit tests
* Track assignee for issue (#808)Lunny Xiao2017-02-031-0/+21
| | | | | | | | * track assignee for issue * fix lint * use getUserByID instead Get