Commit graph

328 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
03e412b2fa caches: disable caches in predicates.
- predicates store objects inside request which we later frequnetly use.
- generally we'll loose ~20ms on this call but this fixes a lot of problems
  especially when deleting resources and they are still in cache.
2018-07-14 18:18:35 +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
84d673d387 caches: use dogpile for sql_cache_short region. 2018-07-12 17:20:03 +02:00
Marcin Kuzminski
d576848d4a api: creation of pull_request now honor additional reviewers when using reviewer rules. 2018-07-12 14:10:29 +02:00
Marcin Kuzminski
30eb0aa985 caches: flush permission caches when editing affected objects so we can reach them right after changes. 2018-07-11 13:27:17 +02:00
Marcin Kuzminski
1e5586a48f events: UserPermissionsChanged should not flush duplicates 2018-07-11 13:26:45 +02:00
Marcin Kuzminski
fa5d94d619 permissions: flush cache when creating a new fork. 2018-07-11 12:56:18 +02:00
Marcin Kuzminski
f7081008c5 pull-requests: refactor model for code readability. 2018-07-11 12:37:33 +02:00
Marcin Kuzminski
8a32949457 caches: flush cache when adding new objects so we can access them right away. 2018-07-10 16:02:21 +02:00
Marcin Kuzminski
0691f71bdd caches: flush the caches on permission changes for affected users. 2018-07-09 13:56:52 +02:00
Marcin Kuzminski
ad4963f1d3 events: add event to catch permission changed so we can flush affected users permission caches 2018-07-09 13:01:42 +02:00
Marcin Kuzminski
6be51bb03d cache: turn off caches if expiration_time is 0 2018-07-06 14:47:34 +02:00
Marcin Kuzminski
a48ab8a32d caches: don't use beaker for file caches anymore 2018-07-06 12:55:13 +02:00
Marcin Kuzminski
ddc445856e caches: rewrite of auth/permission caches to dogpile. 2018-07-05 20:14:33 +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
83e0f60d20 permissions: fixed audit log data on user group permissions view. 2018-07-02 12:22:00 +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
bafbc2b040 pull-requests: allow markup rendered description. 2018-06-25 12:01:35 +02:00
Marcin Kuzminski
cb57401127 shadow-repos: show count of shadow repos for each repo in caches view. 2018-06-21 14:04:32 +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
7ed0451f13 quick-search: use smart group search when browsing inside a repository group.
- This replaces last part of now disabled quick filter.
2018-06-18 15:52:20 +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
bfbb9e33a4 quick-serach: added option to also search user-groups. 2018-06-15 13:57:03 +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
61af3befa8 repo-switcher: fix unicode problem 2018-06-12 15:12:06 +02:00
Marcin Kuzminski
b66bbff0e8 tests: made few tests handle database transactions better. 2018-06-11 18:39:51 +02:00
Marcin Kuzminski
367a32a69a git: use force fetch and update for target ref. This solves a case
when in PRs a target is force updated and is out of sync. Before
we used a pull which --ff-only fails obviosly because two are out of
sync. This change uses new logic that resets the target branch according to the
source target branch allowing smooth merge simulation.
2018-06-08 15:42:01 +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
5a9eef68a6 search-bar: forbid anonymous users to search 2018-05-30 15:18:34 +02:00
Marcin Kuzminski
7c46071c51 repo-switcher: new unified search box for filtering/accessing users, repos and repo groups.
- mainly driven by customer feedback
- two filter boxes on main page was confusing, and people constantly asked if grid filter can search recursive
- now we use one unified search on main nave accessible on every page
- it now also can search for users
2018-05-30 12:54:50 +02:00
Marcin Kuzminski
df9206a486 release: merge back stable branch into default 2018-05-17 12:05:10 +02:00
Marcin Kuzminski
10cf433145 ssh-keys: further sanitize data of inputted SSH keys. 2018-05-16 23:01:46 +02:00
Marcin Kuzminski
7e3a4739f0 ssh(sec): fix newline problem on key saving that would allow bypassing command sandbox. 2018-05-15 18:51:38 +02:00
Marcin Kuzminski
213cf5463d release: merge back stable branch into default 2018-05-15 16:04:13 +02:00
Marcin Kuzminski
2c4ccca111 repo-feed: fix path-based permissions condition on caching element.
- the check condition was accidentally flipped the wrong way.
2018-05-14 23:56:08 +02:00
Marcin Kuzminski
60f05e27cd code: small cleanups of code 2018-05-14 14:22:41 +02:00
Marcin Kuzminski
96c8fb8a21 re-captcha: adjust for v2 that is the only left one supported since 1st of May. 2018-05-06 23:19:05 +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
57f02fd184 audit: properly store IP address for user registration 2018-05-07 16:39:42 +02:00
Marcin Kuzminski
226175af89 re-captcha: adjust for v2 that is the only left one supported since 1st of May. 2018-05-06 23:19:05 +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
Bartłomiej Wołyńczyk
7ba1dd57ac admin users and admin users group: add number of inactive users/users_group, resolves #5454 2018-04-18 21:43:24 +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
173415824b repo-settings: add hidden view to force re-install hooks.
Used mainly for admin tasks that require a support action, and allows
to force reinstall hooks without a remap&rescann option.
2018-04-03 13:33:16 +02:00
Marcin Kuzminski
3667868099 system-info: added ulimit to system info. 2018-03-30 15:35:55 +02:00
Marcin Kuzminski
c8bd6381f6 user-groups: fix sync flag extraction. 2018-03-30 14:21:15 +02:00
Marcin Kuzminski
beff366341 processes: better handling of PID that are not part of RhodeCode processes.
- in some cases for multiple gunicorn instances the PID sent is not from rhodecode which
would lead to AccessDenied errors. We prevent from crashing the server on this type of errors.
2018-03-28 13:27:03 +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
a8428e7271 auth-ldap: added connection pinning and timeout option to ldap plugin 2018-03-27 11:51:37 +02:00