Commit graph

51 commits

Author SHA1 Message Date
Daniel Dourvaris
5d5bf456a6 permissions: allow users to update settings for repository groups they still own, or have admin perms, when they don't change their name.
- this before gave no-permission errors as the parent group access was checked
- since the group parent permission should be checked at creation, or name change this commit fixes such case
2020-07-02 11:39:35 +02:00
Marcin Kuzminski
986afbcb12 repositories: allow updating repository settings for users without store-in-root permissions
in case repository name didn't change.

- when an user owns repository in root location, and isn't allow to create repositories in root
before we failed to allow this user to update such repository settings due to this validation.
We'll now check if name didn't change and in this case allow to update since this doesn't store any new
data in root location.
2020-06-25 10:21:46 +02:00
Marcin Kuzminski
324544678c events: added support for pull-request-comment and commit-comment events.
- allows chopts like actions on commits
- re organized events and code cleanups
2020-04-17 22:08:42 +02:00
Marcin Kuzminski
fe96e16646 code: update copyrights to 2020 2020-04-16 00:34:52 +02:00
Marcin Kuzminski
9b9e7d2a5a users: description edit fixes
- tests
- added metatags info
2019-10-31 11:22:32 +01:00
Marcin Kuzminski
cd0bf47064 users: add edition of description in admin view for users 2019-10-31 10:28:13 +01:00
Marcin Kuzminski
1f16da1ab3 search: updated api and switched to desc:date as default 2019-10-02 01:39:17 +02:00
Marcin Kuzminski
bf69ffc8f0 search: allow result sorting for elasticsearch6 2019-10-01 15:20:44 +02:00
Marcin Kuzminski
981307fc4f landing-rev: fixes #4102, use branches instead of landing tip refs by default.
- also changed how readme is rendered based on landing commit to minimize locking for often changing repositories.
2019-08-16 09:55:36 +02:00
Daniel Dourvaris
96fa4e0bdc py3: remove usage of basestring 2019-01-22 23:06:49 +01:00
Marcin Kuzminski
bd1a9c8201 docs: updated copyrights to 2019 2019-01-02 18:13:27 +01:00
Daniel Dourvaris
bd42c53c17 search: add support for elastic search 6
- elasticsearch new query lang and searcher
- much more advanced query lang
- added context aware search in repository groups, repository, commits, files view
- optimized quick search bar speed when using full text search
- added option to increase hits per file number from query URL using max_lines
- search results can be now marked inside a text file using ?mark=HIGHLIGHT_TEXT added to the url
2018-12-19 18:17:51 +01:00
Marcin Kuzminski
4719d0ff87 code: unified coverage notes to # pragma: no cover 2018-12-07 13:34:28 +01:00
Marcin Kuzminski
77524db5af validation: remove unused raised statement 2018-07-19 12:46:53 +02:00
Marcin Kuzminski
88537dc3fa validators: fix problems with new mercurial url validation. 2018-06-05 16:09:55 +02:00
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