Commit graph

351 commits

Author SHA1 Message Date
Marcin Kuzminski
e8447b4107 comments: use unified aggregation of comments counters.
- use 1 source of count and display objects
- scroll to for hidden comments will show them before scroll
- properly show how many comments we're displaying for each version
2017-01-16 18:12:38 +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
fe5871e9df sessions: added interface to show, and cleanup user auth sessions. 2017-01-11 19:35:42 +01:00
Marcin Kuzminski
1ba0fb5d27 db: added table to manage DbSessions. 2017-01-11 16:04:09 +01:00
Marcin Kuzminski
f26ac86e28 comments: properly show version of pull request into added comments.
- index them by numeric index instead of DB id
- show inside main comments a version in which they were made.
2017-01-08 21:49:26 +01:00
Marcin Kuzminski
89e2586781 templating: use .mako as extensions for template files. 2017-01-04 22:13:57 +01:00
Marcin Kuzminski
1e5cfcf8ab auth-tokens: show all available roles for the builtin token.
- builtin token cannot be used to make VCS calls, we wrongly identified it as ALL token.
2017-01-02 10:18:47 +01:00
Marcin Kuzminski
fcc027c282 license: updated copyright year to 2017 2017-01-02 09:30:39 +01:00
Marcin Kuzminski
9d8634a618 pull-requests: expose version browsing of pull requests.
- show nav for browsing each version of pr
- show detailed changes for each of version
- update comment template to indicate the changes were due to update of a pr
2016-12-19 17:38:22 +01:00
Marcin Kuzminski
8b2182110a pull-requests: added version browsing for pull requests.
- invalidated comments now link to previous version to show code context
- removed all deprecated JS code left from new diffs
- improved invalidated comments display logic
- UI tweaks
2016-12-06 00:22:04 +01:00
Daniel Dourvaris
cbd60560be model: add outdated property to changeset comment to check if
comment is outdated
2016-10-27 10:03:43 +03:00
Marcin Kuzminski
01518d41f6 backends: don't detect backends when initializing db based vcs-instance.
This skips some calls back to vcsserver.
2016-11-17 20:00:16 +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
Marcin Kuzminski
753d0ff478 pull-requests: redo my account pull request page with datagrid. Fixes #4297
- consistent ui with per-repo pull-request page
- faster loading due to pagination
- enabled sorting of columns
2016-11-01 08:58:57 +01:00
Martin Bornhold
979006718e api: Include merge reference into API data of a PR. 2016-10-23 16:48:32 +02:00
Martin Bornhold
60effdade9 pr-shadow: Use reference object to store the last merge reference of a PR. #1055 2016-10-23 15:58:19 +02:00
Martin Bornhold
b7baca777d db: Refactor reference conversion to an reusable method. 2016-10-23 15:57:24 +02:00
Martin Bornhold
5eb2bcdc45 db: Add a column to PR to hold the last merge revision. 2016-10-23 14:35:47 +02:00
lisaq
607fd8931d settings: fix #3944 add password reset permission 2016-10-25 17:37:14 +02:00
Martin Bornhold
a385c08a46 pr: Unify clone url generation of shadow repository. 2016-09-21 09:34:47 +02:00
Martin Bornhold
acaaa03219 models: Remove unused imports. 2016-09-20 15:15:12 +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
5290e2381e reviewers: add pull request reviewers reason column to table
to allow showing the reason a user is a reviewer on a pull request
2016-09-23 12:34:53 +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
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
2e3256ff49 integrations: add repo group integrations, fixes #4175 2016-08-15 13:24:16 +03:00
Martin Bornhold
2f34f8271c vcs: Use a thread scoped cache invalidation context to cache repository objects.
Without this change the cache is on a process scope. If running with multiple
threads this leads to sharing the cached object between threads. This will cause
exceptions if multiple threads are trying to access the same curl object.
Even worse it allows multiple threads to operate on the same repository object
concurrently.
2016-07-14 09:07:19 +02:00
Daniel Dourvaris
391379c4ab user: hash email key for User.get_by_email() fixes #4132 2016-07-28 09:19:07 +03:00
Martin Bornhold
0c7d0871b5 models: Use the new get_vcs_instance method to retrieve vcs instances. 2016-07-21 09:04:14 +02:00
Marcin Kuzminski
169a7c5cf1 integrations-db: don't use default contructor to be consisten with other modules
usage.
2016-07-14 11:23:46 +02:00
Daniel Dourvaris
efc1db0e2e integrations: use mutable json settings using json alchemy MutableObject. 2016-07-14 11:23:28 +02:00
Marcin Kuzminski
990143eae0 tokens: auth-token is not only for git/hg but also for svn.
Changed some docstrings to indicate this.
2016-07-13 12:34:17 +02:00
Daniel Dourvaris
d7cd766a07 integrations: fix bug where deleting a repo did not delete integrations 2016-07-12 11:14:40 +02:00
Daniel Dourvaris
7ff09cda95 integrations: add integration support
* added db migration for integration table, version 55
* added integrations views/templates/models
* added slack integration
* added h.url.current() support for pyramid only contexts
* added issues extractor for commit messages
* renamed repo-deleted/repo-created to repo-delete/repo-create
* removed marshmallow
* added serialization for events to static dicts of data
* added lazy_ugettext for translation of start time string
2016-07-10 06:43:20 +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
a9d0598239 scm: change update_commit_cache to check revision as well 2016-07-04 16:13:53 +03:00
Marcin Kuzminski
772de504bb encryption: Implement a slightly improved AesCipher encryption.
This addresses issues from #4036

- we use a backward compatible cipher that can implement HMAC signature
- with HMAC signature we can detected mangled data or wrong secret key
- this allows more explicit errors than UnicodeDecode errors
- added a new .ini values that controls strict mode
2016-06-27 19:26:03 +02:00
Marcin Kuzminski
0e916f338a user: indicate missing super admin or default as fatal errors. 2016-06-28 01:25:33 +02:00
Marcin Kuzminski
16a626ce44 refactor: renamed get_first_admin to get_first_super_admin which
reflects better what kind of user we're fetching.
2016-06-28 01:24:24 +02:00
Marcin Kuzminski
56c24af7bc caches: use optional identity cache options on get_by_repo_name and get_by_username
methods. Disabled by now.
2016-06-22 20:38:44 +02:00
Daniel Dourvaris
f43669f817 model: log exception if multiple repos rather than hard error 2016-06-22 18:29:41 +03:00
Daniel Dourvaris
114e4097ca model: make sure only 1 repo in session when get_by_repo_name 2016-06-22 18:18:59 +03:00
Daniel Dourvaris
6f322f3be9 speedup: join repo on fork/user/group by default 2016-06-22 14:58:05 +03:00
Daniel Dourvaris
c00cc3ef14 speedup: check identity_map when getting by repo name 2016-06-22 13:38:11 +03:00
Daniel Dourvaris
450bb8142e speedup: check local session for repo by repo name first 2016-06-22 12:53:43 +03:00
Johannes Bornhold
e756b3e5f4 hg: Log original exception when doing the merge with rebase. 2016-06-09 12:04:59 +02: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