zeripath
d01763ee14
Protect against NPEs in notifications list ( #10879 )
...
Unfortunately there appears to be potential race with notifications
being set before the associated issue has been committed.
This PR adds protection in to the notifications list to log any failures
and remove these notifications from the display.
References #10815 - and prevents the panic but does not completely fix
this.
Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years ago
Lunny Xiao
b641c68fee
Improve notification pager ( #9821 )
...
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
5 years ago
Lunny Xiao
bb6879d339
Improve notification ( #8835 )
...
* Improve notifications
* batch load user
* Update notification only when read
* Fix reorder
* fix lint
* fix test
* fix lint
* make function meaningful
* fix comment
5 years ago
Mario Lubenka
fcbac38d6f
Unifies pagination template usage ( #6531 ) ( #6533 )
6 years ago
Morgan Bazalgette
65861900cd
Handle refactor ( #3339 )
...
* Replace all ctx.Handle with ctx.ServerError or ctx.NotFound
* Change Handle(403) to NotFound, avoid using macaron's NotFound
7 years ago
Sasha Varlamov
7ec6cddd27
Add 'mark all read' option to notifications ( #3097 )
...
* 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
7 years ago
Bo-Yi Wu
3576e1ee73
fix: trim the whitespaces for the search keyword ( #893 )
8 years ago
Ethan Koenig
2eb15f4a61
Unit tests and remove unused functions in models/notification ( #796 )
...
* Unit tests and remove unused functions in models/notification
* Read -> Unread
8 years ago
Andrey Nering
d2bb8ef503
Notifications: trying to get a better layout ( #660 )
...
* i18n button titles
* Improvements on notification page layout
* Notification count badge fixes
* Make table <tr> clickable
* Fix octicon aligment
* Fix use of AppSubUrl
8 years ago
xgitea
64b167138f
docs: update translation on notification page for zh-CN ( #649 )
...
* docs: update translation on notification page for zh-CN
* use international resources
8 years ago
Andrey Nering
769e0a3ea6
Notifications: mark as read/unread and pin ( #629 )
...
* Use relative URLs
* Notifications - Mark as read/unread
* Feature of pinning a notification
* On view issue, do not mark as read a pinned notification
8 years ago
Andrey Nering
b354cf362e
Add pagination for notifications
8 years ago
Andrey Nering
341a3b571b
Do not get count on /api routers
8 years ago
Andrey Nering
6069abe5fd
Notifications - Step 2
8 years ago