Marcin Kuzminski
89d8b3cb21
api: security, fix problem when absolute paths are specified with API call, that would allow
...
forking of path based repos if paths are known to end users.
2018-03-28 21:56:23 +02:00
Bartłomiej Wołyńczyk
8ac5cf95aa
my-account: security change, added select filed with email from extra emails while editing user profile, now adding extra emails required type password. Task #5386
2018-02-15 18:40:03 +01:00
Marcin Kuzminski
5f25ae601e
repositories: allow properly updating repository push url.
2018-02-12 14:14:33 +01:00
Marcin Kuzminski
00b45c1fa7
release: update copyright year to 2018
2018-01-19 17:13:16 +01:00
Marcin Kuzminski
6f2703e4af
default-reviewers: introduce new voting rule logic that allows
...
defining vote rules for user groups assigned to the default reviewers.
- allows to set per number votes on user groups
- group reviewers by groups
- store the rules and show them in the UI
- fixes #5409
2018-01-19 12:38:25 +01:00
Marcin Kuzminski
87fecd1bf7
integrations: parse pushed tags, and lightweight tags for git.
...
- now aggregated as 'tags' key
- handles the case for email/webhook integrations
2017-12-03 22:37:36 +01:00
Marcin Kuzminski
587dee26ef
forms: added a codemirror form widget.
2017-11-29 14:39:43 +01:00
Marcin Kuzminski
1f7709b880
validators: added json validator.
2017-11-26 22:13:36 +01:00
Marcin Kuzminski
2fd10c9dd1
repo-groups: fixed a regression for updating nested repository groups
2017-11-14 13:52:48 +01:00
Marcin Kuzminski
69a865a7a3
repo-groups: moved to pyramid
2017-10-17 14:06:51 +02:00
Marcin Kuzminski
4a9be66cd1
dependencies: bumped pyramid-debugtoolbar to 4.3.1
2017-07-12 22:55:39 +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
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
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
dfec9d48a2
repo-schema: added a custom schema for repo settings.
...
- deform ready
- using new uri validators
- added proper widgets to handle deform
2017-04-28 12:03:35 +02:00
Marcin Kuzminski
a23b33ee9c
repo-schema: made changes to allow deform usage.
2017-04-26 16:40:47 +02:00
Marcin Kuzminski
0a781e9828
validation-schemas: added convert to opt group utility.
2017-04-26 16:42:13 +02:00
Marcin Kuzminski
b4b97b1b4e
repo-creation: validate and forbid creating .git suffixed repository names.
...
- because of git-lfs support, and also becuase to support the clone of git bare repositories
we cannot allow creating such repositories.
2017-04-18 12:23:14 +02:00
Marcin Kuzminski
adca0da138
integrations: fix re-submit of form on repo integrations.
2017-02-01 12:48:49 +01:00
Marcin Kuzminski
8f1db17117
comments: allow submitting id of comment which submitted comment resolved.
...
- use common template for inject forms
- cleanup of JS models, bind class of Form into the form itself
2017-01-11 15:05:33 +01:00
Marcin Kuzminski
24ef7171f8
comments: add comments type into comments.
2017-01-11 14:46:29 +01:00
Marcin Kuzminski
fcc027c282
license: updated copyright year to 2017
2017-01-02 09:30:39 +01:00
Marcin Kuzminski
e8cd5146b0
schema: preparer should keep case by default.
2016-12-12 23:31:35 +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
1943efb1b8
validation-schema: added StringBoolean type and IPAddr validator.
2016-11-23 15:22:02 +01:00
Marcin Kuzminski
ba9bf581d6
validators: fix glob validator raise statement misplacement.
2016-11-21 23:33:09 +01:00
Martin Bornhold
9afa669170
gists: Fix wrong default value in colander schema. #4243
2016-09-26 16:26:54 +02:00
Martin Bornhold
c0a7c7b6c4
imports: Remove unused imports.
2016-09-26 16:25:11 +02:00
Daniel Dourvaris
9b38ba8c8f
reviewers: add repo review rule models and expose default
...
reviewers route for pull requests via ajax, refs #1131
2016-09-06 16:02:35 +03:00
Daniel Dourvaris
3469c46507
integrations: add recursive repo group scope to allow integrations
...
to cascade into all descendant repositories, fixes #4225
2016-09-14 05:38:21 +03:00
Daniel Dourvaris
58036fece1
schemas: add user/usergroup schema type
2016-09-05 04:36:43 +03:00
Daniel Dourvaris
83b8750461
integrations: refactor/cleanup + features, fixes #4181
...
* added scopes on integrations, scopes are:
- repo only
- repogroup children only
- root repos only
- global (any repo)
* integrations schemas now have separate section for the
settings (eg. slack) and options (eg. scope/enabled)
* added descriptions to integration types
* added icons to integration types
* added 'create new' integration page
* added scope of integration to integrations list
* added breadcrumbs for each repo/repogroup/global integrations pages
* added sorting to integrations list
* added pagination to integrations list
* added icons to integrations list
* added type filter to integrations list
* added message to integrations list if none we found
* added extra permissions check on integrations views
* db migration from 56 => 57 - adds child_repos_only field
* added tests for integrations triggered on events
* added tests for integrations schemas
* added tests for integrations views for repo/repogroup/admin
2016-08-26 11:19:55 +03:00
Daniel Dourvaris
b51406ec1d
account: convert change password form to colander schema and fix bug
...
where user could use same password as before when changing
password, fixes #2264
2016-08-05 06:55:35 +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