summaryrefslogtreecommitdiffstats
path: root/options
Commit message (Collapse)AuthorAgeFilesLines
* Queue: Make WorkerPools and Queues flushable (#10001)zeripath2020-01-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Make WorkerPools and Queues flushable Adds Flush methods to Queues and the WorkerPool Further abstracts the WorkerPool Adds a final step to Flush the queues in the defer from PrintCurrentTest Fixes an issue with Settings inheritance in queues Signed-off-by: Andrew Thornton <art27@cantab.net> * Change to for loop * Add IsEmpty and begin just making the queues composed WorkerPools * subsume workerpool into the queues and create a flushable interface * Add manager command * Move flushall to queue.Manager and add to testlogger * As per @guillep2k * as per @guillep2k * Just make queues all implement flushable and clean up the wrapped queue flushes * cope with no timeout Co-authored-by: Lauris BH <lauris@nix.lv>
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-271-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-271-9/+9
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-251-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-2525-1758/+1760
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-259-0/+20
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-2525-1765/+1765
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-251-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-241-0/+30
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-221-2/+49
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-222-1/+24
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-2131-2817/+1785
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-211-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-201-0/+3
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-201-0/+1
|
* Add support for database schema in PostgreSQL (#8819)guillep2k2020-01-201-0/+3
| | | | | | | | | | | | | | | | | | | * 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>
* Add option to prevent LDAP from deactivating everything on empty search (#9879)zeripath2020-01-201-0/+1
| | | | | | | | | | | * Add option to prevent LDAP from deactivating everything on empty search * Update options/locale/locale_en-US.ini Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-191-0/+32
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-191-0/+33
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-171-0/+6
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-171-3/+3
|
* Add setting to set default and global disabled repository units. (#8788)David Svantesson2020-01-171-0/+2
| | | | | | | | | | | | | | | | | | * Add possibility to global disable repo units. * Add Default Repo Unit app.ini setting. * Hide units * Hide disabled repo units * Minor fixes * Indicate disabled units in team settings. Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: zeripath <art27@cantab.net>
* Add "Update Branch" button to Pull Requests (#9784)65432020-01-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add Divergence * add Update Button * first working version * re-use code * split raw merge commands and db-change functions (notify, cache, ...) * use rawMerge (remove redundant code) * own function to get Diverging of PRs * use FlashError * correct Error Msg * hook is triggerd ... so remove comment * add "branch2" to "user2/repo1" because it unit-test "TestPullView_ReviewerMissed" use it but dont exist jet :/ * move GetPerm to IsUserAllowedToUpdate * add Flash Success MSG * imprufe code - remove useless js chage * fix-lint * TEST: add PullRequest ID:5 Repo: user2/repo1 Base: branch1 Head: pr-to-update * correct comments * make PR5 outdated * fix Tests * WIP: add pull update test * update revs * update locales * working TEST * update UI * misspell * change style * add 1s delay so rev exist * move row up (before merge row) * fix lint nit * UI remove divider * Update style * nits * do it right * introduce IsSameRepo * remove useless check Co-authored-by: Lauris BH <lauris@nix.lv>
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-161-0/+20
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-1514-14/+40
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-1530-35/+137
|
* err_admin_name_pattern_not_allowed String Clarification (#9731)Bagas Sanjaya2020-01-151-1/+1
| | | | | | | | | | | | | * err_admin_name_pattern_not_allowed clarification edit * Apply suggestion from @zeripath Context: username that provided as admin Co-Authored-By: zeripath <art27@cantab.net> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
* Add require signed commit for protected branch (#9708)zeripath2020-01-151-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add require signed commit for protected branch * Fix fmt * Make editor show if they will be signed * bugfix * Add basic merge check and better information for CRUD * linting comment * Add descriptors to merge signing * Slight refactor * Slight improvement to appearances * Handle Merge API * manage CRUD API * Move error to error.go * Remove fix to delete.go * prep for merge * need to tolerate \r\n in message * check protected branch before trying to load it * Apply suggestions from code review Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * fix commit-reader Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-152-17/+24
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-151-0/+8
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-151-1/+13
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-141-0/+2
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-141-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-142-2/+35
|
* Restricted users (#6274)Manush Dodunekov2020-01-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Restricted users (#4334): initial implementation * Add User.IsRestricted & UI to edit it * Pass user object instead of user id to places where IsRestricted flag matters * Restricted users: maintain access rows for all referenced repos (incl public) * Take logged in user & IsRestricted flag into account in org/repo listings, searches and accesses * Add basic repo access tests for restricted users Signed-off-by: Manush Dodunekov <manush@stendahls.se> * Mention restricted users in the faq Signed-off-by: Manush Dodunekov <manush@stendahls.se> * Revert unnecessary change `.isUserPartOfOrg` -> `.IsUserPartOfOrg` Signed-off-by: Manush Dodunekov <manush@stendahls.se> * Remove unnecessary `org.IsOrganization()` call Signed-off-by: Manush Dodunekov <manush@stendahls.se> * Revert to an `int64` keyed `accessMap` * Add type `userAccess` * Add convenience func updateUserAccess() * Turn accessMap into a `map[int64]userAccess` Signed-off-by: Manush Dodunekov <manush@stendahls.se> * or even better: `map[int64]*userAccess` * updateUserAccess(): use tighter syntax as suggested by lafriks * even tighter * Avoid extra loop * Don't disclose limited orgs to unauthenticated users * Don't assume block only applies to orgs * Use an array of `VisibleType` for filtering * fix yet another thinko * Ok - no need for u * Revert "Ok - no need for u" This reverts commit 5c3e886aabd5acd997a3b35687d322439732c200. Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: Lauris BH <lauris@nix.lv>
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-131-0/+2
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-131-1/+28
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-121-0/+54
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-121-1/+35
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-1112-14/+52
|
* Allow repo admin to merge PR regardless of review status (#9611)David Svantesson2020-01-111-1/+2
| | | | * Allow repo admin to merge even if review is not ok.
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-091-0/+14
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-091-0/+2
|
* Mark PR reviews as stale at push and allow to dismiss stale approvals (#9532)David Svantesson2020-01-091-0/+2
| | | | | | | Fix #5997. If a push causes the patch/diff of a PR towards target branch to change, all existing reviews for the PR will be set and shown as stale. New branch protection option to dismiss stale approvals are added. To show that a review is not based on the latest PR changes, an hourglass is shown
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-081-3/+49
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-0730-0/+152
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-071-0/+76
|
* Graceful Queues: Issue Indexing and Tasks (#9363)zeripath2020-01-071-1/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Queue: Add generic graceful queues with settings * Queue & Setting: Add worker pool implementation * Queue: Add worker settings * Queue: Make resizing worker pools * Queue: Add name variable to queues * Queue: Add monitoring * Queue: Improve logging * Issues: Gracefulise the issues indexer Remove the old now unused specific queues * Task: Move to generic queue and gracefulise * Issues: Standardise the issues indexer queue settings * Fix test * Queue: Allow Redis to connect to unix * Prevent deadlock during early shutdown of issue indexer * Add MaxWorker settings to queues * Merge branch 'master' into graceful-queues * Update modules/indexer/issues/indexer.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Update modules/indexer/issues/indexer.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Update modules/queue/queue_channel.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Update modules/queue/queue_disk.go * Update modules/queue/queue_disk_channel.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Rename queue.Description to queue.ManagedQueue as per @guillep2k * Cancel pool workers when removed * Remove dependency on queue from setting * Update modules/queue/queue_redis.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * As per @guillep2k add mutex locks on shutdown/terminate * move unlocking out of setInternal * Add warning if number of workers < 0 * Small changes as per @guillep2k * No redis host specified not found * Clean up documentation for queues * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md * Update modules/indexer/issues/indexer_test.go * Ensure that persistable channel queue is added to manager * Rename QUEUE_NAME REDIS_QUEUE_NAME * Revert "Rename QUEUE_NAME REDIS_QUEUE_NAME" This reverts commit 1f83b4fc9b9dabda186257b38c265fe7012f90df. Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-073-1/+9
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-061-0/+6
|