Marcin Kuzminski
475dda82af
files: use a common function to handle url-by-refs, and fix landing refs for SVN.
...
- fixes #5619
2020-06-03 20:29:26 +02:00
Marcin Kuzminski
833fb8ef6c
caches: flush *all* caches used for permissions.
2020-05-05 21:35:59 +02:00
Marcin Kuzminski
fe96e16646
code: update copyrights to 2020
2020-04-16 00:34:52 +02:00
Marcin Kuzminski
b0691022ea
acl: added some nicer logging for file path ACL checks.
2020-03-31 16:42:44 +02:00
Bartlomiej Wolynczyk
eb8c355a4d
issue-tracker: use stored issueTracker patterns for repo instead of initializing model every time.
2020-01-20 13:39:14 +01:00
Marcin Kuzminski
387e40f55b
menu: expose artifacts count into menu
2019-10-09 14:10:22 +02:00
Marcin Kuzminski
51c6861d06
files: render readme files found in repository file browser.
...
- GH/GL does the same
- this is handy browsing monorepos/big repos with structured docs found in subprojects
2019-09-09 13:03:37 +02:00
Marcin Kuzminski
0ae89b9907
files: only check for git_lfs/hg_largefiles if they are enabled.
...
- this speeds up fetching of files if they are not LF and very big.
2019-08-23 14:37:56 +02:00
Marcin Kuzminski
60cbfd99c9
path-filter: enable for quick search menu.
2019-07-24 11:53:06 +02:00
Marcin Kuzminski
cab16efa4e
vcs: optimized pre-load attributes for better caching.
2019-07-17 13:50:26 +02:00
Marcin Kuzminski
39e6f817c7
repositories: use remote function to check if repo is empty
...
- changed 2 cases where we want to check for None instead of __bool__ of repo object
2019-06-05 13:30:26 +02:00
Marcin Kuzminski
4ff7ba8955
repositories: bring back watch action in summary view
2019-05-10 17:47:39 +02:00
Marcin Kuzminski
88056f6f71
auth: don't check for delegated admin if we are super admin.
2019-03-27 14:37:34 +01:00
Marcin Kuzminski
0a8e792efc
auth: reduced usage of raw auth calls inside templates
2019-03-27 12:29:31 +01:00
Marcin Kuzminski
84de94bb5b
nav: updated navigation entries for admin
...
- fixed integrations page
2019-03-22 23:17:11 +01:00
Marcin Lulek
3ab8040abf
caches: allow cache disable for file tree
2019-02-12 10:14:15 +01:00
Daniel Dourvaris
4eccdc24d9
search: new UI for search, and repo group context search
...
- expose search into main NAV
- have repo group search filter using new ES lang
- show token keys and curretn context when searching
- ui updated and consistency fixes
2019-01-30 21:20:26 +01:00
Daniel Dourvaris
96fa4e0bdc
py3: remove usage of basestring
2019-01-22 23:06:49 +01:00
Marcin Kuzminski
239d860950
forks: don't expose fork link if we don't have permission to read it, and also don't pre-select in pull request.
2019-01-03 13:03:40 +01:00
Marcin Kuzminski
bd1a9c8201
docs: updated copyrights to 2019
2019-01-02 18:13:27 +01:00
Marcin Kuzminski
f33e0ddc9f
core: change from homebrew plugin system into pyramid machinery.
...
- it's faster to load
- homebrew system was never used as intended
- it's cleaner CE/EE code this way
2018-11-25 11:56:29 +01:00
Marcin Kuzminski
fcc18a6200
application: re-organize imports for pyramid to prepare code for speedup optimization.
2018-11-24 17:52:21 +01:00
Marcin Kuzminski
9014d9516c
pull-requests: allow to show range diff in pr view
2018-10-15 12:44:36 +02:00
Marcin Kuzminski
df27625f07
exceptions: use python3 compatible exception handling
2018-10-02 11:03:22 +02:00
Marcin Kuzminski
dffd66bf18
routing: fix default argument mutability.
2018-09-25 14:02:31 +02:00
Marcin Kuzminski
2910f510dc
repositories: added option to archive repositories instead of deleting them.
...
- closes #5493
2018-09-25 17:28:11 +02:00
Marcin Kuzminski
65e339e9fd
core: handle edge case requesting matched routes but with hg/svn/git or api context.
...
- before we error out with 500
2018-09-20 11:47:03 +02:00
Marcin Kuzminski
cef0f7bcc9
routing: skip advanced delete for repo creating so we can remove stuck repositories.
2018-07-26 21:55:03 +02:00
Marcin Kuzminski
03e412b2fa
caches: disable caches in predicates.
...
- predicates store objects inside request which we later frequnetly use.
- generally we'll loose ~20ms on this call but this fixes a lot of problems
especially when deleting resources and they are still in cache.
2018-07-14 18:18:35 +02:00
Bartłomiej Wołyńczyk
4637dd151e
caching: add option to cache diffs for commits and pull requests.
...
- new option for vcs settings to enable caching of diffs and commits
- enables auditing of PR after closing it, and removing commits from source repo
- speed up for large PR upto 20x
- reduced memory usage
2018-04-17 18:46:20 +02:00
Marcin Kuzminski
a004625b70
missing requirements: better handling of missing requirements for repositories.
...
- skip views that will lead to crash
- allow repo edits
- show explanation in summary page for easier fix
2018-02-20 18:56:48 +01:00
Marcin Kuzminski
a6f85f2eaf
path-permissions: handle case of missing requirements and initializing self.path_filter with None value.
...
We expect it rather be a class with None specified. e.g we call some methods on this object.
2018-02-20 18:38:56 +01:00
Marcin Kuzminski
3ea058d91b
code: code fixes and small adjustments
2018-02-20 17:49:26 +01:00
Sandu Turcan
9bf33f6b78
path-permissions: Handle scm_instance() returning None
2018-02-19 13:00:23 -05:00
Sandu Turcan
c3183aae9a
path-permissions: Introduced a _get_f_path_unchecked method, which can be used by redirects, which don't have to create a template context
2018-02-19 09:48:47 -05:00
Sandu Turcan
e4981d4e72
path-permissions: Initial support for path-based permissions
2018-02-18 19:30:42 -05:00
Marcin Kuzminski
00b45c1fa7
release: update copyright year to 2018
2018-01-19 17:13:16 +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
36d19561bc
pyramid: turn on inclusion of app defaults. This will be required
...
after last controllers are ported.
2017-11-09 15:38:48 +01:00
Marcin Kuzminski
69a865a7a3
repo-groups: moved to pyramid
2017-10-17 14:06:51 +02:00
Marcin Kuzminski
b505377197
users: ported controllers from pylons into pyramid views.
2017-09-20 22:29:34 +02:00
Marcin Kuzminski
3821db3f37
apps: removed deprecated usage of c.repo_info
2017-09-08 13:33:17 +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
429c3a56cb
data-grid-app: added universal function for extracting ordering.
...
- now supports format a.b
- supports passing a ref column e.g User.username, get's handy for joined querie
2017-08-17 22:44:25 +02:00
Marcin Kuzminski
2c11516c9b
routing: optionally use explicit db object on route.
...
- makes it harder to integrate plugins
- makes it consistent on other places
- allows some plugins to use just the names
2017-08-01 22:59:15 +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
21efeeab37
repositories: handle in a nicer way a filesystem damaged repositories.
...
- redirect with proper flash message about damaged filesystem.
2017-07-28 15:23:45 +02:00
Marcin Kuzminski
4de255d013
core: no longer rely on webob exception inside get_or_404 function.
...
- relly on pyramid exc only
- helps reduce number of appenlight problems with 404 handling via webob
2017-07-25 15:26:38 +02:00
Marcin Kuzminski
678a930750
routing: use a common method to extract the f_path for repo views.
...
The extra slashes can cause odd issues with GIT, the previous
pylons code had a fix in routing. This ports this fix into
pyramid helper in base app.
2017-07-17 23:09:33 +02:00
Marcin Kuzminski
55148c3e6c
pyramid: moved add_route_requirements into pyramid base app.
...
- use it integrations, and simplify the code.
2017-07-17 23:08:07 +02:00