Commit graph

112 commits

Author SHA1 Message Date
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
Martin Bornhold
485c007798 http-protocol: Invalidate the VCSServer cache when calling a writing method. 2016-07-08 16:38:43 +02:00
Martin Bornhold
f0581979ba pyro4: Adapt pyro4 RemoteRepo to have the same API as http RemoteRepo class. 2016-07-08 16:02:29 +02:00
Martin Bornhold
5499e99cdb http-protocol: Add a method to invalidate the VCSServer cache.
This method allows to invalidate the cached repository objects in the VCSServer.
It generates a new UUID which is used by the VCSServer as cache key.
2016-07-08 16:01:35 +02:00
Martin Bornhold
bd289ed8c7 pep8: Cleanup of import statements. 2016-07-08 10:18:55 +02:00
Marcin Kuzminski
d8b86511b9 renderer: fixed the helper funtion to original version. This
is incorrect and was breaking tests !!
2016-07-08 19:40:31 +02:00
Marcin Kuzminski
d61bb55cfb js-template-context: made the context pyramid and pylons compatible.
- the routing/controller are bigger problem we'll disable them for now.
2016-07-08 19:02:52 +02:00
Marcin Kuzminski
51e1968537 readme/markup: improved order of generating readme files. Fixes #4050
- we now use order based on default system renderer
- having multiple readme files will pick correct one as set renderer
2016-07-07 00:50:39 +02:00
Marcin Lulek
f8716e4525 templateContext: improve the context object idea 2016-07-07 15:33:43 +02:00
Marcin Lulek
50f344ce72 templateContext: allow for flexible way to communicate additional info for client code from controllers 2016-07-07 14:15:03 +02:00
Marcin Lulek
bcb73b4b91 diffs: add translation string 2016-07-06 15:43:25 +02:00
Marcin Lulek
5d275341b8 events handling: minimize the amount of events attached per page 2016-07-06 15:23:11 +02:00
Daniel Dourvaris
a0af559a3d events: add pull request events 2016-07-06 07:15:02 +03:00
Daniel Dourvaris
9727a3880f events: add event system for RepoEvents 2016-07-06 06:00:18 +03:00
Marcin Lulek
c4d5806b35 frontend: prepare for plugin registration and life-cycle handling 2016-07-05 17:01:04 +02:00
Martin Bornhold
0f767f23a4 settings: Remove obsolete VCS config value HG_USE_REBASE_FOR_MERGING 2016-06-27 13:30:27 +02:00
Martin Bornhold
1824a54c6d settings: Use the new 'use_rebase' argument to decide between rebase or merge. 2016-06-27 13:18:25 +02:00
Martin Bornhold
488bd2df2f settings: Add argument to select rebase as merge strategy. 2016-06-27 13:16:10 +02:00
Martin Bornhold
dec51f1669 pyro: Slightly improved log message and comment. 2016-07-05 09:37:57 +02:00
Martin Bornhold
64893dfad5 pyro: Return new proxy instances if called from outside of a request context.
This allows to run code that uses the pyro connection to the VCSServer
but does not execute from within a request context, e.g. invoke tasks.
2016-07-05 09:37:13 +02:00