Commit graph

57 commits

Author SHA1 Message Date
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
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
Marcin Kuzminski
53611d6f94 files: ported repository files controllers to pyramid views. 2017-07-17 14:20:22 +02:00
Marcin Kuzminski
01618e7be5 pyramid: expose a temporary TemplateContext under _c 2017-07-14 12:49:53 +02:00
Marcin Kuzminski
ebc5609e99 pyramid: allows easier turning off the pylons components. 2017-07-13 10:57:57 +02:00
Marcin Kuzminski
b74413678d pyramid: changes for pyramid migration. 2017-07-12 22:56:21 +02:00
Marcin Kuzminski
ef1f17e46a refs: refactored references code to remove any pylons elements.
- now uses pure pyramid style without usage of any pylons globals
2017-07-08 15:28:40 +02:00
Marcin Kuzminski
7178db58ba core: use new style pyramid partial renderer where possible. 2017-07-08 15:27:41 +02:00
Marcin Kuzminski
2489c0ed51 core: make pylons global be used in obsolete parts of the code.
- will help later cleanup of pylons specific code
2017-07-08 15:23:40 +02:00
Marcin Kuzminski
53b4ac98f8 repo-summary: re-implemented summary view as pyramid.
- changed exception handler, to now work in pure pyramid mode
- changed missing requirements logic on repo based views that require vcs-connection
2017-06-07 13:23:21 +02:00
Marcin Kuzminski
18a356ec2a predicates: skip route matching for vcs type calls. 2017-06-05 22:23:30 +02:00
Marcin Kuzminski
71fee00277 home: moved home and repo group views into pyramid.
- fixed lots of tests related to those changes
- now main and subrepo group views are handled by pyramid.
2017-06-05 15:16:04 +02:00
Marcin Kuzminski
bd1e865c9c pull-request: extended default reviewers functionality.
- added mandatory reviewers JS logic Fixes: #4219
- added option to forbid author to be a reviewer via JS/Frontend checks. Fixes #5190
- added option to forbid adding new reviewers except those defined. Fixes #5208
2017-05-29 20:10:17 +02:00
Marcin Kuzminski
be41f0b920 pull-requests: moved the listing of pull requests for repo into pyramid.
- moved as datagrid App
- changed loading of grid to lazy, as other new views.
2017-05-29 20:58:42 +02:00
Marcin Kuzminski
ca6ba228c3 tags/branches/bookmarks: moved views into pyramid. 2017-05-12 16:23:26 +02:00
Marcin Kuzminski
252dc7e9bf repo-view: handle empty repo or missing requirements in base view for repositories. 2017-04-27 15:29:07 +02:00
Marcin Kuzminski
93e855bd4a base-grid-view: allow specifing custom mapping for sort columns. 2017-04-13 17:16:26 +02:00
Marcin Kuzminski
482cb6cd23 data-grid: create a common re-usable app with datagrid rendering helpers 2017-04-13 12:15:02 +02:00
Marcin Kuzminski
e959f4e89a core: added supports of repo based views via pyramid. 2017-03-16 15:05:58 +01:00