Commit graph

624 commits

Author SHA1 Message Date
Martin Bornhold
94ce48830f config: Sanitize 'vcs.connection_timeout' setting in pyramid app init. 2016-08-10 12:02:13 +02:00
lisaq
4729365ebd tests: functional tests for diff 2 way 2016-08-10 22:56:50 +02:00
lisaq
6b27de7eff vcs: implement id for svn commit and EmptyCommit fixes #4136 2016-08-10 23:07:02 +02:00
Daniel Dourvaris
ce5b5ebe25 assets: use pyramid redirect instead of pylons for favion.ico route 2016-08-10 17:56:10 +03:00
Daniel Dourvaris
c93f9a5b37 pyramid: add config to make_pyramid_app for inspection afterwards 2016-08-10 06:22:32 +03:00
Daniel Dourvaris
f3f599ef4a docs: update api docs 2016-08-10 01:11:48 +03:00
Daniel Dourvaris
1f962f76dc api: make jsonrpc registry ordered so doc generation can be ordered 2016-08-09 20:33:33 +03:00
Daniel Dourvaris
05681731cc api: fix spelling of deprecated 2016-08-09 18:19:36 +03:00
Marcin Kuzminski
4278f23734 configs: updated configuration files based on latest CE and EE changes 2016-08-09 17:20:12 +02:00
Martin Bornhold
2f34f8271c vcs: Use a thread scoped cache invalidation context to cache repository objects.
Without this change the cache is on a process scope. If running with multiple
threads this leads to sharing the cached object between threads. This will cause
exceptions if multiple threads are trying to access the same curl object.
Even worse it allows multiple threads to operate on the same repository object
concurrently.
2016-07-14 09:07:19 +02:00
Martin Bornhold
da72f73efb caches: Add an argument to make the cache context thread scoped. 2016-07-14 09:33:12 +02:00
Martin Bornhold
6fce04f6d1 tests: Adapt tests to recent changes. 2016-08-09 16:34:03 +02:00
Martin Bornhold
d7ee3ddb9b tests: Add custom header to expected headers 2016-08-09 16:33:38 +02:00
Martin Bornhold
12a8910af2 vcs: Remove 'rhodecode.vcs.skip_error_handling' flag from environ. 2016-08-09 16:05:30 +02:00
Martin Bornhold
6ef4a65cc0 vcs: Use response header to decide if error handling is needed. 2016-08-09 16:04:01 +02:00
Martin Bornhold
1b6f04f8b6 vcs: Add custom response header 'X-RhodeCode-Backend' to indicate VCS responses and which backend is in use. 2016-08-09 16:03:14 +02:00
Martin Bornhold
0015204e38 config: Rename method to clarify what it does. 2016-08-09 09:27:25 +02:00
Martin Bornhold
e5c6c0c63f tests: Add some test cases for unicode and list separation. 2016-08-09 09:22:14 +02:00
Martin Bornhold
f50ff4a0b7 config: Encode unicode strings before passing it to pyramids asbool function. 2016-08-09 09:21:43 +02:00
Martin Bornhold
a94d087225 config: Use rhodecode aslist if commas included in list settings otherwise pyramids aslist. 2016-08-09 08:52:33 +02:00
Martin Bornhold
3273b9efca tests: Use settings dict from fixture instead of grabbing it from the WSGI app stack. 2016-08-08 15:03:03 +02:00
Martin Bornhold
24d3455854 tests: Add a fixture to get the settings dict. 2016-08-08 15:02:12 +02:00
Martin Bornhold
753b920fa8 vcs: Skip error handling in case of responses from VCSMiddleware. 2016-08-08 15:01:39 +02:00
Martin Bornhold
0c47e1e8f1 vcs: Add a flag to the environ to skip the error handling for responses from VCSMiddleware 2016-08-08 15:01:10 +02:00
Martin Bornhold
ef608f6b78 config: Use settings from pyramid app init for appenlight. 2016-08-08 10:33:13 +02:00
Martin Bornhold
89ac5b779f config: Sanitize 'appenlight' and 'gzip_responses' settings. 2016-08-08 09:44:35 +02:00
Martin Bornhold
97b46e09db config: Set 'gzip_responses' to false by default. 2016-08-08 09:30:14 +02:00
Martin Bornhold
2af09823e6 config: Remove unsused setting 'full_stack' from ini files. 2016-08-08 09:29:49 +02:00
Martin Bornhold
7797d0a8e6 config: Move appenlight wrapping from pylons to pyramid. 2016-08-08 09:28:10 +02:00
Martin Bornhold
de3885bda3 ae: Rely on fully prepared settings in appenlight wrapping function. 2016-08-08 09:00:20 +02:00
Martin Bornhold
af75eea2c8 tests: Add test to check the sanitize settings method in app init. 2016-08-08 08:31:36 +02:00
Martin Bornhold
ebaab4bbd2 tests: Adapt tests to recent changes. 2016-08-08 08:30:34 +02:00
Martin Bornhold
c46ad9f215 vcs: Pass registry to vcs for user authentication.
Explicit pass the registry insted of indirectly using it via pyramids
thread locals.
2016-08-08 08:29:10 +02:00
Martin Bornhold
e61c84a72e config: Use hooks protocol and direc calls seting from vcs settings module. 2016-08-08 08:29:35 +02:00
Martin Bornhold
b466d2779a vcs: Raise an error in case of unsupported protocol. 2016-08-08 08:24:59 +02:00
Martin Bornhold
1739739bed config: Move vcs hooks protocol and direct call setting to vcs configure mehod. 2016-08-08 08:23:53 +02:00
Martin Bornhold
8b36c76305 config: Update config files with comment about 'vcs.backends' setting. 2016-08-08 08:20:06 +02:00
Martin Bornhold
ea4b4bfc2e config: Sanitize 'default encoding' setting. 2016-08-05 17:14:56 +02:00
Martin Bornhold
4bc09a4562 config: Sanitize vcs realted settings during pyramid app init. 2016-08-05 17:14:24 +02:00
Martin Bornhold
a6bc25daf6 config: Add method to sanitize string values from ini file. 2016-08-05 17:12:37 +02:00
Martin Bornhold
ecc63cf8b5 config: Add method to sanitize list values from ini file. 2016-08-05 17:12:07 +02:00
Martin Bornhold
b2edd71976 vcs: Move the setup code for vcs lib from pylons to pyramid layer.
The VCS setup code now uses the prepared settings from pyramid layer.
2016-08-05 17:10:33 +02:00
Martin Bornhold
352325bea9 vcs: Move VCSMiddleware up to pyramid layer as wrapper around pylons app.
The VCSMiddleware is now moved to the pyramid layer and acts as a fallback
if pyramid does not find a view to handle the request.
2016-08-05 17:07:19 +02:00
Martin Bornhold
9cf62f5f92 config: Move initial repo scan up to the pyramid layer.
It is now subscribed to the ApplicationCreated event from pyramid.
2016-08-05 17:01:00 +02:00
Martin Bornhold
8d70188a1f vcs: Retrieve base path and realm with new helper methods. 2016-08-05 16:56:38 +02:00
Marcin Kuzminski
c7a2b59438 js-log: logger doesn't have warning(), just warn(). 2016-08-08 18:54:39 +02:00
Daniel Dourvaris
3eeae59bb6 static: use static_path instead of static_url to account for http vs https 2016-08-08 18:12:55 +03:00
Daniel Dourvaris
95ff761670 celery: create custom celery task class which loads context/threadlocals
of the original request required for tasks like create_repo which needs
to generate a url after the repo is created. fixes #4139
2016-08-03 03:59:58 +03:00
Daniel Dourvaris
d5cc2f99f6 jsonalchemy: add pickle support to mutation dict so that json
setting values can be pickled and passed to celery tasks
2016-08-03 03:19:12 +03:00
Martin Bornhold
f60d2f0446 svn: Add rhodecode realm to subversion configuration generation. 2016-08-01 15:30:38 +02:00