Marcin Kuzminski
27aff1de7a
pull-requests: trigger merge simulation during PR creation. Fixes #5396
2017-10-12 20:57:02 +02:00
Marcin Kuzminski
24a6e0ad1a
user-groups-audit: properly link to user_group when doing api actions
...
of remove and add an user on user group.
2017-09-20 20:27:28 +02:00
Marcin Kuzminski
034abca8dc
ssh: embedded ssh support
...
- updated command generation and added debug flag
- updated .ini config to have ALL required components to run SSH commands
- rcssh-wrapper now is embedded and pinned into version of enterprise
- update ssh_support configration
- implements #5343
2017-08-18 14:32:00 +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
25436a7365
audit-logs: implemented full audit logs across application.
...
- Fixes #5321
- Api+web actions
- To be extended while we develop new features.
2017-06-21 12:03:14 +02:00
Marcin Kuzminski
926a79e98e
audit-logs: implemented pull request and comment events.
2017-06-17 15:22:50 +02:00
Marcin Kuzminski
8a3441e96e
audit-logs: use specific web/api calls.
...
- also normalized action_data to specs.
2017-06-14 16:33:23 +02:00
Marcin Kuzminski
dbcc488137
audit-logs: implement enum sources that should be re-used.
2017-06-14 11:51:46 +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
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
51775c0669
pull-requests: fixed translation of error messages via merge-api.
...
- fixes #5325
2017-05-29 20:00:38 +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
Marcin Kuzminski
1ea2e3e49f
api: added maintenance command into API.
2017-05-11 12:34:41 +02:00
Marcin Kuzminski
4801f5f8ca
mercurial-evolve: enable evolve setting on repositories.
2017-05-10 18:33:59 +02:00
Marcin Kuzminski
bf27cbaf6d
docs: update API documentation.
2017-04-05 22:10:02 +02:00
Marcin Kuzminski
639508d54b
user-api: enable per-user audit logs fetching via API endpoint.
2017-03-28 15:49:20 +02:00
Marcin Kuzminski
e621d8dd88
api: added last-activity into returned data of get_user api.
...
- refs #5256
2017-03-23 14:50:20 +01:00
Marcin Kuzminski
24dc950561
api: expose more details of auth tokens in get_user api call.
2017-03-08 16:20:44 +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
029abc25e9
api: cleanup sessions enforce older_then must be a valid INT.
2017-02-07 13:16:15 +01:00
Marcin Kuzminski
ad2b740b5b
user-sessions: added an API call to cleanup sessions.
2017-01-30 11:17:42 +01:00
Marcin Kuzminski
3f9289f77f
api: added comment_resolved_id into aprameters to resolve TODO notes via API.
2017-01-18 19:15:46 +01:00
Marcin Kuzminski
cc9db5e79e
api: added possibility to specify comment_type for comment API.
2017-01-18 19:07:49 +01:00
Marcin Kuzminski
30637758d6
pull-requests: unified merge checks.
...
- same logic is now used for API, pre-conditions on show, and checks on actual merge
- added checks into API because it was not validated
2017-01-18 14:56:20 +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
828c060bdd
comments: changed signature of create method of ChangesetComment.
...
- use commit_id instead of revision
- add placeholder for comment_type
2017-01-09 17:46:53 +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
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
c152f31d62
docs: fixed small wanrings/errors during build.
2016-11-15 14:01:59 +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
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
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
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