Daniel Dourvaris
fa69408b87
javascript: add default value for js generate ini option
2016-06-06 17:27:04 +03:00
Johannes Bornhold
997191d4d4
authn: Remove doubled colon in plugin ID generation.
2016-06-06 16:15:38 +02:00
Johannes Bornhold
8ccbc6ad72
authn: Bugfix, use the fallback plugin setting in log message.
2016-06-06 16:14:37 +02:00
Daniel Dourvaris
7bcafe31fd
javascript: use separate ini config for generating dynamic js files
2016-06-06 16:38:09 +03:00
Marcin Kuzminski
b191ddbc07
utils: make sure we don't import any models inside utils
2016-06-23 16:17:18 +02:00
Marcin Kuzminski
a51519ed0a
encryption: use common method to fetch encryption key for encrypted fields.
2016-06-23 13:48:11 +02:00
Marcin Kuzminski
055024f665
settings: use cached settings in few places we only often use it for reading.
2016-06-23 12:33:04 +02:00
Marcin Kuzminski
e0266a9130
settings: use cache on whole result not just the query since it's the computation
...
of values that is slow not the query itself.
2016-06-23 11:51:41 +02:00
Marcin Kuzminski
f81bdd6a6b
helpers: commit parsers, use caching queries to save tons of time when parsing over the same repo
...
commit messages.
2016-06-22 11:53:47 +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
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
Johannes Bornhold
ec516d16f1
db: Move db setup code to seperate function.
2016-06-07 17:17:28 +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
Daniel Dourvaris
e4b83e3c9a
bugfix: last line in file content highlighter was being skipped
2016-06-07 15:54:44 +03:00
Johannes Bornhold
d05c4fb045
authn: Use new is_headers_auth function.
2016-06-06 10:15:00 +02:00