Commit graph

386 commits

Author SHA1 Message Date
Marcin Kuzminski
4482553490 docs: fixed docstring 2016-07-26 16:00:11 +02:00
Marcin Kuzminski
d0638fa1a1 auth-ldap: added flag to set debug mode for LDAP connections. 2016-07-26 13:09:56 +02:00
Marcin Kuzminski
af6f54dbae auth-plugins: added better log message about the auth-cache-ttl settings. 2016-07-26 13:09:31 +02:00
lisaq
815c7861b3 cleanup: removing unused grav_tmpl function 2016-07-25 13:08:50 +02:00
lisaq
41383eb941 styling: removing unused td-gravatar class 2016-06-30 10:21:59 +02:00
lisaq
39c5c5bf90 ux: put gravatar and username together in user list #3203 2016-06-29 20:01:12 +02:00
Marcin Kuzminski
bf023cc1c5 summary: use the same method to trim the messages as in changelog.
- fixes #4119, summary: trimmed messages can generate wrong data in summary page
2016-07-22 17:54:16 +02:00
lisaq
21fdb59df8 tables: adding translation for empty tables #685 #1832 2016-07-19 18:31:55 +02:00
lisaq
8bb513badb tables: better message when tables are empty #685 #1832 2016-07-19 18:18:08 +02:00
Martin Bornhold
b5956563a5 tests: Fix mocking of get_scm and get_backend functions. 2016-07-21 09:54:04 +02:00
Martin Bornhold
919fa4247d tests: Adapt tests to use the new get_vcs_instance function instead of removed get_repo. 2016-07-21 09:07:29 +02:00
Martin Bornhold
873a0753a5 tests: Fix a helper method that checks if a repository is available on filesystem.
- Moved it into utils to remove duplication
- Refactored it to not hide all kinds of exceptions.
2016-07-21 09:06:47 +02:00
Martin Bornhold
0c7d0871b5 models: Use the new get_vcs_instance method to retrieve vcs instances. 2016-07-21 09:04:14 +02: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
ab119753c7 tests: Remove code that is moved to the actest repository. #4095 2016-07-21 14:20:22 +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
Marcin Kuzminski
de692e06a0 summary/changelog: unified how data is displayed for summary and changelog pages.
- use consistent order of columns
- fix the link to commit status
- fix order of displaying comments

Fixes #4111
2016-07-21 11:58:21 +02:00
Daniel Dourvaris
adf54b7bc8 routes: make changeset_info route use repo_name at start, to follow
url route convention
2016-07-20 20:14:11 +03:00
Marcin Lulek
fe041c5ae5 middleware: add the register plugin directive further up the config stack 2016-07-20 12:23:38 +02:00
Marcin Kuzminski
c111452fd9 routing: avoide espacing the %N in special route for CodeMirror 2016-07-20 11:59:25 +02:00
lisaq
36635bb44e styling: tigtening up my account pull request tables 2016-07-19 17:07:12 +02:00
Marcin Kuzminski
50aa2e9c42 statics: use cache_max_age with 24H to cache loaded static assets by browsers. 2016-07-19 18:01:18 +02:00
Daniel Dourvaris
79b9f0482f assets: add javascript static file route generator 2016-07-19 17:32:10 +03:00
Daniel Dourvaris
06d4bffaa5 assets: skip RoutesMiddleware matching on certain urls to avoid
the overhead of matching a route which doesn't exist
2016-07-19 17:18:18 +03:00
Martin Bornhold
eca6c8ea01 tests: Fixed ecpected results. 2016-07-19 15:12:02 +02:00
Martin Bornhold
9e7f173d13 tests: Add new argument to tests using '_create_reference_data' method. 2016-07-19 11:42:38 +02:00
Martin Bornhold
c86781e72f tests: Add new argument to tests using '_create_reference_items' method. 2016-07-19 11:39:42 +02:00
Martin Bornhold
43ca1aab8a tests: Add new argument to tests using '_create_files_url' method. 2016-07-19 11:36:33 +02:00
Martin Bornhold
b90c57159a files: Include the repository groups when computing files url, fixes #4104. 2016-07-19 11:35:30 +02:00
Daniel Dourvaris
724d3c959e assets: expose /favicon.ico route for automatic browser favicon requests 2016-07-18 17:23:13 +03:00
Daniel Dourvaris
5a33ed7427 assets: convert pylons static files to pyramid static_url, fixes #3504 2016-07-18 15:17:18 +03:00
Marcin Lulek
9011be6e65 comments: send more information with comment_form_built event 2016-07-18 15:41:55 +02:00
Marcin Kuzminski
897af018aa test: remove accidentally commite test file 2016-07-18 14:48:23 +02:00
Marcin Lulek
a537335516 topics: improve handling topics without callbacks subscribed 2016-07-18 14:28:06 +02:00
Marcin Kuzminski
a03e4a88f9 tests: marked some xfail tests that are now working 2016-07-14 14:17:34 +02:00
Daniel Dourvaris
583f63c376 errorpages: fix case when a pyramid httperror was not being rendered
with error handler
2016-07-14 12:04:08 +02:00
Marcin Kuzminski
169a7c5cf1 integrations-db: don't use default contructor to be consisten with other modules
usage.
2016-07-14 11:23:46 +02:00
Daniel Dourvaris
efc1db0e2e integrations: use mutable json settings using json alchemy MutableObject. 2016-07-14 11:23:28 +02:00
Daniel Dourvaris
381ed28327 slack: add slack integration tests 2016-07-13 18:51:59 +02:00
Daniel Dourvaris
eb90ed1dde events: add repo_type to repo events 2016-07-13 19:23:31 +02:00
Daniel Dourvaris
efc7052344 integrations: add webhook integration 2016-07-13 18:12:35 +02:00
Daniel Dourvaris
88e83cf796 events: add an event for pull request comments with review status 2016-07-13 10:39:54 +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
Marcin Kuzminski
08000af552 auth: made the message about not-active user consisten with token plugin 2016-07-13 12:27:04 +02:00
Marcin Kuzminski
ab6750c9a7 auth-token: allow other authentication types to use auth-token.
Fixes #4070
2016-07-12 19:56:48 +02:00
lisaq
52015c0c8f styling: #4086 fixing bug where long commit messages did not wrap in file view 2016-07-13 11:21:11 +02:00