Commit graph

35 commits

Author SHA1 Message Date
Marcin Kuzminski
efebab78b9 tests: fix accidentally broken tests. 2016-11-28 01:34:43 +01:00
Marcin Kuzminski
e2e4b830d8 api: add backward compatible info required for rhodecode-index. 2016-11-25 19:47:36 +01:00
Marcin Kuzminski
fb621ee72c repo-group-schemas: refactor repository group schemas.
- fixes #4133
- refactor to make it behave like repo schemas
- chain validation fixes
- nicer error messages
- consistent permission checks
2016-11-24 23:11:23 +01:00
Marcin Kuzminski
c081457f2c repo-schemas: refactor repository schemas and use it in API update/create functions.
- now it uses consistent way of serializing/validating data
- parent groups are consistenty handled by name parameter
- fixes #4133
- fixes other problems with bad data
- changes API slightly
- validation chain ordering, first permissions, then uniqness.
  Helps prevent resource disvovery
2016-11-24 23:48:10 +01:00
Marcin Kuzminski
2a8b58692d api: refactor auth helpers to reflect the action they do.
- those validators verify and throws expcetions, which is now reflected in the name
2016-11-23 17:23:41 +01:00
Marcin Kuzminski
b1aa2ee914 api-utils: added helper to validate repository-group access permissions. 2016-11-23 14:49:24 +01:00
Marcin Kuzminski
66e3dcc71d system-info: added info about temporary storage.
- temporary storage is used by Mercurial and other parts of the system.
knowing it's limitations is important to know.
2016-11-18 00:35:04 +01:00
Marcin Kuzminski
c152f31d62 docs: fixed small wanrings/errors during build. 2016-11-15 14:01:59 +01:00
Marcin Kuzminski
c68c339c0b system-info: fetch vcs settings from vcsserver. Fixes #4276
- redone the system info page. Errors/Warnings now show next to the
data, and also show up in API call.
- implemented fetching of git/hg/svn version from running vcsserver
- implemented fetching of vcsserver version from itself
- added more warnings/errors detection on RAM/Inodes etc
- few cleanups
2016-11-14 21:14:29 +01:00
Marcin Kuzminski
258cbd619a tests: api add_user tests for personal groups 2016-11-07 15:01:55 +01:00
Marcin Kuzminski
9e6713219c repo-groups: implemented default personal repo groups logic.
- fixes #4003
- adds new settings to automatically create personal repo groups for users on API cal, add user form, registration
- it's possible to create a pattern based repo group for example /u/{username}
2016-11-07 15:27:36 +01:00
Martin Bornhold
22dde6518a tests: Adapt tests to return value change. 2016-10-27 11:43:13 +02:00
Martin Bornhold
406ee8a847 tests: Remove pull request duplication and update expected values. 2016-10-24 10:12:32 +02:00
Martin Bornhold
435dbe2865 tests: Update expected data from api call. 2016-10-24 10:10:26 +02:00
Martin Bornhold
30ddfedded api: Add merge reference to merge_pull_request api call. 2016-10-24 10:09:44 +02:00
Martin Bornhold
979006718e api: Include merge reference into API data of a PR. 2016-10-23 16:48:32 +02:00
lisaq
607fd8931d settings: fix #3944 add password reset permission 2016-10-25 17:37:14 +02:00
Marcin Kuzminski
c069290119 system-info: expose inode limits and usage. Fixes #4282 2016-10-18 14:49:45 +02:00
Martin Bornhold
2653ff980f tests: Add shadow clone url to expected api return value. 2016-09-23 14:30:57 +02:00
Martin Bornhold
31721213be api: Add an entry for pr shadow repositories to api functions. 2016-09-20 15:14:00 +02:00
Daniel Dourvaris
b3e97c1715 reviewers: store reviewer reasons to database, fixes #4238 2016-09-27 02:34:15 +03:00
Daniel Dourvaris
1f962f76dc api: make jsonrpc registry ordered so doc generation can be ordered 2016-08-09 20:33:33 +03:00
Daniel Dourvaris
05681731cc api: fix spelling of deprecated 2016-08-09 18:19:36 +03:00
Marcin Kuzminski
1b62606fc2 emails: added new tags to status sent
- make this distinct colored tags for quick status catch
- pass in the status type together with label to the notifiactions and templates
- fixed some UI issues on emails
2016-08-03 15:21:38 +02:00
Marcin Kuzminski
198c6fda61 gists: use colander schema to validate input data.
- brings consistent validation acros API and web
- use nicer and stricter schemas to validate data
- fixes #4118
2016-07-31 20:11:12 +02:00
Marcin Kuzminski
708038952c db: always use Session() for compatibility, Using Session is actually the
scoped_session which is not the same as the one which we "call".

More here: http://docs.sqlalchemy.org/en/latest/orm/contextual.html#contextual-thread-local-sessions
2016-07-27 00:42:19 +02:00
Daniel Dourvaris
74d0f0c336 api: add a max_file_bytes parameter to get_nodes so that large
files can be skipped
2016-07-26 20:52:11 +03:00
Martin Bornhold
206c465640 api: Add api methods to get/set repository settings, implements #4021 2016-07-06 16:33:56 +02:00
Daniel Dourvaris
23d7a947f5 events: add serialization .to_dict() to events based on marshmallow 2016-07-06 12:21:03 +03:00
Marcin Kuzminski
60b6490ced api: make comment_commits api have consistent permissions with web interface. 2016-07-05 09:56:44 +02:00
Daniel Dourvaris
1131ae8335 tests: refactor test_update_repo for clarity 2016-06-01 20:23:13 +03:00
Daniel Dourvaris
d6b53f4354 bugfix: remove accidental addition 2016-06-01 20:15:12 +03:00
Daniel Dourvaris
9354185a44 bugfix: fixed #3965 and updated a bunch of api tests which
were not actually testing their return values properly
2016-06-01 20:11:27 +03:00
Marcin Kuzminski
6c265d1ff9 api: gracefully handle errors on repos that are damaged or missing from filesystem. 2016-05-31 11:25:28 +02:00
Marcin Kuzminski
9a0d8c0b77 project: added all source files and assets 2016-05-24 15:56:53 +02:00