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
6e45dc9605
caches: introduce new conditional cache function.
2018-07-14 18:17:02 +02:00
Marcin Kuzminski
23c4d38e15
tests: fixed name generation for shadow repos
2018-07-13 21:02:50 +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
ec504c9907
caches: use delete_multi for clearing out cache keys.
...
- This is a safer and more efficient way of purging many keys.
- For file based cache it only opens the DB once
2018-07-13 18:39:52 +02:00
Marcin Kuzminski
f4b8149962
caches: allow debug of max_size reached by the MemoryLRU cache.
2018-07-13 17:29:36 +02:00
Marcin Kuzminski
f652093d5d
http: use better logging with vcsserver context UUID.
2018-07-13 15:33:25 +02:00
Marcin Kuzminski
7d7d6741bb
caches: added logging for dogpile configuration.
2018-07-13 13:06:04 +02:00
Marcin Kuzminski
8fb8dd18d0
ui: add arrow navigation for parent/child in changelog view.
...
- allows easier to tell if we browse next/prev commit
2018-07-12 18:37:14 +02:00
Marcin Kuzminski
84d673d387
caches: use dogpile for sql_cache_short region.
2018-07-12 17:20:03 +02:00
Marcin Kuzminski
0e05d6dd64
caches: use a faster LRUDict implementation for LRUMemoryCache
2018-07-12 17:48:12 +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
1b0ed3831f
static: updated robots.txt example
2018-07-12 11:36:49 +02:00
Marcin Kuzminski
56e1c667a7
manifest: include missing robots.txt file
2018-07-12 11:25:51 +02:00
Marcin Kuzminski
a19d4b732a
caches: use a gevent compatible file-lock mechanism.
...
- because of gevent we can run into a deadlock situation and worker freeze because of
each of the workers will try to aquire a lock.
- This should help with the issue and gevent.
2018-07-12 10:40:18 +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
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
239874ceca
api: pull-requests fixed logic of ancestor calculation and target ref calculation based on the web view.
2018-07-11 17:27:30 +02:00
Marcin Kuzminski
f7081008c5
pull-requests: refactor model for code readability.
2018-07-11 12:37:33 +02:00
Marcin Kuzminski
f3d4446814
api: pull-requests allow automatic title generation via API
2018-07-11 13:46:16 +02:00
Marcin Kuzminski
84767c858f
api: fixed ordering of commits in PR creation from API
2018-07-11 10:36:12 +02:00
Marcin Kuzminski
9812f0cbda
api: fixed recursive permissions changes to repo group.
...
- fixes #5489
2018-07-10 22:39:57 +02:00
Marcin Kuzminski
79dce74e8a
api: fix creation of PR with default reviewer rules.
2018-07-10 18:25:22 +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
a53b88ea40
sessions: update session tunning instructions.
2018-07-09 13:57:14 +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
cc72ded271
caches: skip cache if user is empty.
2018-07-06 14:47:09 +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
c8cd3e9740
caches: use LRUDict inside our lru helper so we can import it later on when required.
2018-07-04 22:26:52 +02:00
Marcin Kuzminski
42a5ad0a2e
dependencies: updated dogpile.cache to 0.6.6
2018-07-04 22:18:59 +02:00
Marcin Kuzminski
6686957262
dependencies: bumped msgpack-python to 0.5.6
2018-07-04 21:00:34 +02:00
Marcin Kuzminski
140c2a20a4
dependencies: bumped graphiz to 0.8.4
2018-07-04 13:32:42 +02:00
Marcin Kuzminski
5fb1abf024
dependencies: bumped gunicorn to 19.9.0
2018-07-04 13:32:16 +02:00
Marcin Kuzminski
ed7f791de4
style: use different indicator for nicer UI.
2018-07-05 14:28:22 +02:00
Marcin Kuzminski
564c09e772
ip-restritions: fix issue with loading empty IP rules for non-logged not-anonymous users.
...
This case won't have any IP rules set. And we accidentally loaded them becuase of no empty user filter
was present. This caused some odd display warnings for users.
2018-07-04 12:19:08 +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
f62a1b94f7
tests: don't use md5 for testing crypto for compliance reasons.
2018-07-03 14:30:57 +02:00
Marcin Kuzminski
2306cd3189
base: drop usage of md5 for calculation of version hash.
2018-07-03 14:28:50 +02:00
Marcin Kuzminski
edc9dc5771
caches: don't use deprecated md5 for key calculation.
...
- md5 isn't a valiable option for compliance reasons
2018-07-03 14:27:32 +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
5b6f79f166
tests: use post for testing webhook at httpbin.org. With recent changes
...
the previous wasn't stable and relaible.
2018-07-03 11:07:45 +02:00
Marcin Kuzminski
f7b8c0f22a
gevent: use cython compatible option. so no keyword argument specified.
2018-07-03 09:48:20 +02:00
Marcin Kuzminski
96f4dbe23b
db: use base table args for all models defined.
2018-07-02 14:14:58 +02:00
Marcin Kuzminski
3fceb045dc
gevent: fix new switch version
2018-07-02 14:03:34 +02:00