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
Marcin Lulek
3522f323e5
frontend: Use Polymer 2.0
2018-07-29 14:47:23 +02:00
Marcin Kuzminski
16fc665e10
system-info: fetch default locale to the provided system info data.
2018-07-30 12:17:36 +02:00
Marcin Kuzminski
cef0f7bcc9
routing: skip advanced delete for repo creating so we can remove stuck repositories.
2018-07-26 21:55:03 +02:00
Marcin Kuzminski
318eb25186
setup: use pip10 compatible setup code.
2018-07-26 13:06:45 +02:00
Marcin Kuzminski
efbd1002ee
dependencies: use our own custom configobj for consistency across projects.
2018-07-26 12:48:10 +02:00
Marcin Kuzminski
b3db08cd09
exceptions-store: show number of exceptions.
2018-07-24 15:13:55 +02:00
Marcin Kuzminski
e9e73ec871
caches: use safest possible pickle for cache backends.
...
- If this crashes we end up in fatal non-recoverable state.
2018-07-23 15:26:36 +02:00
Marcin Kuzminski
b51d537e66
exceptions: don't log error the lookup method errors. This happens so often we spam
...
the logs with errors , while it's simply commit not found. Other backends don't report this anyway exception HG.
2018-07-23 14:50:15 +02:00
Marcin Kuzminski
21c608be71
exceptions: added new exception tracking capability.
...
- store exceptions
- expose super admin interface to browse latest errors
2018-07-23 15:56:09 +02:00
Marcin Kuzminski
77524db5af
validation: remove unused raised statement
2018-07-19 12:46:53 +02:00