Daniel Dourvaris
e6833d2fd8
db: move Session.remove to outer wsgi layer and also add it
...
to hooks daemon to avoid leaving connections open in the db pool
fixes #4173 , refs #4166
2016-08-13 02:56:48 +03:00
Daniel Dourvaris
1795bc5f2f
celery: make celery load config from pyramid_app if available
...
otherwise pylons.config to make sure celery config works
without pylons context
2016-08-12 05:36:03 +03:00
Daniel Dourvaris
c1a7f5edef
celery: dont proxy request if one not available (eg. repo push) and
...
use pyramid settings rather than pylons since repo push has no
pylons context available.
2016-08-12 03:41:09 +03:00
Marcin Kuzminski
1a3fdde786
cleanup: remove left over print statement
2016-08-12 01:30:52 +02:00
Daniel Dourvaris
9d83e38374
docs: document email integration
2016-08-11 14:17:52 +03:00
Daniel Dourvaris
79206c1582
integrations: add email integration, fixes #4159
2016-08-11 13:16:29 +03:00
Daniel Dourvaris
f318bfa3d5
celery: move pyramid app to celery init rather than per task run
2016-08-11 20:18:50 +03:00
Marcin Kuzminski
3f8709daf5
scm-app: allow to set documented pyro4 as scm_app_implementation.
...
The documented ini setting allows to set pyro4 as scm_app, while
the backend code crashes on import of pyro4 module. This change
allows to configure the app based on the .ini docs.
if we pass pyro4 as backedn, we simply skip import and use
the default pyro4 scm_app
2016-08-10 00:49:05 +02:00
Martin Bornhold
a5fa6cfaca
config: Use prepared settings from app init to setup the vcs connection.
2016-08-10 16:59:41 +02:00
lisaq
6b27de7eff
vcs: implement id for svn commit and EmptyCommit fixes #4136
2016-08-10 23:07:02 +02:00
Daniel Dourvaris
05681731cc
api: fix spelling of deprecated
2016-08-09 18:19:36 +03: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
12a8910af2
vcs: Remove 'rhodecode.vcs.skip_error_handling' flag from environ.
2016-08-09 16:05:30 +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
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
de3885bda3
ae: Rely on fully prepared settings in appenlight wrapping function.
2016-08-08 09:00:20 +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
8d70188a1f
vcs: Retrieve base path and realm with new helper methods.
2016-08-05 16:56:38 +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
126fea568a
vcs: Add method to return the base path to the repo store.
2016-08-01 15:39:34 +02:00
Martin Bornhold
bf3f9b7694
vcs: Add method to utils which returnd the rhodecode realm for HTTP basic auth.
2016-08-01 15:29:37 +02:00
Marcin Kuzminski
1ff293ddb3
statics: don't generate empty ver= if not ver was given.
2016-08-02 23:04:45 +02:00
Marcin Kuzminski
6eb717f1f4
static: bring back ver=XXX for proper flushing caches when version is upgraded.
...
Fixes #4143
2016-08-02 21:39:37 +02:00
Marcin Lulek
e9d5eb09c5
notifications: support real-time notifications with websockets via channelstream
2016-08-02 16:18:44 +02:00
Daniel Dourvaris
9dd0674b39
forms: add deform for integration settings forms
2016-07-27 11:39:23 +03:00
Marcin Kuzminski
7794877876
setup: improve support for prompts, we should not take care of case sensitivity here
2016-07-27 00:37:32 +02:00
Daniel Dourvaris
1a842e15d2
scm: change ._get_content() to .raw_bytes attribute to file nodes to
...
allow getting raw bytes instead of text content of a file and added
.md5 and .is_binary attributes to file nodes
2016-07-26 20:47:23 +03:00
Martin Bornhold
b4ce022c69
vcs: Remove unused code from get_scm function.
...
No code seems to use these arguments anymore so it's better to remove
them and simplify the code by removing unsused code paths.
2016-07-21 09:02:27 +02:00
Martin Bornhold
0c80668486
vcs: Refactor the get_repo function.
...
Goal was to not use the search_path_up argument of get_scm and
include some logic that sits in model.db.Repository in get_scm_instance
method.
2016-07-21 09:00:53 +02:00
Martin Bornhold
03559da24d
auth: Fix password_changed function, fixes #4043 .
...
Never repot a changed password for default or anonymous users.
If anonymous access is disabled we don't get the default user here so we
also have to check if it is the anonymous user. In both cases (default user
and anonymous user) we can skip the password change check and return False.
2016-07-22 12:57:51 +02:00
Martin Bornhold
7738578914
vcs: Add license header from the origin to geventcurl.
2016-07-21 12:49:44 +02:00
Martin Bornhold
99a93285fe
vcs: Implemented a gevent compatible Curl class, part of #4046
...
This Curl class acts like a wrapper around the original one but uses
the curl multi interface together with gevent's machanisms for synchronization
of threads (greenlets).
2016-07-21 12:51:50 +02:00
Martin Bornhold
d31aca7e32
svn: Ignore the content length header from response, fixes #4112
...
In case of compressed responses from apache(mod_dav_svn) we can not
use the Content-Length header in our own response. The content is
automatically decompressed by the requests library and therefore
the content length differs.
This results in errors when doing e.g. a svn checkout:
"svn: E120106: ra_serf: The server sent a truncated HTTP response body."
2016-07-20 17:20:50 +02:00
Daniel Dourvaris
5a33ed7427
assets: convert pylons static files to pyramid static_url, fixes #3504
2016-07-18 15:17:18 +03:00
Daniel Dourvaris
efc1db0e2e
integrations: use mutable json settings using json alchemy MutableObject.
2016-07-14 11:23:28 +02:00
Marcin Kuzminski
990143eae0
tokens: auth-token is not only for git/hg but also for svn.
...
Changed some docstrings to indicate this.
2016-07-13 12:34:17 +02:00
Johannes Bornhold
00ec4381f9
subversion: Detect requests also based on magic path.
2016-07-13 09:15:54 +02:00
Marcin Kuzminski
f48e94aa14
file-browser: refactor how we load metadata for file trees.
...
Before we used to use JSON data to map the nodes to json and fill in
metadata. Now we use rendered parts of html. This is nicer for caching as
it would allow us to replace the view with cached tree and then after ajax load
replace it again with cached with metadata. On the next request we'll
get the cached with metadata and thus we can skip entirely second
ajax call for metadata.
This is part of #4083
2016-07-12 11:45:51 +02:00
Daniel Dourvaris
f81ae45597
slack: fix links in commit/pr events
2016-07-11 17:57:34 +02:00
Marcin Kuzminski
2f3c764642
helpers: remove bad warning calls introduced in commit c8bec9b70fb9
2016-07-11 17:30:23 +02:00
Marcin Kuzminski
ec6cbaa283
whoosh: fallback schema uses now bigger ints, fixes #4035
2016-07-06 12:19:48 +02:00
lisaq
b745d80e45
ux: #4037 use gravatar for commit email and add tooltips for name + email
2016-07-08 17:43:49 +02:00
Daniel Dourvaris
7ff09cda95
integrations: add integration support
...
* added db migration for integration table, version 55
* added integrations views/templates/models
* added slack integration
* added h.url.current() support for pyramid only contexts
* added issues extractor for commit messages
* renamed repo-deleted/repo-created to repo-delete/repo-create
* removed marshmallow
* added serialization for events to static dicts of data
* added lazy_ugettext for translation of start time string
2016-07-10 06:43:20 +03:00
lisaq
4f7a3ca6e8
ux: #4037 use gravatar for commit email and add tooltips for name + email
2016-07-11 14:46:41 +02:00
lisaq
7948b76555
ux: adjust email_or_none so that it does not swap emails
2016-07-07 14:39:18 +02:00
Martin Bornhold
a0dd170a39
vcs: Move vcsserver cache invalidation to mercurial backend.
...
The invalidation is only needed for "writing" mercurial methods.
Previous location covers also "reading" methodas and other vcs backends.
2016-07-11 10:43:48 +02:00