Marcin Kuzminski
7781eabe94
auth: use cache_ttl from a plugin to also cache permissions.
...
- this gives a 30% speed increase in operations like svn commit
- generally uses the same mechanismy like auth cache to cache permissions for faster
access to vcs commands
2017-10-07 10:02:39 +02:00
Marcin Kuzminski
862e0c122b
commits: hide evolve commits. Fixes #5392
2017-10-03 16:37:39 +02:00
Marcin Kuzminski
f445addfdd
vcs: reduce sql queries used during pull/push operations.
2017-09-28 21:45:19 +02:00
Marcin Kuzminski
84564f6aba
tests: make the routing link tests retry connections. Reduced test failures
2017-09-28 19:35:58 +02:00
Marcin Kuzminski
5fc9f7567b
hooks: added debug logs.
2017-09-28 22:14:43 +02:00
Marcin Kuzminski
e6fffe4b97
binaries: cleanup new upcomming rc-* commands that will replace paster * commands from pylons
2017-09-21 21:45:01 +02:00
Marcin Kuzminski
b505377197
users: ported controllers from pylons into pyramid views.
2017-09-20 22:29:34 +02:00
Marcin Kuzminski
a8d0784226
tests: fixed tests for random dict order could sometimes break the tests
2017-09-20 23:33:29 +02:00
Marcin Kuzminski
fdc6e80b7f
tests: allow running tests via make file on different databases
2017-09-19 18:50:20 +02:00
Marcin Kuzminski
cfe326566d
helpers: remove usage of pylons session.
2017-09-19 17:11:48 +02:00
Marcin Kuzminski
f59da891ad
metatags: improve display syntax and add deprecated tag.
2017-09-14 20:14:11 +02:00
Marcin Kuzminski
6dada9f346
meta-tags: cleanup support for metatags.
...
- fixes problem of html-escape + supported link
- no longer extract url from description, you have to use new url => tag
- tags are extracted to the beginning of the description during rendering
- show helpers in proper places in groups/repos/forks
2017-09-14 17:31:52 +02:00
Marcin Kuzminski
d42acbacb7
integrations: webhook, allow to set a custom header. Fixes #5384
2017-09-12 00:44:23 +02:00
Marcin Kuzminski
7a511201a1
admin-defaults: ported views to pyramid.
2017-09-08 11:48:48 +02:00
Marcin Kuzminski
4e50794cfb
auth: use consistent way of extracting came_from, and also sanitise it to remove
...
auth_token. This prevents a loop of redirection in case we get redirected to login
with this parameter.
2017-09-06 23:39:45 +02:00
Marcin Kuzminski
3f0ff6b65b
vcs: report 404 for shadow repos that are not existing anymore. Before we got 500 exception in this case.
2017-09-01 13:10:52 +02:00
Marcin Kuzminski
a8abeb0d1c
user-groups: rewrote the app to pyramid
...
- added new event data with added/removed/changed permissions
- cleanup code and spelling
2017-08-31 12:47:19 +02:00
Marcin Kuzminski
c0899ff09d
auth: expose a option to calculate how we end up having super-admin permission.
...
This is now used only for visual display. The old way is still faster for permissions
calculation.
- the extended way will be used in permission summary showing a much more detailed
permission summary for super-admins.
2017-08-27 19:30:42 +02:00
Daniel Dourvaris
83e3196e55
initial-gravatars: fix case of dot beeing present before @domain.
2017-08-25 10:27:00 +02:00
Marcin Kuzminski
990994942d
pull-requests: use close action with proper --close-commit solution.
...
- Mercurial settings are no long as LABS
- Unified some code between GIT and HG on rebase/close/delete feature branches
2017-08-24 22:36:34 +02:00
Marcin Kuzminski
7c571b29bc
ssh: fixed tests for disabled ssh support
2017-08-20 20:48:10 +02:00
Marcin Kuzminski
77566e197e
config: update .ini file examples
2017-08-20 12:28:05 +02:00
Marcin Kuzminski
034abca8dc
ssh: embedded ssh support
...
- updated command generation and added debug flag
- updated .ini config to have ALL required components to run SSH commands
- rcssh-wrapper now is embedded and pinned into version of enterprise
- update ssh_support configration
- implements #5343
2017-08-18 14:32:00 +02:00
Marcin Kuzminski
928129ed6c
repositories: rewrote whole admin section to pyramid.
...
- fixed few small found problems
- code cleanups
2017-08-11 13:00:47 +02:00
Marcin Kuzminski
68e8c23896
markup: make relative links pint to raw files for images and to standard files as links.
...
- allows building relative MD/RST links that go to rendered content
- still allows to embed images/video with relative paths
2017-08-04 10:54:33 +02:00
Marcin Kuzminski
ee0e7c21f8
users: make AuthUser propert a method, and allow override of params.
2017-08-03 20:17:46 +02:00
Marcin Kuzminski
17359c262c
integrations: rewrote usage of pylons components inside integrations.
...
- added better auth decorators as used in other parts of the app
- fixed tests
- refactored the code to match other parts better (repo_route/repo_group_route)
2017-08-01 23:11:49 +02:00
Marcin Kuzminski
05386904e7
forks: moved pylons code into pyramid.
2017-08-01 11:48:16 +02:00
Marcin Kuzminski
3430eb74e5
repositories: ported repo_creating checks to pyramid.
...
- fixed security issues with resource discovery.
- ported repository creating check into base view for repos.
2017-07-28 15:56:06 +02:00
Marcin Kuzminski
42d56172a4
user-groups: moved the display of user group into a pyramid view
2017-07-27 18:56:31 +02:00
Marcin Kuzminski
eccdae6f25
tests: disable one test that fails because it was written in a wrong way.
...
- we'll re-enable it after migrating user groups to pyramid.
2017-07-27 11:39:56 +02:00
Marcin Kuzminski
b203d5f208
pull-requests: migrated code from pylons to pyramid
2017-07-27 11:30:55 +02:00
Marcin Kuzminski
ae8340ad2a
db: use a wrapper on pull requests _last_merge_status to ensure this is always INT.
...
- after upgrade of sqlalchemy this is casted to Long
- for backward compat we cast it as Int
2017-07-26 12:16:25 +02:00
Marcin Kuzminski
708f22ac87
db: use unicode for some of the defaults to reduce sqlalchemy warnings.
2017-07-26 12:14:56 +02:00
Marcin Kuzminski
108d9c0ac0
audit-logs: use stricter limit on how much data the commits key can hold.
...
- we're limited by a smaller column size
- helps avoid mysql problems
- found after sqlalchemy update
2017-07-26 09:55:51 +02:00
Marcin Kuzminski
93908a0f84
auth: use our own simpler hybrid property.
...
- we shouldn't relly on sqlalchemy internal method, it has a different purpose.
2017-07-26 09:54:50 +02:00
Marcin Kuzminski
93c5a7f9c5
compare: migrated code from pylons to pyramid views.
2017-07-26 13:28:45 +02:00
Marcin Kuzminski
3f26df9f37
user: deprecated usage of api_keys.
...
- additionally we don't load secrets as they are never used (and are expensive to fetch)
- simplify fetching of details improves performance
2017-07-25 16:27:08 +02:00
Marcin Kuzminski
8efc4d92c5
repo-commits: ported changeset code into pyramid views.
...
- refactored part of naming to use commit_id instead of revision
- renamed some parts to repo_commits instead of changeset without breaking backward compat
- small improvements and fixes for tests
2017-07-24 17:04:14 +02:00
Marcin Kuzminski
ff79205313
global-permissions: ported controller to pyramid view.
...
- fixed some other tests cases to rely on test routing
2017-07-20 15:04:36 +02:00
Marcin Kuzminski
c276174e89
journal: ported controller to pyramid code
2017-07-18 23:38:15 +02:00
Marcin Kuzminski
b2714a3c1d
changelog: ported to pyramid views.
2017-07-18 00:07:43 +02:00
Marcin Kuzminski
f81ec24cc9
tests: no-newline generator should also replace \r
2017-07-17 23:21:01 +02:00
Marcin Kuzminski
53611d6f94
files: ported repository files controllers to pyramid views.
2017-07-17 14:20:22 +02:00
Marcin Kuzminski
73ffe35c5b
tests: re-use assert_session_flash to also test for negative cases.
...
- removes code duplication
2017-07-17 14:16:14 +02:00
Marcin Kuzminski
580a0d0ea5
notifications: ported views to pyramid
2017-07-13 18:28:31 +02:00
Marcin Kuzminski
68cdaa3763
pyramid: remove csrf tests because this was only used in pylons.
2017-07-13 09:56:15 +02:00
Marcin Kuzminski
4a9be66cd1
dependencies: bumped pyramid-debugtoolbar to 4.3.1
2017-07-12 22:55:39 +02:00
Marcin Kuzminski
71071c0b26
dependencies: bumped pyramid to 1.9 webob to 1.7.3 and webtest to 2.0.27
...
- fixed some core tests for new webob/webtest
- changed core methods to make them more pyramid compat.
2017-07-12 22:54:14 +02:00
Marcin Kuzminski
93de470b3f
tests: fixed few possible cases of detached instance errors.
2017-07-12 16:32:06 +02:00