Commit Graph

9 Commits (06ae9a3a963cff8d296ca5806df611d1091847df)

Author SHA1 Message Date
zeripath 6868378673 Ensure that sessions are passed into queries that could use the database to prevent deadlocks ()
* Fixed deadlock in CreateComment

* Fix possible deadlock in UpdateIssueDeadline from createDeadlineComment

* Ensure that calls to IsTimeTracker enabled are called within session

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Ensure that calls to reactionList are also called within session

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Ensure all calls in NewPullRequest with the session are called within the session

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Deal with potential deadlocks in repo

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Ensure that isStaring is checked within our transaction

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Fix mistake in isOrganizationMember

Sorry.
Bo-Yi Wu 9d2b830275 refactor: small optimize for sql query ()
* refactor: small optimize for sql query

* fix: get owner name if Searcher is not nil or user star page.
Bo-Yi Wu 23aba523b5 feat: support search bar on star tab of user profile. ()
* feat: support search bar on star tab of user profile.

* fix: update testing.

* fix: Using loadAttributes

* fix: remove empty line.

* remove LOWER

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Bo-Yi Wu b13232f524 feat: support paginater on star tab of user profile. ()
Bo-Yi Wu e2de16065a refactor: set default order by recently star.
Lunny Xiao bb5a6b7a07 fix xorm NewSession uncorrected usages ()
Andrey Nering 521d429b58 Fix link of some repos on stars page ()
Link was wrong the repo was of another owner
Ethan Koenig 1a7fc53c98 API endpoint for stargazers ()
Andrey Nering b992858883 Tab on user profile to show starred repos ()
* Tab on user profile to show starred repos

* Make golint happy and use transactions on StarRepo function

* x -> sess

* Use sess.Close() instead of sess.Rollback()

* Add copyright

* Fix lint