Commit graph

1410 commits

Author SHA1 Message Date
lisaq
e54e3df806 docs: adding contribution links to readme #4039 2016-06-22 17:34:08 +02:00
Daniel Dourvaris
e9b8c7a94a admin: generate password in add user page wasn't working 2016-06-22 21:46:43 +03:00
Marcin Kuzminski
56c24af7bc caches: use optional identity cache options on get_by_repo_name and get_by_username
methods. Disabled by now.
2016-06-22 20:38:44 +02:00
Marcin Kuzminski
a30ccd1470 helpers: fixed some errors on helpers, and removed dead code. 2016-06-22 11:32:13 +02:00
Marcin Kuzminski
4531ebf106 helpers: optimize slight calls for link_to_user to save some
intense queries.
2016-06-21 20:14:15 +02:00
Daniel Dourvaris
f43669f817 model: log exception if multiple repos rather than hard error 2016-06-22 18:29:41 +03:00
Daniel Dourvaris
114e4097ca model: make sure only 1 repo in session when get_by_repo_name 2016-06-22 18:18:59 +03:00
Daniel Dourvaris
6f322f3be9 speedup: join repo on fork/user/group by default 2016-06-22 14:58:05 +03:00
Daniel Dourvaris
80943648ff debug: skip model.settings query logging 2016-06-22 14:57:37 +03:00
Daniel Dourvaris
c00cc3ef14 speedup: check identity_map when getting by repo name 2016-06-22 13:38:11 +03:00
Daniel Dourvaris
450bb8142e speedup: check local session for repo by repo name first 2016-06-22 12:53:43 +03:00
Daniel Dourvaris
1536e48bab refactor: remove old error controller, which has been replaced by pyramid 2016-06-22 12:39:11 +03:00
lisaq
17a75f2b8e ux: bringing my account pull request list into the great future #4038 2016-06-22 15:26:04 +02:00
Martin Bornhold
6b84fcdb1d threading: Use the curl session factory. 2016-06-22 10:18:33 +02:00
Martin Bornhold
4a1c60fba2 threading: Add factory that creates curl session for each thread.
When creating a repo with an import url pointing to another repo on the same enterprise instance
we call the vcssserver to check the url. The vcsserver then calls to enterprise to verify the url.
This leads to two threads using the same cur session.
2016-06-22 10:18:06 +02:00
Johannes Bornhold
24d554a54e nix: Propagate doCheck attribute. 2016-06-15 11:15:09 +02:00
Johannes Bornhold
711cda9de3 release: Provide attribute releaseName
Used from rcpkgs to package things up for the installer and control.
2016-06-07 08:23:17 +02:00
Johannes Bornhold
03b1542a52 release: Remove dependency greenlet 2016-06-07 06:07:47 +02:00
Johannes Bornhold
cf906eafe6 authn: Use type() instead of __class__ attribute. 2016-06-21 08:09:55 +02:00
Johannes Bornhold
24e2b4a137 authn: Test authentication plugin settings POST views. 2016-06-20 17:27:31 +02:00
Johannes Bornhold
b5079c9ba9 authn: Fix priority of default values if some values are missing during POST
Normally this affects only the test suite but doesn't hurt to be correct :)
2016-06-20 17:27:04 +02:00
Johannes Bornhold
a1b5f9d602 authn: Allow to pass in a default value if setting is not available in DB. 2016-06-20 17:25:35 +02:00
Martin Bornhold
30ce19fa4f authn: Unit tests to simply get the authentication settings pages.
Checks for enabled (retcode=200) and disabled (retcode=404) plugins.
2016-06-20 15:48:23 +02:00
Martin Bornhold
94d448b77c authn: Create context managers to enable/disable an authentication plugin in DB. 2016-06-20 15:46:35 +02:00
Martin Bornhold
df46a4458a authn: Add fixture that provides authentication plugin instances. 2016-06-20 15:45:58 +02:00
Johannes Bornhold
825e26db6f authn: Don't use setting value to compute the setting type. 2016-06-20 11:52:24 +02:00
Johannes Bornhold
dc4d6b278b authn: Adapt authentication plugins validator to allow legacy plugins.
- We use the prefix 'py:' for legacy plugins
- Users are now able to insert plugin ID's like 'py:rhodecode.mylegacyplugins.plugin_one'
- Validator tries does an import and checks if the plugin has a 'includeme' attribute.
2016-06-06 13:35:58 +02:00
Johannes Bornhold
f8e4aa4dcc authn: Small refactoring of plugin discovery. 2016-06-06 13:26:37 +02:00
Johannes Bornhold
5d2d8f4267 authn: Make the legacy plugin import more robust if something fails during import. 2016-06-06 11:26:27 +02:00
Johannes Bornhold
834ce812c6 authn: Allow users to store plugin ID's starting with the legacy plugin prefix. 2016-06-06 11:25:22 +02:00
Johannes Bornhold
3e49389eff authn: Store legacy plugins prefix in module variable. 2016-06-06 11:24:23 +02:00
Johannes Bornhold
8906d7163b authn: Add docstring to function that discovers legacy plugins. 2016-06-06 10:49:40 +02:00
Johannes Bornhold
a8d92f8858 authn: Import legacy authentication modules and invoke their includeme. 2016-06-06 10:07:24 +02:00
Johannes Bornhold
6868abc1b7 authn: Load legacy plugin ID's from DB and log them. 2016-06-06 09:11:39 +02:00
Johannes Bornhold
a25c34f04e migration: Increased database version. 2016-06-06 15:50:45 +02:00
Johannes Bornhold
f3a1987cc5 migration: Add data migration of the users 'extern_type' attribute.
- Folow up from renaming the auth_container plugin.
- This migration renames the extern type for all users from 'container' to 'headers'
2016-06-06 15:50:15 +02:00
Marcin Kuzminski
14cb9ac285 ldap-auth: fixed wrong Missing check 2016-06-08 14:03:02 +02:00
Marcin Kuzminski
7aea1304de ini: fixed typo, remove debug style from production 2016-06-08 13:52:53 +02:00
Marcin Kuzminski
fc2d1e71b4 ini: in CE repo we don't expose EE edition configuration. 2016-06-08 13:32:10 +02:00
Marcin Kuzminski
0d7034e500 ini: fixed a typo 2016-06-08 13:09:46 +02:00
Marcin Kuzminski
3c9a669279 configs: updated dev and production ini files.
- make sure production recommends gunicorn
- make sure we're in sync with all OPTIONS from EE as well
- small tweeks and docs
2016-06-08 13:03:31 +02:00
Johannes Bornhold
ec516d16f1 db: Move db setup code to seperate function. 2016-06-07 17:17:28 +02:00
Marcin Kuzminski
a9e7becc0e docs: updated apache/nginx configs 2016-06-07 22:05:18 +02:00
Johannes Bornhold
1dcac5eddc db: Remove comment line. 2016-06-07 12:07:51 +02:00
Johannes Bornhold
7fefcc4ffb db: Set rhodecode.is_test in make_pyramid_app instead of make_app
Based on this setting the crypto backend is selected: brypt or md5.
During tests md5 is used to sppedup test execution. We have to move this
setting up to the pyramid layer otherwise the test DB init will use bcrypt
and the tests use md5. This will result in test users not able to login.
2016-06-07 11:13:50 +02:00
Johannes Bornhold
c58dd1646e db: Change ordering of test env setup and db connection init.
- DB init sets rhodecode.model.db.ENCRYPTION_KEY
- Test env setup resets rhodecode.model.db.ENCRYPTION_KEY to None
- Therefore DB init has to be done after test env setup.
2016-06-07 10:26:08 +02:00
Johannes Bornhold
422f825bb8 db: Move initialization of test environment up to pyramid layer. 2016-06-07 09:31:33 +02:00
Johannes Bornhold
35f714fa77 db: Move database initialization up to pyramid.
We need the DB during app setup. Therefore we have to move this up to the
make_pyramid_app function.
2016-06-06 09:05:03 +02:00
Marcin Kuzminski
7f133e9332 docs: added initial 4.1 release notes 2016-06-07 17:52:38 +02:00
Marcin Kuzminski
64fe964546 configs: updated configs for VCSServer connectivty options 2016-06-07 17:41:26 +02:00