Marcin Kuzminski
1d027eb16a
pull-requests: validate ref types for pull request so users cannot provide wrongs ones.
2018-12-13 22:02:46 +01:00
Marcin Kuzminski
50ae42bfdb
logging: show version at app startup for debugging.
2018-12-08 00:02:34 +01:00
Marcin Kuzminski
4719d0ff87
code: unified coverage notes to # pragma: no cover
2018-12-07 13:34:28 +01:00
Marcin Kuzminski
7857008183
notifications: use a set initially instead of list later converted to set.
2018-12-06 17:54:43 +01:00
Marcin Kuzminski
f3d3f479b4
code: fixed deprecated octal calls for py3 compat.
2018-11-30 11:49:27 +01:00
Marcin Kuzminski
64c5591c2e
authentication: allow setting extern type with registration.
...
- This will allow external identity plugins to define proper externs instead of always
using "rhodecode" one
2018-11-29 18:13:31 +01:00
Marcin Kuzminski
d244bd69f2
db-models: added some helpers for auth, and external identity code.
2018-11-28 13:40:34 +01:00
Marcin Kuzminski
0cc2c2c07d
code: code cleanups, use is None instead of == None.
2018-11-21 18:05:27 +01:00
Daniel Dourvaris
94d74336d1
diffs: introducing diff menu for whitespace toggle and context changes
2018-10-23 17:02:26 +02:00
Marcin Kuzminski
175a9b344e
rcextensions: new builtin rcextensions.
...
- ability to expose output to users from rcextensions
- new docs
- linking to the code makes the tests always check the integrity of rcextensions
- added new hook variables and described them to end users
2018-10-23 11:45:45 +02:00
Marcin Kuzminski
4da7905b37
vcs: use a real two part name for merge operation.
...
- expose settings into vcs_settings for easier override later
2018-10-01 13:54:51 +02:00
Marcin Kuzminski
2910f510dc
repositories: added option to archive repositories instead of deleting them.
...
- closes #5493
2018-09-25 17:28:11 +02:00
Marcin Kuzminski
39d181f715
repository: add check preventing of removal of repo with attached pull requests.
...
- fixes #5493
2018-09-25 12:05:44 +02:00
Marcin Kuzminski
7ec8856f00
users: in case of multiple personal groups, return the first instead of an error.
...
- backward compat fix from previous error we had
2018-09-24 19:02:52 +02:00
Marcin Kuzminski
e9cb071b85
users: when deleting users ensure we also clear personal flag so we don't have multiple personal groups
...
for super-admin who inherits the detached objects.
2018-09-24 19:02:21 +02:00
Marcin Kuzminski
6f01bfd58b
users: ensure get_first_superadmin actually gets the 1st created super-admin.
2018-09-24 19:01:50 +02:00
Marcin Kuzminski
5a4a98b40e
git: use a fetch_sync based creation of remote repos.
...
- skips fragile dulwich code that has problems with large repos
- is in sync with logic that does remote fetch
- is faster and more efficient
2018-09-21 13:35:45 +02:00
Marcin Kuzminski
da91bab5d6
validators: fix url_validator tests and make it flag controllable.
2018-09-19 10:52:06 +02:00
Marcin Kuzminski
8ab9a65878
scm-model: add extra validation logic for remote uri to filter out bad scheduler entries.
2018-09-18 20:23:32 +02:00
Marcin Kuzminski
1f39d62f74
comments: use proper auth user for close PR action.
2018-09-18 09:49:18 +02:00
Marcin Kuzminski
da773459ae
comments: fix extracing auth_user from the passed in objects. Before if auth_user is empty we could relly on INT or STR passed in
2018-09-17 19:05:34 +02:00
Marcin Kuzminski
9033601562
logging: use lazy parameter evaluation in log calls.
2018-09-13 17:41:35 +02:00
Marcin Kuzminski
44d318a68c
added some more logging for token auth
2018-09-13 13:19:05 +02:00
Marcin Kuzminski
174038ef3a
branch-permissions: fixed override of default permissions for branches from admin page
2018-08-30 15:23:08 +02:00
Marcin Kuzminski
eb911610bd
branch-permissions: handle cases for revoking regular permissions when branch permissions are set:
...
- DB cascade delete fliushing branch when repository is deleted
- forbid lowering permissions if it's used for branch
2018-08-30 00:47:01 +02:00
Marcin Kuzminski
6458ef9105
pull-requests: add merge validation to prevent merges to protected branches.
2018-08-28 20:24:40 +02:00
Marcin Kuzminski
888fbe646e
branch-rules forbid removal of permissions assigned.
2018-08-22 17:53:59 +02:00
Marcin Kuzminski
07006254e0
permissions: add links to permissions summary for each permission pages
2018-08-22 16:06:52 +02:00
Marcin Kuzminski
e41725c078
branch permissions: added logic to define in UI branch permissions.
...
- db models
- new permissions pages placeholders
2018-08-28 13:41:30 +02:00
Marcin Kuzminski
8510d1ece8
models: fixed spelling.
2018-08-19 11:00:02 +02:00
Marcin Kuzminski
e9e45a7a24
db-upgrade: clean the beaker_cache
2018-08-19 10:59:35 +02:00
Marcin Kuzminski
5f656f5671
default-reviewers: fixed voting rule calculation on user-group. The previous
...
logic took user group even for individual users, thus voting on group wasn't correct
in case of mixed single reviewers + user groups.
2018-08-17 09:12:28 +02:00
Marcin Kuzminski
9effaef334
git: use smarter way for checking if repo is empty. This doesn't spam logs with some dulwich exceptions, we shouldn't really care about here.`
2018-08-11 14:20:58 +02:00
Marcin Kuzminski
b9af4aab18
auth-tokens: abstracted adding token for users into UserModel method for easier usage in scripts, and in future in API.
2018-08-10 15:20:29 +02:00
Marcin Kuzminski
3f31c5bd8b
caches: use context based cache for repository.
...
- due to gevent sharing connections problem we have to make the cache key per each
green thread.
2018-08-10 10:27:35 +02:00
Marcin Kuzminski
426032d9a2
caches: make gevent curl connection cache friendly.
...
- gevent threads needs it's own cache, and connection
- added strict detection of cache problem in gevent curl
2018-08-06 19:28:16 +02:00
Marcin Kuzminski
c218e2a9ea
caches: use .refresh() instead of .invalidate()
...
- .invalidate() does a delete of cached valued under a key, which means
in previous logic we delete, get_or_create, and compute.
- .refresh() is simply replacing exising key with newly computed values, this
creates less locks, and it's faster.
2018-08-03 14:34:33 +02:00
Marcin Kuzminski
0dcf480d6e
caches: use process aware settings cache with proper invalidation.
2018-08-02 22:15:16 +02:00
Marcin Kuzminski
49f08fd080
caches: store computation time inside context manager as helper. Since the with block is full
...
calculation we can use it to calculate the function execution time.
2018-08-02 22:14:42 +02:00
Marcin Kuzminski
f1497f5afd
caches: new cache context managers.
...
- deprecate beaker cache completly
- use new cache decorators from dogpile
- use a proper per cache key invalidation
2018-08-02 18:04:52 +02:00
Marcin Kuzminski
ecff3dbaed
security: update lastactivity when on audit logs.
...
- The previous update on each call was to expensive and created lot of DB locks in high traffic env
2018-07-31 22:52:44 +02:00
Marcin Kuzminski
38cd92a8c0
events: cleanup code, pep8, better logging.
2018-07-31 12:13:04 +02:00
Marcin Kuzminski
77524db5af
validation: remove unused raised statement
2018-07-19 12:46:53 +02:00
Marcin Kuzminski
099f68a724
pull-requests: make the renderer stored and saved for each pull requests.
...
- gives backward compatability with previous versions which didn't set renderer
- allows versioning of renderer changes
2018-07-17 14:45:29 +02:00
Marcin Kuzminski
e837d13757
db-migration: added a helper to manage versions.
2018-07-17 12:38:42 +02:00
Marcin Kuzminski
c4e1783d4f
notifications: use an explicit FK mark when creating notifications, previous way was prone to cache problems.
2018-07-16 19:07:27 +02:00
Marcin Kuzminski
9665179aa5
caches: use new decorator that uses conditional caches skipping dogpile if cache is disabled.
2018-07-14 18:17:42 +02:00
Marcin Kuzminski
357405796f
caches: removed unused cache option from repo by id fetch.
2018-07-13 19:28:31 +02:00
Marcin Kuzminski
84d673d387
caches: use dogpile for sql_cache_short region.
2018-07-12 17:20:03 +02:00
Marcin Kuzminski
91f5c6e707
review-rules: allow regex syntax for more flexiblity on writing rule patterns
2018-07-11 18:44:35 +02:00