Commit graph

94 commits

Author SHA1 Message Date
Marcin Kuzminski
492eb8ed84 api: deprecation, of members attribute that is replaced now with permissions returning a set of permissions
for repo/repo group/user group.
2017-12-05 23:00:48 +01:00
Marcin Kuzminski
bc23ad316c api: pull-requests, make the repoid parameter optional. Because pullrequestid is global
we don't want to complicate things more by requiring repoid. Left for backward compat.
2017-11-23 21:14:04 +01:00
Marcin Kuzminski
b809d00f88 api: pull-requests added option to fetch comments from a pull requests.
- fixes #5398
2017-11-23 20:08:46 +01:00
Marcin Kuzminski
6bbab12fcc celery: celery 4.X support. Fixes #4169
- update tasks
- enabled celerybeat to function
- check and cleanup code for 4.X
2017-11-16 19:26:53 +01:00
Marcin Kuzminski
1d332c03ad pylons: fixed code and test suite after removal of pylons. 2017-11-16 18:27:09 +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
ec6a342178 vcs: commits, expose refs function to fetch commit refereces such as tags, bookmarks, etc. 2017-11-09 19:49:29 +01:00
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
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
Marcin Kuzminski
41cafab139 core: always attach pyramid context into request
- this will be the default way of replacing tempalte_context globals from pylons
- helps remove of old style PartialRenderer
2017-07-08 15:25:54 +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
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
1be028f546 audit-logs: moved async tasks from old deprecated action_logger. 2017-06-14 15:45:17 +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
Daniel Dourvaris
930c7eebbd api: attach the call context variables to request for later usage
in API calls.
2017-06-14 11:07:54 +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
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
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
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
ab24af89d2 auth-tokens: disable authenticating by builtin token. 2017-02-27 11:45:30 +01:00
Marcin Kuzminski
5c2c266ee9 auth-tokens: updated logic of authentication to a common shared user method. 2017-02-13 14:36:48 +01:00
Marcin Kuzminski
be8db660b1 api-events: fix a case events were called from API and we couldn't fetch registered user.
- Fixes #5210
2017-02-13 13:04:48 +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
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
246f2093bd celery: handle pyramid/pylons context better when running async tasks. 2017-01-18 23:13:27 +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
7ff55b266b tests: fixed api merge tests after introducing merge checks. 2017-01-18 14:29:21 +01:00