aboutsummaryrefslogtreecommitdiffstats
path: root/models/notification_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Add 'mark all read' option to notifications (#3097)Sasha Varlamov2017-12-071-4/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add 'mark all read' option to notifications Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com> * Fix exported comment Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com> * Format method comments Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com> * Fix exported comment Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com> Format method comments Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com> Tests for reactions (#3083) * Unit tests for reactions * Fix import order Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv> Fix reaction possition when there is attachments (#3099) Refactor notifications swap function * Accept change to drop beforeupdate call * Update purge notifications error message for consistency * Drop unnecessary check for mark all as read button * Remove debugging comment
* Hide unactive on explore users and some refactors (#2741)Lunny Xiao2017-10-241-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | * hide unactive on explore users and some refactors * fix test for removed Organizations * fix test for removed Organizations * fix imports * fix logic bug * refactor the toConds * Rename TestOrganizations to TestSearchUsers and add tests for users * fix other tests * fix other tests * fix watchers tests * fix comments and remove unused code
* Prevent sending emails and notifications to inactive users (#2384)David Schneiderbauer2017-09-161-3/+2
| | | | | | | | | | | | | | | | | | | | | | * 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>
* Fix tests code to prevent some runtime errors (#2381)Morlinest2017-08-281-3/+4
| | | | | | * Fix tests code to prevent some runtime errors * Reduce nesting
* Consistency checks for unit tests (#853)Ethan Koenig2017-02-071-0/+1
|
* Unit tests and remove unused functions in models/notification (#796)Ethan Koenig2017-01-301-0/+77
* Unit tests and remove unused functions in models/notification * Read -> Unread