Commit graph

46 commits

Author SHA1 Message Date
Marcin Kuzminski
ee0e7c21f8 users: make AuthUser propert a method, and allow override of params. 2017-08-03 20:17:46 +02:00
Marcin Kuzminski
b203d5f208 pull-requests: migrated code from pylons to pyramid 2017-07-27 11:30:55 +02:00
Marcin Kuzminski
708f22ac87 db: use unicode for some of the defaults to reduce sqlalchemy warnings. 2017-07-26 12:14:56 +02:00
Daniel Dourvaris
93b6dfba9a gists: migrated gists controller to pyramid view. 2017-07-07 12:05:30 +02:00
Marcin Kuzminski
9c7ed2caf3 user-api: use simple schema validator to be consistent how we validate between API and web views. 2017-06-21 15:36:24 +02:00
Marcin Kuzminski
749f784ad9 user-group-api: use simple schema validator to be consistent how we validate
user group names during creation between API and WEB.
2017-06-21 13:28:12 +02:00
Marcin Kuzminski
926a79e98e audit-logs: implemented pull request and comment events. 2017-06-17 15:22:50 +02:00
Marcin Kuzminski
1be028f546 audit-logs: moved async tasks from old deprecated action_logger. 2017-06-14 15:45:17 +02:00
Daniel Dourvaris
2beb24a857 reviewers: added validation and default review rules via API calls.
- update/create pull request now validate and update the default reviewer rules.
2017-06-14 11:10:19 +02:00
Marcin Kuzminski
5915f38fcf pull-request-api: updated logic of closing a PR via API call.
- consistent logic via web and API
- updated events
- updated proper close checks.
2017-06-13 00:14:21 +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
5c453c1cb6 audit-logger: unify calls to repo.delete and also store source of call, api/web. 2017-05-16 14:48:07 +02:00
Bartłomiej Wołyńczyk
b5ec70cf90 admin-users: add view for user groups managment
model-repo: get_user_groups modified to return more information about user
model-user_group: 2 new methods added
tests-models: mocked repo test becouse of modifications in model
2017-03-21 20:51:18 +01:00
Marcin Kuzminski
db64ea8c81 api: use consistent way to extract users, repos, repo groups and user groups by id or name.
- makes usage of Number vs String to differenciate if we pick objec ID or it's name
this will allow easy fetching of objects by either id or it's name, including numeric string
name
- fixes #5230
2017-03-13 12:56:22 +01:00
Marcin Kuzminski
d6dfdba2a8 auth-tokens: fixed tests 2017-02-28 12:49:40 +01:00
Marcin Kuzminski
6568814f98 api: add get_method API call.
- in addition use it's mechanics to propose users other methods if the
calling method is not found.
2017-02-10 16:24:57 +01:00
Marcin Kuzminski
a2de6540c6 api: validate commit_id when using commit_comment API 2017-02-08 21:30:23 +01:00
Marcin Kuzminski
23ff2e2325 test: fixes for tests for PR versions. 2017-01-30 12:41:24 +01:00
Marcin Kuzminski
ad2b740b5b user-sessions: added an API call to cleanup sessions. 2017-01-30 11:17:42 +01:00
Marcin Kuzminski
7ff55b266b tests: fixed api merge tests after introducing merge checks. 2017-01-18 14:29:21 +01:00
Marcin Kuzminski
b52808ca95 comments: renamed ChangesetCommentsModel to CommentsModel to reflect what it actually does.
It's not limited to Changesets/Commits.
2017-01-09 17:52:00 +01:00
Marcin Kuzminski
fcc027c282 license: updated copyright year to 2017 2017-01-02 09:30:39 +01:00
Marcin Kuzminski
75ef1f61eb api: comment_pull_request, added commit_id parameter to validate status changed on particular commit.
- when using the API and creating a comment with status change it's now possible to pass in
commit_id, this will allow validation if status change of pull_request is allowed based on the given
commit_id. This solves the case when long running test sends approval of pull request which was
already updated several times. The commit_id will now validate for which state the approval was made,
and prevent accidental aproval of outdated pull requests.
2016-12-30 14:19:38 +01:00
Marcin Kuzminski
340d1b02d9 api: get_repos allows now to filter by root locations, and optionally traverse the returned data.
Fixes #5146
2016-12-29 14:41:46 +01:00
Marcin Kuzminski
eda3a27331 api: implemente missing get_repo_refs api backend. Fixes #4677 2016-12-16 16:15:18 +01:00
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
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
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
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
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
Daniel Dourvaris
b3e97c1715 reviewers: store reviewer reasons to database, fixes #4238 2016-09-27 02:34:15 +03:00
Daniel Dourvaris
05681731cc api: fix spelling of deprecated 2016-08-09 18:19:36 +03: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
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
Daniel Dourvaris
23d7a947f5 events: add serialization .to_dict() to events based on marshmallow 2016-07-06 12:21:03 +03:00
Daniel Dourvaris
1131ae8335 tests: refactor test_update_repo for clarity 2016-06-01 20:23:13 +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
9a0d8c0b77 project: added all source files and assets 2016-05-24 15:56:53 +02:00