summaryrefslogtreecommitdiffstats
path: root/models
Commit message (Collapse)AuthorAgeFilesLines
* Create missing database indexes (#596)Andrey Nering2017-01-0613-64/+64
|
* API endpoint for stargazers (#597)Ethan Koenig2017-01-061-6/+6
|
* Make releases faster than before and resolved #490 (#588)Lunny Xiao2017-01-061-4/+13
| | | | | | * make releases faster than before and resolved #490 * fix comment
* Merge pull request #539 from andreynering/notifications-step-2Andrey Nering2017-01-051-5/+11
|\ | | | | Notifications - Step 2
| * Add pagination for notificationsAndrey Nering2017-01-031-5/+11
| |
* | Fix SQL bug in models/access (#583)Ethan Koenig2017-01-051-11/+14
| | | | | | Previously got a 'relation repo_access does not exist' error in User_GetRepositoryAccesses
* | Check primary email address fields on CreateUser (#556)Berk Demirkır2017-01-051-0/+9
| | | | | | | | | | | | | | | | | | | | * Check primary email address fields on CreateUser As this check wasn't available, uid=1 (and possibly guests too, if registration is open) is able to register new users with existing email addresses. This leads to numerous 500 errors. * Update user.go * Lower the email first. Then check
* | Fix typos in models/ (#576)Ethan Koenig2017-01-0515-44/+44
| |
* | fix bug #564 (#567)Lunny Xiao2017-01-031-1/+1
| |
* | Update xorm and dependencies vendor for feature to dump to other database (#565)Lunny Xiao2017-01-031-3/+10
| | | | | | | | | | | | * update xorm and dependencies vendor for feature to dump to other database * fix golint
* | Fix benchmarktests (#557)Kjell Kvinge2017-01-031-13/+17
| |
* | change the default action when deleting a release to not delete tagLunny Xiao2017-01-031-6/+8
| |
* | Release API endpointsEthan Koenig2017-01-021-0/+60
| |
* | resolved #485: when migrate empty wiki repo, then ignore (#541)Lunny Xiao2016-12-311-2/+5
| |
* | Unit tests for token and update modelsEthan Koenig2016-12-315-0/+321
| |
* | Restrict creating organisations by user (#193)Schwobaland2016-12-315-6/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * restrict creating organizations based on right on user * revert bindata.go * reverse vendor lib * revert goimports change * set AllowCreateOrganization default value to true * revert locale * added default value for AllowCreateOrganization * fix typo in migration-comment * fix comment * add coments in migration
* | fix gofmt errorBo-Yi Wu2016-12-303-19/+19
|/ | | | Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Notification - Step 1 (#523)Andrey Nering2016-12-313-11/+294
| | | | | | | | * Notification - Step 1 * Add copyright headers * Cache issue and repository on notification model
* Speed up conflict checking in pull request creation (#276)typeless2016-12-291-8/+15
| | | | | | | | | | | | | | | | | | * Speed up conflict checking in pull request creation In order to check conflicts of a PR, we set up a working tree by cloning the base branch, which is quite time-consuming when the repository is huge. Instead, this PR uses `git read-tree` and `git apply --check --cached` to check conflicts. For #258 * Use $GIT_INDEX_FILE instead of --index-output to avoid lockfile problem The lockfile gets renamed to the final destination after the operation finishes. But it must be located in the same filesystem, which prevents us from using /tmp. * Temporary file names should not prefixed with '-'
* Tab on user profile to show starred repos (#519)Andrey Nering2016-12-292-60/+87
| | | | | | | | | | | | | | * 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
* slight optimization for GetUserRepositories (#498)Lunny Xiao2016-12-291-8/+11
|
* commithgraph / timeline (#428)Kjell Kvinge2016-12-292-0/+149
| | | | | | | | | | * Add model and tests for graph * Add route and router for graph * Add assets for graph * Add template for graph
* Replace Gogs with Gitea (#520)Bwko2016-12-283-6/+6
|
* Optimization for user.GetRepositoryAccesses to reduce db query times (#495)Lunny Xiao2016-12-281-18/+27
| | | | | | * optimization for user.GetRepositoryAccesses to reduce db query times * fix missing cache
* fix 500 when delete orgnization and resolved #486Lunny Xiao2016-12-272-8/+11
|
* API Endpoints for collaborators (#375)Ethan Koenig2016-12-261-0/+9
|
* Git LFS support v2 (#122)Fabian Zaremba2016-12-264-1/+205
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Import github.com/git-lfs/lfs-test-server as lfs module base Imported commit is 3968aac269a77b73924649b9412ae03f7ccd3198 Removed: Dockerfile CONTRIBUTING.md mgmt* script/ vendor/ kvlogger.go .dockerignore .gitignore README.md * Remove config, add JWT support from github.com/mgit-at/lfs-test-server Imported commit f0cdcc5a01599c5a955dc1bbf683bb4acecdba83 * Add LFS settings * Add LFS meta object model * Add LFS routes and initialization * Import github.com/dgrijalva/jwt-go into vendor/ * Adapt LFS module: handlers, routing, meta store * Move LFS routes to /user/repo/info/lfs/* * Add request header checks to LFS BatchHandler / PostHandler * Implement LFS basic authentication * Rework JWT secret generation / load * Implement LFS SSH token authentication with JWT Specification: https://github.com/github/git-lfs/tree/master/docs/api * Integrate LFS settings into install process * Remove LFS objects when repository is deleted Only removes objects from content store when deleted repo is the only referencing repository * Make LFS module stateless Fixes bug where LFS would not work after installation without restarting Gitea * Change 500 'Internal Server Error' to 400 'Bad Request' * Change sql query to xorm call * Remove unneeded type from LFS module * Change internal imports to code.gitea.io/gitea/ * Add Gitea authors copyright * Change basic auth realm to "gitea-lfs" * Add unique indexes to LFS model * Use xorm count function in LFS check on repository delete * Return io.ReadCloser from content store and close after usage * Add LFS info to runWeb() * Export LFS content store base path * LFS file download from UI * Work around git-lfs client issue with unauthenticated requests Returning a dummy Authorization header for unauthenticated requests lets git-lfs client skip asking for auth credentials See: https://github.com/github/git-lfs/issues/1088 * Fix unauthenticated UI downloads from public repositories * Authentication check order, Finish LFS file view logic * Ignore LFS hooks if installed for current OS user Fixes Gitea UI actions for repositories tracking LFS files. Checks for minimum needed git version by parsing the semantic version string. * Hide LFS metafile diff from commit view, marking as binary * Show LFS notice if file in commit view is tracked * Add notbefore/nbf JWT claim * Correct lint suggestions - comments for structs and functions - Add comments to LFS model - Function comment for GetRandomBytesAsBase64 - LFS server function comments and lint variable suggestion * Move secret generation code out of conditional Ensures no LFS code may run with an empty secret * Do not hand out JWT tokens if LFS server support is disabled
* Implement sendmail (#355)Philip Couling2016-12-251-1/+1
| | | | | | | | | | | | | | | | * Implemented sendmail. This piggybacks on existing configuration to keep the change simple * Changed privicy of new sendSMTP and sendSendmail functions * Fixed Lint errors * Seperated SMTP and sendmail into their own senders * Making new structs private as they should not be used externally now * Added sendmail setting to ini file * Minor code cleanup
* Added sorting to organizations, repos & users page (#222)Bwko2016-12-243-27/+83
|
* Added sorting to the labels & milestones page (#199)Bwko2016-12-242-6/+32
|
* Bug fixes for Issues filters (#413)Ethan Koenig2016-12-241-50/+29
| | | Correctly handle simultaneous assignee/poster filters, and conflicting assignee filters
* API Endpoint for watching (#191)Ethan Koenig2016-12-241-0/+15
|
* Enables mssql support (#383)btrepp2016-12-242-0/+23
| | | | | | | | | | | | | | | | | | | * Enables mssql support Port of dlobs work in gogs. Enables options in index.js Enables MSSQL as a database option in go. Sets ID to 0 on initial migration. Required for MSSQL insert statements. Signed-off-by: Beau Trepp <beautrepp@gmail.com> * Vendors in denisenkom/go-mssqldb Includes golang.org/x/crypto/md4 as this is required by go-msssqldb Signed-off-by: Beau Trepp <beautrepp@gmail.com>
* Add default values for settings (#455)Lunny Xiao2016-12-231-0/+2
| | | | | | | | | | * add default values for settings * more default values * more default settings and labels resource * mv locale to options
* Bindata is optional and over-writable on restart (#354)Thomas Boerger2016-12-221-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Moved conf assets into options folder * Dropped old bindata * Started to integrate options bindata and accessors * Do not enforce a builtin app.ini * Replaced bindata calls with options * Dropped bindata task from makefile, it's the generate task now * Always embedd app.ini to provide sane config defaults * Use sane defaults for the configuration * Defined default value for SSH_KEYGEN_PATH * Dropped "NEVER EVER MODIFY THIS FILE" header from app.ini * Fixed new paths in latest test additions * Drop bindata with make clean task * Set more proper default values
* fix tag webhook 404 error (#420)Lunny Xiao2016-12-221-1/+1
|
* update code.gitea.io/git (#450)Lunny Xiao2016-12-224-11/+11
|
* UpdateIssueUsersByMentions was calling database write operations while (#443)Lunny Xiao2016-12-223-11/+13
| | | | | | | | | | a transaction session was in progress. MailParticipants was failing silently because of the SQLITE_LOCKED error. Make sure failures in MailParticipants enter the log, and pass on the transaction context. issue: let caller pass in database context, and use it issue_comment: obtain database context to pass to UpdateIssueMentions issue_comment: log any error from call to MailParticipants issue_mail: pass on database context to UpdateIssueMentions
* Bug fixes and tests for modules/base (#442)Ethan Koenig2016-12-221-5/+9
| | | Also address other TODOs
* issue comment api fix (#449)Kim "BKC" Carlbäcker2016-12-221-5/+60
| | | | | | * ListAllInRepo & Delete Issue-Comments * Moar data in issue-comments
* Fix string format verbs (#3637)Alexander Lunegov2016-12-224-5/+5
|
* Fix random string generator (#384)Denis Denisov2016-12-204-8/+22
| | | | | | | | | | | * Remove unused custom-alphabet feature of random string generator Fix random string generator Random string generator should return error if it fails to read random data via crypto/rand * Fixes variable (un)initialization mixed assign Update test GetRandomString
* change test mail subject and body to 'Gitea Test Mail!'Michael de Wit2016-12-201-1/+1
| | | | Signed-off-by: Michael de Wit <mjwwit@gmail.com>
* fixed vulnerabilities labels (#409)Lunny Xiao2016-12-171-1/+28
|
* Remove fixed FIXME (#408)Richie B2B2016-12-161-1/+0
|
* Fix typo (#407)Richie B2B2016-12-161-1/+1
|
* fixed vulnerabilities on deleting release (#399)Lunny Xiao2016-12-161-1/+8
|
* fixed vulnerabilities (#392)Lunny Xiao2016-12-152-7/+31
|
* Don't use custom PBKDF2 function (#382)Lunny Xiao2016-12-151-1/+2
|
* bug fixed branch name for pushupdate (#380)Lunny Xiao2016-12-131-1/+1
|