Commit graph

174 commits

Author SHA1 Message Date
Daniel Dourvaris
e9018c74bd search: added per-backend sorting fields.
- unified naming to be more user friendly
- only sort on supported fields that each backend exposes
- fixed few cases of sort errors and added additional tests
2019-10-02 17:23:34 +02:00
Marcin Kuzminski
1f16da1ab3 search: updated api and switched to desc:date as default 2019-10-02 01:39:17 +02:00
Marcin Kuzminski
ed0653712b dependencies: bumped test libraries. 2019-09-30 13:26:57 +02:00
Marcin Kuzminski
a17adaa9f2 db: use more consistent sorting using real objects, strings are deprecated in laters sqlalchemy query syntax. 2019-09-30 13:24:56 +02:00
Marcin Kuzminski
1d9452ce80 pytest: use consistent way of creating a fixture by using pytest.fixture() 2019-09-28 23:04:18 +02:00
Marcin Kuzminski
e9cf83badc diffs: fixed outdated files in pull-requests re-using the filediff raw_id for anchor generation.
In some cases when there are no longer any files this caused error since filediff wasn't present.
In addition this generated wrong ids since it used a last-defined attribute on a for loop.

Fixes #5567
2019-09-25 10:33:00 +02:00
Marcin Kuzminski
0cbb6b652a permissions: properly flush user cache permissions in more cases of permission changes.
- fixed #5560
2019-08-20 10:48:36 +02:00
Marcin Kuzminski
981307fc4f landing-rev: fixes #4102, use branches instead of landing tip refs by default.
- also changed how readme is rendered based on landing commit to minimize locking for often changing repositories.
2019-08-16 09:55:36 +02:00
Marcin Kuzminski
5b8d619a70 tests: fixes after some later code changes 2019-07-29 13:01:18 +02:00
Marcin Kuzminski
758991d8f1 pull-requests: make merge state default as False. This causes a lot of performance problems and should default to faster way 2019-07-25 21:52:14 +02:00
Marcin Kuzminski
60cbfd99c9 path-filter: enable for quick search menu. 2019-07-24 11:53:06 +02:00
Marcin Kuzminski
2912fa1059 api: user-group api docs update 2019-07-23 12:52:10 +02:00
Marcin Kuzminski
928652312a core: added more accurate time measurement for called functions 2019-07-17 16:28:41 +02:00
Marcin Kuzminski
929deba1dd tests: fixing tests for pull-requests and changelog(commits) 2019-06-28 14:24:57 +02:00
Marcin Kuzminski
23584a96ce tests: fix cache problems after empty repo check change. 2019-06-06 20:24:25 +02:00
Marcin Kuzminski
eddc784e19 docs: updated documentation structure 2019-05-21 16:33:01 +02:00
Marcin Lulek
4275ee91b9 api: added tests for the search API 2019-03-29 12:51:50 +01:00
Peter Colledge
2968700cb7 Issue #5548 - Pass repo_group_name 2019-03-26 14:58:58 +00:00
Peter Colledge
245658780b Issue #5548 - Add repo_group_name and docs to search API 2019-03-26 14:52:34 +00:00
Peter Colledge
500599bd61 Issue #5548 - Add initial search API method 2019-03-21 11:52:57 +00:00
Marcin Kuzminski
0598233013 api: report better error when fetching a node that doesn't exist. 2019-02-18 12:30:08 +01:00
Marcin Lulek
b11c4157c4 api: pull-requests, fixed invocation of merge as another user. 2019-02-15 10:27:18 +01:00
Marcin Kuzminski
8ef8bf2673 api: maked logging of get_repo_file API function tell a bit more info about errors. 2019-02-14 21:46:24 +01:00
Marcin Kuzminski
3871bc6f15 api: allow uncached content fetching.
- this is mostly to optimize for memory of indexer
2019-02-14 10:49:02 +01:00
Marcin Kuzminski
184b3c75e2 api: expose owner to create_pull_request API. Fixes #5537 2019-02-13 10:44:44 +01:00
Marcin Kuzminski
1b48364bb6 commits: allow tag commit translation to be skipped for faster commit fetching in big chunks. 2019-02-11 19:58:34 +01:00
Marcin Kuzminski
a181157300 api: forbid commenting on closed PR 2019-02-08 09:55:45 +01:00
Marcin Kuzminski
c42c716cba api: add cache for fts index builder call that returns file tree. This is often re-used and should return unchanged state fast 2019-02-08 08:38:49 +01:00
Marcin Kuzminski
5b8a28d0eb api: expose new functions for FTS
- vcs: added special md5 calculation that doesn't use content cache for more memory efficient md5 calculation.
2019-02-07 11:31:30 +01:00
Marcin Kuzminski
01cd008a20 api: expose merge message in the merge operation 2019-02-05 17:17:58 +01:00
Marcin Kuzminski
723799ca1d artifacts: added DB store models. 2019-02-05 12:49:36 +01:00
Marcin Kuzminski
810bfe54c5 file-store: rename module from upload_store to file_store. 2019-02-01 13:35:49 +01:00
Marcin Kuzminski
bd69124334 api: pull-requests get_all now sortes the results and have a flag to show/hide merge result state 2019-01-31 14:42:23 +01:00
Marcin Kuzminski
45f8b0282a API: added basic upload api for the file storage 2019-01-28 17:17:37 +01:00
Marcin Kuzminski
f38e87b9b7 api: added function to fetch comments for a repository. 2019-01-28 12:05:34 +01:00
Daniel Dourvaris
96fa4e0bdc py3: remove usage of basestring 2019-01-22 23:06:49 +01:00
Marcin Kuzminski
7f1f5e3601 api/pull-requests: trigger events for comments/review status changes. 2019-01-18 13:34:54 +01:00
Marcin Kuzminski
1e2a7a9136 pull-requests: introduce operation state for pull requests to prevent from
locks during merge/update operations.
2019-01-07 13:32:16 +01:00
Marcin Kuzminski
bd1a9c8201 docs: updated copyrights to 2019 2019-01-02 18:13:27 +01:00
Marcin Kuzminski
861720334b release: merge back stable branch into default 2019-01-02 17:04:25 +01:00
Marcin Kuzminski
8affc5f5be app: dropped deprecated controllers to view_utils which are actually proper name 2019-01-01 21:54:18 +01:00
Marcin Kuzminski
830d1820e6 audit-logs: add audit logs for API permission calls.
- fixes #5490
2018-12-31 00:37:22 +01:00
Daniel Dourvaris
599f9b7964 pull-requests: ensure merge response provide more details
- refactor merge responses with detailed messages
- fixes #5520
- code cleanups
2018-12-30 11:00:09 +01:00
Marcin Kuzminski
a1086f1051 exc-tracker: store API based exceptions and fix prefixes to no use _ 2018-12-28 12:23:24 +01:00
Marcin Kuzminski
03fcdf8f0b api: added store_exception_api for remote exception storage.
- this will be used in the new indexer that could now report indexing error right back into RhodeCode.
2018-12-18 12:05:03 +01:00
Marcin Kuzminski
1e446c9382 api: fixed potential crash when returning error response using JSON objects that fail to parse. 2018-12-18 11:42:52 +01:00
Marcin Kuzminski
1d027eb16a pull-requests: validate ref types for pull request so users cannot provide wrongs ones. 2018-12-13 22:02:46 +01:00
Marcin Kuzminski
23f4646581 reviewers: use target repo owner as default reviewer in case of CE edition.
- Fixes #5515
- This was somehow different than in EE edition
2018-11-21 18:04:29 +01:00
Daniel Dourvaris
21e7eef112 vcs: don't use deprecated get_changeset[s] methods. 2018-10-03 16:18:06 +02:00
Marcin Kuzminski
df27625f07 exceptions: use python3 compatible exception handling 2018-10-02 11:03:22 +02:00