Commit graph

82 commits

Author SHA1 Message Date
Milka Kuzminski
202df81250 clone-urls: allow custom clone by id template. 2021-01-22 08:56:20 +01:00
Milka Kuzminski
274ad239e5 token-access: allow token in headers not only in GET/URL 2020-12-21 12:34:05 +01:00
Marcin Kuzminski
2b3b3aa5a7 observers: hide it for CE edition.
- This hide is simple, but real logic is in the validate function which would only work if EE edition is installed.
2020-10-08 22:28:51 +02:00
Marcin Kuzminski
1e85bc2f83 license: add helpers to allow users hide license warnings. 2020-07-17 12:40:34 +02:00
Marcin Kuzminski
6e32a23add repositories: preserve order of defined backends, and switched repo type selector to radios. 2020-04-27 09:39:34 +02:00
Marcin Kuzminski
fe96e16646 code: update copyrights to 2020 2020-04-16 00:34:52 +02:00
Marcin Kuzminski
5c1b8deae8 exc-tracker: make context attribute behave like in API case
- simplified how use of api attachment of the attributes is done so we can explicitly pass it.
- for celery we need this else it fails to send emails
2020-03-30 11:08:33 +02:00
Marcin Kuzminski
8e01135d04 Authentication: cache plugins for auth and their settings in the auth_registry.
- Before that change on each requests 4x we loaded plugins for authentication, this hit
many caches, db invalidation context and loaded the plugins logic each time. This was a heavy performance hit
for SVN and other backends as they needed to load that plugins many many times
- Since Authentication plugins almost never change, we'll not store the plugins listed for authentication into
the authnregistry for each process
- For AuthPlugins settings we now also flush plugins settings, and authnregistry cached plugins
2020-01-23 12:41:51 +01:00
Bartlomiej Wolynczyk
347621778d settings: re-use attached request global config for performance
- since we *always* generate a global config and register it into request
make use of it, and not rely on the get_all_settings heavy logic that makes
it slow to fetch because of cache checks.

Within single request we're fine to re-use it when ever request attribute is available
2020-01-20 13:32:49 +01:00
Marcin Kuzminski
7206dd2657 dashboard: main page grids async load.
- in some cases when super-admins or all repos in root loading main
page could take minutes because we loaded whole dataset.
- this change make the loading limited to first page of data.
  Rest is loaded via DB pagination
- In many cases this is major speed-up for showing 1st page fast.
2019-12-19 12:46:03 +01:00
Daniel Dourvaris
3027943bdf hovercards: enable hovercards on parsed commits references. 2019-11-07 14:10:03 +01:00
Marcin Kuzminski
a8da93e8ac base: fix problem that in some view context we don't have matchdict. 2019-10-23 13:17:47 +02:00
Marcin Kuzminski
1ed9cf6561 license: added a flag to allow hidding license info. 2019-10-23 13:07:29 +02:00
Marcin Kuzminski
a73fb57d29 auth-token: expose fetched token in unified way into request attribute.
- This will allow re-using exposed access token for HTTP views in single place
- We will support also exposing tokens from url if special _auth_token will be used as url param
- We'll no longer require double logic for extraction of URL/HEADER auth-tokens and have a single place to extract it.
2019-10-22 19:58:56 +02:00
Marcin Kuzminski
f7627b4904 settings: reduce number of settings fetch since it uses locking for cache invalidation and is generally slow.
We anyway load it per-request so we can re-use this.
2019-07-18 00:02:51 +02:00
Marcin Kuzminski
db1689a48c sessions: don't touch session for API calls. 2019-06-14 13:05:04 +02:00
Marcin Kuzminski
89d320077e session: moved pyramid_beaker internally to apply some patches required for better session handling 2019-06-14 12:43:09 +02:00
Marcin Kuzminski
0a8e792efc auth: reduced usage of raw auth calls inside templates 2019-03-27 12:29:31 +01:00
csalgau
ef7b0fcbd5 Issue #5536 - ability to disable server-side SSH key generation
- Fixes #5536
2019-02-14 01:16:57 +02:00
Daniel Dourvaris
796c235358 ui: introduce user-bookmarks for creation of quick shortcuts 2019-01-22 01:18:40 +01:00
Daniel Dourvaris
6dc852a793 visual: fixed show revision/commit lenght settings 2019-01-18 19:04:00 +01:00
Marcin Kuzminski
bd1a9c8201 docs: updated copyrights to 2019 2019-01-02 18:13:27 +01:00
Marcin Kuzminski
3a43ded6b6 hooks: pass in store_path into env for hooks. 2018-09-26 12:14:37 +02:00
Marcin Kuzminski
4c45a5dbea users: use new session store for temporary settings for users.
- use for clone url type selection
- use for diffs mode
2018-09-24 23:18:38 +02:00
Marcin Kuzminski
9033601562 logging: use lazy parameter evaluation in log calls. 2018-09-13 17:41:35 +02:00
Marcin Kuzminski
08d3f6b83b branch-permissions: enabled branch permissions checks for SSH backend. 2018-08-29 16:41:52 +02:00
Marcin Kuzminski
d3afc86451 branch-permissions: handle vcs operations and branch permissions.
- use new exceptions for branch permissions
- detect if we need to check permissions
- calculate super-admin the same way as regular users for override capabilities
- added new tests for branch permissions
2018-08-29 20:22:43 +02:00
Marcin Kuzminski
f1497f5afd caches: new cache context managers.
- deprecate beaker cache completly
- use new cache decorators from dogpile
- use a proper per cache key invalidation
2018-08-02 18:04:52 +02:00
Marcin Kuzminski
ddc445856e caches: rewrite of auth/permission caches to dogpile. 2018-07-05 20:14:33 +02:00
Marcin Kuzminski
2306cd3189 base: drop usage of md5 for calculation of version hash. 2018-07-03 14:28:50 +02:00
Marcin Kuzminski
5d8ed27c02 ssh: don't show the SSH clone url if ssh is disabled 2018-01-25 18:14:41 +01:00
Marcin Kuzminski
9c22bde88e ui: allow selecting and specifing ssh clone url.
- fixes #5340
2018-01-25 14:20:08 +01:00
Marcin Kuzminski
00b45c1fa7 release: update copyright year to 2018 2018-01-19 17:13:16 +01:00
Marcin Kuzminski
19744d8230 vcs-ops: store user_id inside the extras for vcs context operations.
- we'll use this one for bootstrap of async tasks.
2017-11-30 17:41:05 +01:00
Marcin Kuzminski
95badaea26 caches: configure defaults for all defined regions.
- this allows using all cache regions without explicit configuration inside the .ini file
2017-11-16 22:02:32 +01:00
Marcin Kuzminski
1d332c03ad pylons: fixed code and test suite after removal of pylons. 2017-11-16 18:27:09 +01:00
Marcin Kuzminski
5f9ae2ae11 pylons: remove pylons as dependency
- dependencies: bumped:
 -setuptools-scm==1.15.6
 -celery==4.1.0
 -kombu==4.1.0
 -pytz==2017.3
 -Routes==2.4.1

Removed all pylons components. Refactored the code to use only pyramid
parts
2017-11-15 13:42:54 +01:00
Marcin Kuzminski
c481819e3f tests: add require methods to testing request.
- pluralize
- get_partial_renderer
2017-11-07 23:21:43 +01:00
Marcin Kuzminski
6739668652 testing: cleanup request/config stubs
- register pyramid_mako for config
- organize code remove duplication routes registration
2017-11-07 19:37:00 +01:00
Marcin Kuzminski
d394c2653a ssh-support: enabled full handling of all backends via SSH.
- run callback deamons
- run proper authentication checks
- add relative loging.
- fixes #5312
2017-10-24 23:48:14 +02:00
Marcin Kuzminski
27aff1de7a pull-requests: trigger merge simulation during PR creation. Fixes #5396 2017-10-12 20:57:02 +02:00
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
f445addfdd vcs: reduce sql queries used during pull/push operations. 2017-09-28 21:45:19 +02:00
Marcin Kuzminski
cfe326566d helpers: remove usage of pylons session. 2017-09-19 17:11:48 +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
c56bb0da4b core: removed usage of global pylons config in base lib. 2017-08-03 21:59:49 +02:00
Marcin Kuzminski
c17e166f5f events: make sure we propagate our dummy request with proper application_url.
- handles proper proxy prefix
- handles https and reverse proxies
2017-07-26 16:19:06 +02:00
Marcin Kuzminski
2656338a0d events: ported pylons part to pyramid.
- fix lack of request context in VCS type events
  we now use a dummy request but it's sufficient for routes generation
- cleanup and re-organized some code
- removed all pylons stuff from the events code
2017-07-26 12:41:14 +02:00
Marcin Kuzminski
67f8000683 core: use a custom filter for rendering all mako templates.
- brings old pylons function that converted None into a empty markup
2017-07-24 14:28:19 +02:00
Marcin Kuzminski
a9064c5007 translation: unified usage of pluralize function ungettext.
- now it's consistent _ungettext for pylons and pyramid
- will allow easier migration to full pyramid codebase
2017-07-24 10:00:06 +02:00