Commit graph

392 commits

Author SHA1 Message Date
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
Marcin Kuzminski
79dce74e8a api: fix creation of PR with default reviewer rules. 2018-07-10 18:25:22 +02:00
Marcin Kuzminski
a48ab8a32d caches: don't use beaker for file caches anymore 2018-07-06 12:55:13 +02:00
Marcin Kuzminski
5c59ec640b db: don't use md5 for cache key calculation. Md5 is now fully deprecated. 2018-07-03 14:35:21 +02:00
Marcin Kuzminski
225757aaf3 hooks: made the callback host configurable.
- This allows easier docker container seperation
2018-07-03 11:57:03 +02:00
Marcin Kuzminski
96f4dbe23b db: use base table args for all models defined. 2018-07-02 14:14:58 +02:00
Marcin Kuzminski
ecb77c7c3d tests: added tests for permission update views to catch obvious form errors. 2018-07-02 12:20:44 +02:00
Marcin Kuzminski
ac0e9cf4dc gists: fix problem of deleted gists repositories. 2018-06-25 18:09:40 +02:00
Marcin Kuzminski
c10b510fb0 last-update: use smarter calculation that picks the newer dates first
instead of relying dumply on last commit date which in some cases might be very very old.
2018-06-21 18:14:30 +02:00
Marcin Kuzminski
42c80fe075 shadow-repos: use numeric repo id for creation of shadow repos.
- Fixes a problem after rename or move into repository group.
2018-06-21 14:04:06 +02:00
Marcin Kuzminski
5df4647bd0 shadow-repos: check if path to shadow repo existing before trying to call SCM object.
- sometimes cleanups of shadow repos can occur. We should fail only if shadow repo path
is there, and we can create a repo object from it.
2018-06-17 12:55:27 +02:00
Marcin Kuzminski
b03cb81208 user-groups: expose public profile link to user group in membership view 2018-06-15 10:13:29 +02:00
Marcin Kuzminski
b058fefee1 audit-logs: use auth_user in few places to track action IP. 2018-06-12 18:29:54 +02:00
Marcin Kuzminski
9335656019 pull-requests: fix problem with long DB transaction and row-locking.
fixes #5470
2018-06-11 15:35:54 +02:00
Marcin Kuzminski
88537dc3fa validators: fix problems with new mercurial url validation. 2018-06-05 16:09:55 +02:00
Marcin Kuzminski
71b80f5eeb pull-reqeusts: added option to force-refresh merge workspace in case of problems. 2018-06-05 10:17:16 +02:00
Marcin Kuzminski
b59e2e9485 db: adjust beaker_cache column size. If this column is created via Beaker itself it uses
BLOB for mysql, this can cause some issues with cache sizes not fitting.

We move the creation into our script, then it uses proper size.
2018-04-18 16:32:20 +02:00
Marcin Kuzminski
1a717208f4 audit-logs: store properly IP and user for certain comments types.
- before mostly IP could be missing from audit log data.
2018-04-26 00:59:07 +02:00
Marcin Kuzminski
8d985db7e5 diff-cache: remove diff cache dir on repository removal. 2018-04-18 17:19:59 +02:00
Marcin Kuzminski
aad1f972c6 diff-cache: show safe relative path where cached diffs are stored. 2018-04-18 17:19:40 +02:00
Marcin Kuzminski
ea287e0d07 diff-caches: show count and size in caches view per repository. 2018-04-18 16:52:40 +02:00
Marcin Kuzminski
a18e6c482e api: added audit logs for user-group related calls.
- fixes #5461
2018-04-18 00:49:00 +02:00
Bartłomiej Wołyńczyk
4637dd151e caching: add option to cache diffs for commits and pull requests.
- new option for vcs settings to enable caching of diffs and commits
- enables auditing of PR after closing it, and removing commits from source repo
- speed up for large PR upto 20x
- reduced memory usage
2018-04-17 18:46:20 +02:00
Marcin Kuzminski
bdf5f0afb6 svn: enable hooks and integration framework execution.
- This change will allow SVN to execute rhodecode integration framework
via executing the builting hooks.
- uses txn_id for svn to provide metadata required via Apache
- Interception of SVN transaction is required to use temporary stores for metadata
- hooks are now part of vcsserver where the install/control logic is stored
2018-04-06 12:44:01 +02:00
Marcin Kuzminski
89d8b3cb21 api: security, fix problem when absolute paths are specified with API call, that would allow
forking of path based repos if paths are known to end users.
2018-03-28 21:56:23 +02:00
Marcin Kuzminski
3949688b3d api: enable setting sync flag for user groups on create/edit. 2018-03-28 13:27:21 +02:00
Marcin Kuzminski
04ad3b47be logs: fix leaking of tokens to logging. Fixes #5452 2018-03-22 17:51:42 +01:00
Marcin Kuzminski
e5db2ac1d2 visual-settings: fill in default clone/ssh clone urls if they aren't provided.
- people tend to not know what should be the proper value. Let's fill in the defaults for them
2018-02-20 15:10:01 +01:00
Bartłomiej Wołyńczyk
8ac5cf95aa my-account: security change, added select filed with email from extra emails while editing user profile, now adding extra emails required type password. Task #5386 2018-02-15 18:40:03 +01:00
Marcin Kuzminski
0fdbc4a78f events: expose shadow repo build url. 2018-02-15 23:24:23 +01:00
Marcin Kuzminski
718c2f6c44 reviewers: fixed logic with wildcard match for branches. 2018-02-15 23:52:31 +01:00
Marcin Kuzminski
5f25ae601e repositories: allow properly updating repository push url. 2018-02-12 14:14:33 +01:00
Marcin Kuzminski
803051c06b scm-model: fix the reference to the proper default url used for pushing 2018-02-12 14:08:36 +01:00
Marcin Kuzminski
c2c94c7f57 repositories: allow storing push url for automation. 2018-02-11 20:51:56 +01:00
Marcin Kuzminski
8e1c8a63ca models: drop unused is_valid method. 2018-02-01 17:58:57 +01:00
Marcin Kuzminski
ada388ee9a permissions: fix problem with permissions reset to None for cases when user
group had same ID as default user.
2018-01-30 13:52:50 +01:00
Marcin Kuzminski
9c22bde88e ui: allow selecting and specifing ssh clone url.
- fixes #5340
2018-01-25 14:20:08 +01:00
Marcin Kuzminski
ce187718c6 db-models: fix missing JsonRaw import. 2018-01-22 19:08:16 +01:00
Marcin Kuzminski
93a93bbb19 scm: added push options for Mercurial and Git to allow remote repository sync. 2018-01-22 18:15:51 +01:00
Marcin Kuzminski
7a8360b80a dashboard: show date of commit inside the tooltip. 2018-01-22 12:43:03 +01:00
Marcin Kuzminski
00b45c1fa7 release: update copyright year to 2018 2018-01-19 17:13:16 +01:00
Marcin Kuzminski
6f2703e4af default-reviewers: introduce new voting rule logic that allows
defining vote rules for user groups assigned to the default reviewers.

- allows to set per number votes on user groups
- group reviewers by groups
- store the rules and show them in the UI
- fixes #5409
2018-01-19 12:38:25 +01:00
Marcin Lulek
15fff6dafd repository: fixed a bug when scoped token was attached to repository, admins were unable to remove that repository. 2018-01-19 13:20:42 +01:00
Marcin Kuzminski
a923fc7303 pull-requests: use proper validation of pull request title to prevent from bad errors. 2018-01-18 15:12:17 +01:00
Marcin Kuzminski
f6063fb031 pull-requests: don't select first commit in case we don't get default branch. Loading
compare from commit 0 to something selected is very heavy to compute. Instead force
user to select the ref manually. ref #5414
2018-01-15 21:08:23 +01:00
Marcin Kuzminski
90c9124213 events: properly refresh comment object to load it's relationship.
This prevents from issues of reading associated statuses of comment during
a partial commit (using Session().flush)

- Fixes #5412
2018-01-06 12:08:49 +01:00