Sasha Varlamov and Lunny Xiao
7ec6cddd27
Add 'mark all read' option to notifications ( #3097 )
...
* Add 'mark all read' option to notifications
Signed-off-by: Sasha Varlamov <[email protected] >
* Fix exported comment
Signed-off-by: Sasha Varlamov <[email protected] >
* Format method comments
Signed-off-by: Sasha Varlamov <[email protected] >
* Fix exported comment
Signed-off-by: Sasha Varlamov <[email protected] >
Format method comments
Signed-off-by: Sasha Varlamov <[email protected] >
Tests for reactions (#3083 )
* Unit tests for reactions
* Fix import order
Signed-off-by: Lauris Bukšis-Haberkorns <[email protected] >
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
2017-12-07 13:52:57 +08:00
Lunny Xiao and Lauris BH
6eeadb2082
Hide unactive on explore users and some refactors ( #2741 )
...
* 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
2017-10-24 20:36:19 +03:00
David Schneiderbauer and Lunny Xiao
d766d0c4e0
Prevent sending emails and notifications to inactive users ( #2384 )
...
* Filter inactive users before sending emails or creating browser notifications
Signed-off-by: David Schneiderbauer <[email protected] >
* fix formatting issues
Signed-off-by: David Schneiderbauer <[email protected] >
* included requested changes
Signed-off-by: David Schneiderbauer <[email protected] >
* optimized database queries
* rebasing new master and add tablenames for clarification in xorm queries
* remove escaped quotationmarks using backticks
Signed-off-by: David Schneiderbauer <[email protected] >
2017-09-16 08:18:25 +08:00
Morlinest and Lauris BH
8e61823ec4
Fix tests code to prevent some runtime errors ( #2381 )
...
* Fix tests code to prevent some runtime errors
* Reduce nesting
2017-08-28 12:17:45 +03:00
Ethan Koenig and Lunny Xiao
ceae143e78
Consistency checks for unit tests ( #853 )
2017-02-07 19:47:55 +08:00
Ethan Koenig and Lunny Xiao
2eb15f4a61
Unit tests and remove unused functions in models/notification ( #796 )
...
* Unit tests and remove unused functions in models/notification
* Read -> Unread
2017-01-30 22:21:49 +08:00