6543
42d8170b4e
inform participants on UI too ( #10473 )
* inform participants on UI too
* ajust test
* refactor getParticipantIDsByIssue
5 years ago
6543
0e8d955bd6
Fix potential bugs ( #10513 )
* use e if it is an option
* potential nil so check err first
* check err first
* m == nil already checked
5 years ago
6543
97ec108a00
Code Refactor of IssueWatch related things ( #10401 )
* refactor
* optimize
* remove Iretating function
LoadWatchUsers do not load Users into IW object and it is used only in api ... so move this logic
* remove unessesary
* Apply suggestions from code review
Thx
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* make Tests more robust
* fix rebase
* restart CI
* CI no dont hit sqlites deadlock
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
5 years ago
SpaWn2KiLl
539bd27f9f
API add/generalize pagination ( #9452 )
* paginate results
* fixed deadlock
* prevented breaking change
* updated swagger
* go fmt
* fixed find topic
* go mod tidy
* go mod vendor with go1.13.5
* fixed repo find topics
* fixed unit test
* added Limit method to Engine struct; use engine variable when provided; fixed gitignore
* use ItemsPerPage for default pagesize; fix GetWatchers, getOrgUsersByOrgID and GetStargazers; fix GetAllCommits headers; reverted some changed behaviors
* set Page value on Home route
* improved memory allocations
* fixed response headers
* removed logfiles
* fixed import order
* import order
* improved swagger
* added function to get models.ListOptions from context
* removed pagesize diff on unit test
* fixed imports
* removed unnecessary struct field
* fixed go fmt
* scoped PR
* code improvements
* code improvements
* go mod tidy
* fixed import order
* fixed commit statuses session
* fixed files headers
* fixed headers; added pagination for notifications
* go mod tidy
* go fmt
* removed Private from user search options; added setting.UI.IssuePagingNum as default valeu on repo's issues list
* Apply suggestions from code review
Co-Authored-By: 6543 <6543@obermui.de>
Co-Authored-By: zeripath <art27@cantab.net>
* fixed build error
* CI.restart()
* fixed merge conflicts resolve
* fixed conflicts resolve
* improved FindTrackedTimesOptions.ToOptions() method
* added backwards compatibility on ListReleases request; fixed issue tracked time ToSession
* fixed build error; fixed swagger template
* fixed swagger template
* fixed ListReleases backwards compatibility
* added page to user search route
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: zeripath <art27@cantab.net>
5 years ago
6543
21e9095284
[API] add endpoint to check notifications [Extend #9488 ] ( #9595 )
* introduce GET /notifications/new
* add TEST
* use Sprintf instead of path.Join
* Error more verbose
* return number of notifications if unreaded exist
* 200 http status for available notifications
5 years ago
6543
3ac680a9fe
[API] Add notification endpoint ( #9488 )
* [API] Add notification endpoints
* add func GetNotifications(opts FindNotificationOptions)
* add func (n *Notification) APIFormat()
* add func (nl NotificationList) APIFormat()
* add func (n *Notification) APIURL()
* add func (nl NotificationList) APIFormat()
* add LoadAttributes functions (loadRepo, loadIssue, loadComment, loadUser)
* add func (c *Comment) APIURL()
* add func (issue *Issue) GetLastComment()
* add endpoint GET /notifications
* add endpoint PUT /notifications
* add endpoint GET /repos/{owner}/{repo}/notifications
* add endpoint PUT /repos/{owner}/{repo}/notifications
* add endpoint GET /notifications/threads/{id}
* add endpoint PATCH /notifications/threads/{id}
* Add TEST
* code format
* code format
5 years ago
jaqra
46ee866f6a
Fix notification page panic ( #9337 )
5 years ago
Lunny Xiao
73f922538a
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
Lunny Xiao
4672db87bd
Display ui time with customize time location ( #7792 )
* display ui time with customize time location
* fix lint
* rename UILocation to DefaultUILocation
* move time related functions to modules/timeutil
* fix tests
* fix tests
* fix build
* fix swagger
5 years ago
kolaente
cdba91b438
Add golangci ( #6418 )
6 years ago
Lunny Xiao
712ad9cd0b
Fix sqlite lock ( #5176 )
* fix sqlite lock
* fix sqlite lock on getUnitType
6 years ago
David Schneiderbauer
304bd2ea73
hide issues from org private repos w/o team assignment ( #4034 )
7 years ago
Lunny Xiao
a5c212cd1e
Refactor struct's time to remove unnecessary memory usage ( #3142 )
* 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
7 years ago
Sasha Varlamov
e592111427
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
Ethan Koenig
a186f896eb
Replace deprecated Id method with ID ( #2655 )
7 years ago
Andrey Nering
7436738eb6
Consider issue_watchers while sending notifications
8 years ago
Lunny Xiao
6148c0f935
refactor notificationsForUser since xorm In support slice of customerize type ( #956 )
8 years ago
Ethan Koenig
835d3eeda3
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
9b3a69e3ac
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
52ab3e2b15
Merge pull request #539 from andreynering/notifications-step-2
Notifications - Step 2
8 years ago
Ethan Koenig
feb1506600
Fix typos in models/ ( #576 )
8 years ago
Andrey Nering
5e852da433
Add pagination for notifications
8 years ago
Andrey Nering
14ee287f3d
Notification - Step 1 ( #523 )
* Notification - Step 1
* Add copyright headers
* Cache issue and repository on notification model
8 years ago