Commit graph

377 commits

Author SHA1 Message Date
Marcin Kuzminski
b03cb81208 user-groups: expose public profile link to user group in membership view 2018-06-15 10:13:29 +02:00
Marcin Kuzminski
b058fefee1 audit-logs: use auth_user in few places to track action IP. 2018-06-12 18:29:54 +02:00
Marcin Kuzminski
9335656019 pull-requests: fix problem with long DB transaction and row-locking.
fixes #5470
2018-06-11 15:35:54 +02:00
Marcin Kuzminski
88537dc3fa validators: fix problems with new mercurial url validation. 2018-06-05 16:09:55 +02:00
Marcin Kuzminski
71b80f5eeb pull-reqeusts: added option to force-refresh merge workspace in case of problems. 2018-06-05 10:17:16 +02:00
Marcin Kuzminski
b59e2e9485 db: adjust beaker_cache column size. If this column is created via Beaker itself it uses
BLOB for mysql, this can cause some issues with cache sizes not fitting.

We move the creation into our script, then it uses proper size.
2018-04-18 16:32:20 +02:00
Marcin Kuzminski
1a717208f4 audit-logs: store properly IP and user for certain comments types.
- before mostly IP could be missing from audit log data.
2018-04-26 00:59:07 +02:00
Marcin Kuzminski
8d985db7e5 diff-cache: remove diff cache dir on repository removal. 2018-04-18 17:19:59 +02:00
Marcin Kuzminski
aad1f972c6 diff-cache: show safe relative path where cached diffs are stored. 2018-04-18 17:19:40 +02:00
Marcin Kuzminski
ea287e0d07 diff-caches: show count and size in caches view per repository. 2018-04-18 16:52:40 +02:00
Marcin Kuzminski
a18e6c482e api: added audit logs for user-group related calls.
- fixes #5461
2018-04-18 00:49:00 +02:00
Bartłomiej Wołyńczyk
4637dd151e caching: add option to cache diffs for commits and pull requests.
- new option for vcs settings to enable caching of diffs and commits
- enables auditing of PR after closing it, and removing commits from source repo
- speed up for large PR upto 20x
- reduced memory usage
2018-04-17 18:46:20 +02:00
Marcin Kuzminski
bdf5f0afb6 svn: enable hooks and integration framework execution.
- This change will allow SVN to execute rhodecode integration framework
via executing the builting hooks.
- uses txn_id for svn to provide metadata required via Apache
- Interception of SVN transaction is required to use temporary stores for metadata
- hooks are now part of vcsserver where the install/control logic is stored
2018-04-06 12:44:01 +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
Marcin Kuzminski
3949688b3d api: enable setting sync flag for user groups on create/edit. 2018-03-28 13:27:21 +02:00
Marcin Kuzminski
04ad3b47be logs: fix leaking of tokens to logging. Fixes #5452 2018-03-22 17:51:42 +01:00
Marcin Kuzminski
e5db2ac1d2 visual-settings: fill in default clone/ssh clone urls if they aren't provided.
- people tend to not know what should be the proper value. Let's fill in the defaults for them
2018-02-20 15:10:01 +01: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
0fdbc4a78f events: expose shadow repo build url. 2018-02-15 23:24:23 +01:00
Marcin Kuzminski
718c2f6c44 reviewers: fixed logic with wildcard match for branches. 2018-02-15 23:52:31 +01:00
Marcin Kuzminski
5f25ae601e repositories: allow properly updating repository push url. 2018-02-12 14:14:33 +01:00
Marcin Kuzminski
803051c06b scm-model: fix the reference to the proper default url used for pushing 2018-02-12 14:08:36 +01:00
Marcin Kuzminski
c2c94c7f57 repositories: allow storing push url for automation. 2018-02-11 20:51:56 +01:00
Marcin Kuzminski
8e1c8a63ca models: drop unused is_valid method. 2018-02-01 17:58:57 +01:00
Marcin Kuzminski
ada388ee9a permissions: fix problem with permissions reset to None for cases when user
group had same ID as default user.
2018-01-30 13:52:50 +01:00
Marcin Kuzminski
9c22bde88e ui: allow selecting and specifing ssh clone url.
- fixes #5340
2018-01-25 14:20:08 +01:00
Marcin Kuzminski
ce187718c6 db-models: fix missing JsonRaw import. 2018-01-22 19:08:16 +01:00
Marcin Kuzminski
93a93bbb19 scm: added push options for Mercurial and Git to allow remote repository sync. 2018-01-22 18:15:51 +01:00
Marcin Kuzminski
7a8360b80a dashboard: show date of commit inside the tooltip. 2018-01-22 12:43:03 +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 Lulek
15fff6dafd repository: fixed a bug when scoped token was attached to repository, admins were unable to remove that repository. 2018-01-19 13:20:42 +01:00
Marcin Kuzminski
a923fc7303 pull-requests: use proper validation of pull request title to prevent from bad errors. 2018-01-18 15:12:17 +01:00
Marcin Kuzminski
f6063fb031 pull-requests: don't select first commit in case we don't get default branch. Loading
compare from commit 0 to something selected is very heavy to compute. Instead force
user to select the ref manually. ref #5414
2018-01-15 21:08:23 +01:00
Marcin Kuzminski
90c9124213 events: properly refresh comment object to load it's relationship.
This prevents from issues of reading associated statuses of comment during
a partial commit (using Session().flush)

- Fixes #5412
2018-01-06 12:08:49 +01:00
Marcin Kuzminski
d39b41b81a pull-requests: add link to switch base based on the target. 2018-01-03 21:31:43 +01:00
Marcin Kuzminski
88ab57eb93 integrations: skip executing EE integrations activated from EE but not present in downgrade at CE. 2017-12-19 00:18:28 +01:00
Marcin Kuzminski
9bf25f60d0 issue-tracker: fix prefix to be escaped as well as the url pattern. 2017-12-11 22:10:23 +01:00
Marcin Kuzminski
19486663e6 issue-trackers: bleach.clean the url entry to avoid JS injections. 2017-12-07 13:04:16 +01:00
Marcin Kuzminski
90422773df pull-request: verify resolve TODO comment needs to be bound to the same PR as we're calling 2017-12-06 20:06:28 +01:00
Marcin Kuzminski
bd6d47475c api: add consistent permissions_summary data for both user and user_groups that expose
the summary of permissions for each object.

- deprecates the 'permissions' data key for get_user
- adds a consistent way of fetching permissions summary for both objects.
2017-12-05 23:12:06 +01:00
Marcin Kuzminski
4eb2164498 default-reviewers: changes for source/target branch distinction and new rule name.
- since reasons is bigger now we'll hide those and toggle on view.
2017-12-05 00:09:44 +01:00
Marcin Kuzminski
eb371210f5 update: sanitize version, and check for version parsing exc 2017-12-04 21:19:29 +01:00
Marcin Kuzminski
5b740dd3fb tasks: added a periodic task for repo maintenance. Fixes #5202 2017-12-04 19:24:48 +01:00
Marcin Kuzminski
a368564cba update: add new async task to check for updates via scheduler.
- save the data into DB for later evaluation
- show in system info that we know the system is outdated
2017-12-04 19:23:55 +01:00
Marcin Kuzminski
52d5654850 users: allow caching of active users count. 2017-12-04 13:16:50 +01:00
Marcin Kuzminski
f9f80e3ff9 feed-token, user, performance: lazy load the feed_token. We only need it for
scope of web requests. For vcs operations, we don't need it.

- 20ms to load this can save up much time for SVN requests.
2017-12-04 12:14:01 +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
21f81f4cac repo-model: fixed permalink generation for repositories. 2017-11-30 14:39:52 +01:00
Marcin Kuzminski
587dee26ef forms: added a codemirror form widget. 2017-11-29 14:39:43 +01:00