zouap
2531431009
提交代码,修改用户运营统计相关Bug
Signed-off-by: zouap <zouap@pcl.ac.cn>
3 years ago
zouap
fe622b26e3
提交代码。
Signed-off-by: zouap <zouap@pcl.ac.cn>
3 years ago
zouap
629fd5ac95
Merge remote-tracking branch 'origin/V20211115' into zouap
3 years ago
ychao_1983
ba036592e8
修改bug
3 years ago
zouap
236a027869
Merge remote-tracking branch 'origin/V20211115' into zouap
3 years ago
ychao_1983
170c3be87d
自定义脚本升级区分数据库
3 years ago
zouap
44ea702590
提交代码。
Signed-off-by: zouap <zouap@pcl.ac.cn>
3 years ago
liuzx
4e2ec3ebd9
训练多版本修改返回的训练列表
3 years ago
zouap
69858de7d0
提交代码。
Signed-off-by: zouap <zouap@pcl.ac.cn>
3 years ago
zouap
e52e09cfd5
增加用户登录日志信息
Signed-off-by: zouap <zouap@pcl.ac.cn>
3 years ago
ychao_1983
42bad058a2
fix-359 平台总体指标数据入库
3 years ago
lewis
9f80819e32
add repo statistic
3 years ago
zouap
978ebfe9b0
增加用户的每天运营统计数据
Signed-off-by: zouap <zouap@pcl.ac.cn>
3 years ago
lewis
5b4cf9641c
add statistic engine
3 years ago
lewis
f6a0af2044
config recommend orgs
3 years ago
ychao_1983
c64d911bd3
#244#310主题支持中文
3 years ago
rogerluo410
d7490b4955
Fix db null exception while start cron job
4 years ago
yuyuanshifu
cf5a662289
CreateBlockchainAccount&NewRepo
4 years ago
palytoxin
4dabc04128
Merge branch 'develop' into dev-cloudmain
4 years ago
palytoxin
fd8f425548
add cloudbrain api support
4 years ago
yuyuanshifu
076af2ff71
add some interface
5 years ago
yan
c734eacb97
add dataset migration
5 years ago
Success Go
8cffae65a6
Fix typo of MSSQL ( #10850 )
5 years ago
zeripath
e6baa656f7
make avatar lookup occur at image request ( #10540 )
speed up page generation by making avatar lookup occur at the browser
not at page generation
* Protect against evil email address ".."
* hash the complete email address
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-Authored-By: Lauris BH <lauris@nix.lv>
5 years ago
Lauris BH
a3f90948d8
Set MySQL rowtype to dynamic for new tables ( #10833 )
* Set mysql rowtype to dynamic for new tables
* Update models.go
5 years ago
Lunny Xiao
c61b902538
Upgrade xorm to v1.0.0 ( #10646 )
* Upgrade xorm to v1.0.0
* small nit
* Fix tests
* Update xorm
* Update xorm
* fix go.sum
* fix test
* Fix bug when dump
* Fix bug
* update xorm to latest
* Fix migration test
* update xorm to latest
* Fix import order
* Use xorm tag
5 years ago
guillep2k
15614a8368
Divide GetIssueStats query in smaller chunks ( #10176 )
* Divide GetIssueStats query in smaller chunks
* Skip chunking if count is low enough
* Fix lint
* Define maxQueryParameters
* Remove absMaxQueryParameters because of lint
* Restart CI
* Restart CI
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
5 years ago
Lauris BH
ad2642a8aa
Language statistics bar for repositories ( #8037 )
* Implementation for calculating language statistics
Impement saving code language statistics to database
Implement rendering langauge stats
Add primary laguage to show in repository list
Implement repository stats indexer queue
Add indexer test
Refactor to use queue module
* Do not timeout for queues
5 years ago
SpaWn2KiLl
1f01f53c53
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
guillep2k
ad1b6d439f
Add support for database schema in PostgreSQL ( #8819 )
* Add support for database schema
* Require setting search_path for the db user
* Add schema setting to admin/config.tmpl
* Use a schema different from default for psql tests
* Update postgres scripts to use custom schema
* Update to xorm/core 0.7.3 and xorm/xorm c37aff9b3a
* Fix migration test
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
5 years ago
zeripath
e3c3b33ea7
Graceful: Xorm, RepoIndexer, Cron and Others ( #9282 )
* Change graceful to use a singleton obtained through GetManager instead of a global.
* Graceful: Make TestPullRequests shutdownable
* Graceful: Make the cron tasks graceful
* Graceful: AddTestPullRequest run in graceful ctx
* Graceful: SyncMirrors shutdown
* Graceful: SetDefaultContext for Xorm to be HammerContext
* Avoid starting graceful for migrate commands and checkout
* Graceful: DeliverHooks now can be shutdown
* Fix multiple syncing errors in modules/sync/UniqueQueue & Make UniqueQueue closable
* Begin the process of making the repo indexer shutdown gracefully
5 years ago
Lunny Xiao
be06dee04c
Move code indexer related code to a new package ( #9191 )
* move code indexer related code to a new package
* fix lint
* fix tests
* fix fmt
* GetMaxID support interface parameter
5 years ago
zeripath
d8161ee3fd
Expose db.SetMaxOpenConns and allow non MySQL dbs to set conn pool params ( #8528 )
* Expose db.SetMaxOpenConns and allow other dbs to set their connection params
* Add note about port exhaustion
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
5 years ago
Lunny Xiao
d151503d34
Upgrade xorm to v0.8.0 ( #8536 )
5 years ago
Lunny Xiao
f2a3abc683
Move migrating repository from frontend to backend ( #6200 )
* move migrating to backend
* add loading image when migrating and fix tests
* fix format
* fix lint
* add redis task queue support and improve docs
* add redis vendor
* fix vet
* add database migrations and fix app.ini sample
* add comments for task section on app.ini.sample
* Update models/migrations/v84.go
Co-Authored-By: lunny <xiaolunwen@gmail.com>
* Update models/repo.go
Co-Authored-By: lunny <xiaolunwen@gmail.com>
* move migrating to backend
* add loading image when migrating and fix tests
* fix fmt
* add redis task queue support and improve docs
* fix fixtures
* fix fixtures
* fix duplicate function on index.js
* fix tests
* rename repository statuses
* check if repository is being create when SSH request
* fix lint
* fix template
* some improvements
* fix template
* unified migrate options
* fix lint
* fix loading page
* refactor
* When gitea restart, don't restart the running tasks because we may have servel gitea instances, that may break the migration
* fix js
* Update models/repo.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* fix tests
* rename ErrTaskIsNotExist to ErrTaskDoesNotExist
* delete release after add one on tests to make it run happy
* fix tests
* fix tests
* improve codes
* fix lint
* fix lint
* fix migrations
5 years ago
Lunny Xiao
c03d75fbd5
Move git diff codes from models to services/gitdiff ( #7889 )
* move git diff codes from models to services/gitdiff
* fix template
* fix test
* fix template
5 years ago
Lunny Xiao
f83db078f0
Move database settings from models to setting ( #7806 )
* move database settings from models to setting
* update docs
* fix checkout pr
* fix tests
* fix lint
* remove unsupported tidb options
* correct wrong variable name
* remove tidb totally
5 years ago
Lunny Xiao
7b009626da
Add SQL execution on log and indexes on table repository and comment ( #7740 )
* add index on comment
* add SQL execution time on log and index owner_id on repository
* add migration
5 years ago
Lunny Xiao
337d6915ff
Detect migrating batch size ( #7353 )
* Make migrating batch size as configurable
* detect different table batch insert size and remove config item
* remove unrelated changes
6 years ago
Lunny Xiao
aa7c34cf86
Fix error log when loading issues caused by a xorm bug ( #7271 )
* fix error log when loading issues caused by a xorm bug
* upgrade packages
* fix fmt
* fix Consistency
* fix tests
6 years ago
kolaente
f9ec2f89f2
Add golangci ( #6418 )
6 years ago
Lunny Xiao
c2f3938a58
fix possbile mysql invalid connnection error ( #7051 )
6 years ago
Lunny Xiao
d5a98a2969
Add support of utf8mb4 for mysql ( #6992 )
6 years ago
Lunny Xiao
8b36f01f45
Move xorm logger bridge from log to models so that log module could be a standalone package ( #6944 )
* move xorm logger bridge from log to models so that log module could be a standalone package
* fix tests
* save logger on xorm log bridge
6 years ago
Antoine GIRARD
d699de32f2
add .gpg url (match github behaviour) ( #6610 )
* add .gpg url (match github behaviour)
* wildcard
* test to export maximum data
* working POC
* add comment for old imported keys
* cleaning
* Update routers/user/profile.go
Co-Authored-By: sapk <sapk@users.noreply.github.com>
* add migration script
* add integration tests
6 years ago
Lunny Xiao
91dcccf72d
fix dump table name error and add some test for dump database ( #6394 )
6 years ago
Jonas Franz
e777c6bdc6
Integrate OAuth2 Provider ( #5378 )
6 years ago
John Olheiser
6cc11eccac
Change sqlite DB path default to data directory ( #6198 )
6 years ago
Lunny Xiao
830ae61456
Refactor issue indexer ( #5363 )
6 years ago
kolaente
6db7dbd333
Added test environment for mssql ( #4282 )
* Added test environment for m$sql
* Added template for test environment for m$sql
* Fix password
* Fix password (again)
* Fix password (again again)
* Fix db
* Ci trigger (Looking at you drone....)
* Ci trigger (Looking at you drone....)
* Ci trigger (Looking at you drone....)
* Ci trigger (Looking at you drone....)
* Create master database for mssql integration tests
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Create database only if master do not exist
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix mssql integration tests by using custom database "gitea"
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Moved defer
* bump xorm
* updated xorm
* Fixed build
6 years ago