Marcin Kuzminski
0d42a57792
configs: update ini files with some minor changes.
2018-08-19 16:09:05 +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
7ba72e3972
dependencies: added setuptools
2018-08-17 09:33:07 +02:00
Marcin Kuzminski
41e1e2552a
dependencies: bumped some loose libraries
...
- scandir-1.9.0
- beautifulsoup4 to 4.6.3
2018-08-17 09:17:01 +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
78fcfd9416
caches: configure license cache to some default settings.
2018-08-14 10:46:58 +02:00
Marcin Kuzminski
f4af7b92c9
backend: don't support vcsserver.scm_app anymore
2018-08-13 13:04:36 +02:00
Marcin Kuzminski
feb55bb023
config: updated .ini files with cache settings
2018-08-13 10:09:49 +02:00
Marcin Kuzminski
cba3c6089c
release: disable check phase for building installation
2018-08-12 11:10:14 +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
b1bfdeb6ba
caches: enable cache TTL=30s for auth-plugins.
...
- mostly due to this gives massive performance gains.
- most of customers choose to use it.
- svn gets *massive* boost from this.
2018-08-11 21:35:19 +02:00
Marcin Kuzminski
9e8409f5d1
docs: updated section about locale-archive problems
2018-08-11 14:19:07 +02:00
Marcin Kuzminski
bf88165cf3
packages: normalize package emails.
2018-08-10 15:51:22 +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
f51b02a7e4
requests: added a default timeout for operation calling the endpoint url.
...
Otherwise we can have a hanging calls for very long time.
2018-08-10 15:19:36 +02:00
Marcin Kuzminski
484a15b894
docs: added info about --optimize flag for full text search.
2018-08-10 10:27:55 +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
0d75142ebc
cache: fix overwrite of flock timeout, and improve logging.
2018-08-06 23:25:23 +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
0946eaebaf
caches: use repo.lru based Dict cache. This LRUDict uses Timing Algo to not have to use locking
...
for the LRU implementation, this it's safer to use for dogpile. We used it before with beaker, so it's
generally more stable.
2018-08-06 00:35:46 +02:00
Marcin Kuzminski
19c718c6fb
http-client: improve exceptions
2018-08-06 00:13:28 +02:00
Marcin Kuzminski
320ac8f9a7
depdendencies: bumped scandir to 1.8.0
2018-08-02 23:24:16 +02:00
Marcin Kuzminski
cf24dcc987
depdendencies: bumped pycurl to 7.43.0.2
2018-08-03 23:05:40 +02:00
Marcin Kuzminski
b9e6b76da3
caches: reduce timeouts on flock, and provide error output about filename which we cannot lock at.
2018-08-04 16:11:55 +02:00
Marcin Kuzminski
74fc993e25
vcs: add nicer traceback information for curl errors.
2018-08-03 22:24:46 +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
543be29fea
caches: improve logging.
2018-08-02 22:20:03 +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
64ee0ddc8f
caches: turn off thread scoped caches, and allow .ini override. Thread scoped caches are only usefull for development on using pserve
2018-08-02 18:28:22 +02:00
Marcin Kuzminski
6b38c098b5
dependencies: added pyotp library for usage in 2FA.
2018-08-02 17:20:30 +02:00
Marcin Kuzminski
264fb6f5bc
mailer: bit of code cleanup
2018-08-02 16:30:47 +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
5e9a2b5c64
caches: use safer method of purging keys from memory dict. During some concurrency tests
...
we detected that has_key has a race condition, and catching exception is safer.
2018-08-02 12:13:00 +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
d6757c3989
core: removed last activity as it was creating lots of DB locks.
2018-07-26 21:54:44 +02:00
Marcin Kuzminski
9038c818bd
vcs-lib: code cleanup
2018-07-31 19:38:28 +02:00
Marcin Kuzminski
e3b98df462
js: added QR library.
2018-07-31 18:43:54 +02:00
Marcin Kuzminski
531efdf3b5
readme: updated readme file.
2018-07-31 18:43:40 +02:00
Marcin Kuzminski
e93e866314
clipboard-js: bumped to 2.0.1 to resolve naming conflicts with window.Clipboard
2018-07-31 18:35:05 +02:00
Marcin Kuzminski
19aa047de2
js: added better build instructions for JS libraries.
2018-07-31 18:34:11 +02:00
Marcin Kuzminski
6166614052
routes: update JS routes for exception tracking
2018-07-31 12:39:03 +02:00
Marcin Kuzminski
cf70f38392
middleware: use finalizing log to inidicate we finished ALL operations.
2018-07-31 12:34:06 +02:00
Marcin Kuzminski
988ae152de
events: use a distinction between RhodeCodeEvent which is a base class and it used by all events, and
...
the events that are handled in addition by integration framework.
2018-07-31 12:29:04 +02:00
Marcin Kuzminski
38cd92a8c0
events: cleanup code, pep8, better logging.
2018-07-31 12:13:04 +02:00
Marcin Kuzminski
8ac7501a0f
dependencies: bumped some not pinned libraries
...
- beautifulsoup4 to 4.6.1
- more-itertools to 4.3.0
2018-07-31 16:57:11 +02:00
Marcin Kuzminski
490e2c8a57
dependencies: bumped python-pam to 1.8.4 and fixed pam auth.
2018-07-31 16:56:20 +02:00
Marcin Lulek
5eda6803c5
frontend: change plugin initialization method
2018-07-29 14:48:03 +02:00
Marcin Lulek
fb6aa94f1c
nix: update nix packages
2018-07-29 14:47:46 +02:00