Commit Graph

263 Commits (bd23e36becde2fbf109c51ee2abcaa167880a29a)

Author SHA1 Message Date
Ethan Koenig aa962deec0 Replace deprecated Id method with ID ()
Lunny Xiao a8717e5e3a Use AfterLoad instead of AfterSet on Structs ()
* use AfterLoad instead of AfterSet on Structs

* fix the comments on AfterLoad

* fix the comments on action AfterLoad
Morlinest cc84ca40d7 Remove redudant issue LoadAttributes() calls ()
Ethan Koenig 4cb9394a97 Fix lint errors ()
Ethan Koenig b0f7457d9e Improve issue search ()
* Improve issue indexer

* Fix new issue sqlite bug

* Different test indexer paths for each db

* Add integration indexer paths to make clean
David Schneiderbauer d766d0c4e0 Prevent sending emails and notifications to inactive users ()
* 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>
Lunny Xiao 005900baea Use created & updated instead BeforeInsert & BeforeUpdate ()
* 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
Lunny Xiao 5de94a67cf some refactors for issue and comments ()
Zsombor da230a2872 Add possibility to record branch or tag information in an issue ()
Lunny Xiao 921d90fd8b fix 500 error when view an issue which's milestone deleted ()
Ethan Koenig 7e0654bd9e Fix counts on issues dashboard ()
* Fix counts on issues dashboard

* setupSess -> setupSession

* Unit test

* Load repo owners for issues
Ethan Koenig a27863b6d1 Fix issue updated_unix bug ()
Ethan Koenig 5f37944dff Fix unclosed session bug ()
Ethan Koenig 48898e5d0b Fix PR nil-dereference bug ()
* Fix PR nil-dereference bug

* Revert to original error format
Lauris BH b639fa1648 Ignore invalid issue numbers in commit messages. Fixes ()
Ethan Koenig 80707c4736 Fix default ghost assignee bug ()
Győrvári Gábor f2afed3098 Enable assignee e-mail notification ()
* 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
Lunny Xiao d71fad2ab7 Fix and fix issue comments hidden ()
* revert  and fix issue comments hidden

* fix 

* fix import

* improve comment type

* reduce unnecessary join

* fix comment on FindCommentsOptions
Lauris BH 6db387a21e Refactor session close as xorm already does everything needed internally ()
Ethan Koenig 8fcda0442e Fix search by issue type ()
* Fix search by issue type
Ethan Koenig 9fbdd7d787 Fix engine bug in getIssueByID ()
Ethan Koenig 0c332f0480 Fix activity feed ()
* Fix activity feed

Preserve actions after user/repo name change

* Add missing comment

* Fix migration, and remove fields completely

* Tests
Sandro Santilli 447c9b428f Send notifications to partecipants in issue comments ()
* Send notifications to partecipants in issue comments

Closes 

Includes test (still failing)

* Do not include "labelers" to participants

Fix test to expect what GetParticipants return
Ethan Koenig 09fe4a2ae9 Batch updates for issues ()
Ethan Koenig 021904e4e6 Fix typos in models/ and modules/ ()
Ethan Koenig ec0ae5d50c Refactor and fix incorrect comment ()
Bo-Yi Wu d76d67de23 feat: expose url field on issue api. ()
* 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.
Ethan Koenig 22f7aa6e9c LableIDs -> LabelIDs ()
Ethan Koenig cf80e19157 Optimize and unit test Issue_ReplaceLabels ()
Lunny Xiao 1f7837d6d6 Refactor for issues loadattributes of a repository ()
* refactor for issues loadattributes of a repository

* refactors
Lunny Xiao 847527fd6d Fix all the bugs in issues and pulls on dashboard ()
* fix all the bugs in issues and pulls on dashboard

* small fix and refactor

* add method getRepoIDs for IssueList
Lunny Xiao 7a9a5c8a69 Fix assigned issues dashboard ()
* Fix assigned/created issues in dashboard. ()

* 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
Ethan Koenig 076f940f1f Fix logging bug
Error logged everytime an assignee was removed
Lunny Xiao cf0f451c37 Add delete branch track on pull request comments ()
* add delete branch track on pull request comments

* don't change vendor
Lunny Xiao b6dd6210ea bug fixed for issue count ()
Ethan Koenig a6751cec04 Unit tests for issue_milestone ()
Ethan Koenig e6b4448ba3 Fix bug in Issue.GetIsRead ()
Lunny Xiao f35b20b042 track issue title changes ()
Ethan Koenig d0960b8035 Move IssueUser code to separate file ()
Also add unit tests
Lunny Xiao 3e0525b47d Track assignee for issue ()
* track assignee for issue

* fix lint

* use getUserByID instead Get
Ethan Koenig 68bdaf0a6b Drop redundant columns from issue_user table ()
Lunny Xiao 081485ecfd add milestone changed traker on issue view ()
Ethan Koenig 10644d6dd7 Bug fixes and unit tests for models/issue_label ()
Lunny Xiao f94869d2d1 Track labels changed on issue view & resolved ()
* track labels changed on issue view & resolved 

* add missing head comment & sort & fix refresh
Andrey Nering 5348e8b71a Fix color: closed PR was showing as purple instead of red
Lunny Xiao 8c2381103a bug fixed issues 500 resolved ()
Ethan Koenig 833f8b94c2 Search bar for issues/pulls ()
Philip Couling 1610b9f547 Spun attachments into seperate go file ()
Moved attachments into seperate go file
Andrey Nering 769e0a3ea6 Notifications: mark as read/unread and pin ()
* Use relative URLs

* Notifications - Mark as read/unread

* Feature of pinning a notification

* On view issue, do not mark as read a pinned notification
Andrey Nering 03b45284e1 Merge pull request from ethantkoenig/tests/pull
Unit tests for models/pull.go