Commit graph

2941 commits

Author SHA1 Message Date
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
Marcin Kuzminski
bcde413a64 social-auth: add more explicit message about binding accounts on registation page. 2018-07-18 03:05:53 +02:00
Marcin Kuzminski
f74691150a api: allow updates and setting description renderer for pull requests via the API. 2018-07-17 13:30:50 +02:00
Marcin Kuzminski
099f68a724 pull-requests: make the renderer stored and saved for each pull requests.
- gives backward compatability with previous versions which didn't set renderer
- allows versioning of renderer changes
2018-07-17 14:45:29 +02:00
Marcin Kuzminski
b1effdfded web-build: updated webcomponents to latest version. 2018-07-17 13:08:27 +02:00
Marcin Kuzminski
e837d13757 db-migration: added a helper to manage versions. 2018-07-17 12:38:42 +02:00
Marcin Kuzminski
92de5b63ec dependecies: bumped plaster-pastedeploy to 0.6 2018-07-17 11:02:57 +02:00
Marcin Kuzminski
20b766c0fb dependencies: bumped gevent to 1.3.5 2018-07-17 00:45:37 +02:00
Marcin Kuzminski
dcf4089df3 nav-bar: added placeholder for notice box. 2018-07-16 19:43:00 +02:00
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
1bd980d752 emails: ensure none empty emails are fetched from admin accounts in recipinets aren't specified.
- in some cases we could create LDAP or other external accounts with empty email. That could crash the mailing lib.
2018-07-16 18:24:46 +02:00
Marcin Kuzminski
0923d47375 release: merge back stable branch into default 2018-07-16 17:50:03 +02:00
Marcin Kuzminski
de23162a1c Added tag v4.12.4 for changeset 6d531c0b068c 2018-07-16 15:36:49 +02:00
Marcin Kuzminski
5b1a0a1cad release: Finish preparation for 4.12.4 2018-07-16 15:36:48 +02:00
Marcin Kuzminski
1e6dd77b27 release: updated pip2nix output for 4.12.4 2018-07-16 15:36:46 +02:00
Marcin Kuzminski
8940badfb0 release: Start preparation for 4.12.4 2018-07-16 15:34:17 +02:00