Dmitriy Zaporozhets
d575ee3e90
Improve branch deletion via API
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-05-23 15:34:02 +03:00
Dmitriy Zaporozhets
9e6466c784
Merge branch 'api-remove-branch' into 'master'
...
New rules for protected branches
This MR change permissions logic for branch removal. Changes listed below:
Before
* developer can remove branch with terminal but not in UI
* masters can remove any branch with UI even protected one
* force-push to protected branch is not allowed but remove is allowed
After
* none can force push or remove protected branches
* developers and masters can remove normal branches with console and UI
2014-05-23 06:06:22 +00:00
Dmitriy Zaporozhets
36cac35b24
Dont allow remove of protected branch
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-05-22 15:38:47 +03:00
Dmitriy Zaporozhets
a9d60b3b14
Api call to remove branch
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-05-22 14:39:50 +03:00
Marin Jankovski
b019c06195
Required shell version is now 1.9.4.
2014-05-22 11:01:01 +02:00
Jacob Vosmaer
02b85fd236
Check user access status in API for current_user
2014-05-15 10:22:59 +02:00
Jacob Vosmaer
34fd557055
Move user access check to Gitlab::UserAccess
2014-05-15 10:22:59 +02:00
Jacob Vosmaer
be1120e968
Improve ad_disabled method name
2014-05-14 19:13:06 +02:00
Jacob Vosmaer
a966f72224
Document the Active Directory magic numbers
2014-05-14 19:08:42 +02:00
Jacob Vosmaer
797e807249
Use LDAP::Access.open to reuse the LDAP connection
2014-05-14 19:04:00 +02:00
Jacob Vosmaer
11dba4cee7
Fix syntax error in AD disabled user filter
2014-05-14 18:54:05 +02:00
Jacob Vosmaer
a6e4153878
Check for the AD disabled flag in Access#allowed?
2014-05-14 18:32:40 +02:00
Jacob Vosmaer
a754f0b220
Add LDAP::Person#ad_disabled?
...
Check the bit for disabled Active Directory users. The filter is based
on http://ctogonewild.com/2009/09/03/bitmask-searches-in-ldap/ .
2014-05-14 18:26:58 +02:00
Jacob Vosmaer
982d4d51e8
Backport Adapter#dn_matches_filter? from EE
2014-05-14 18:11:14 +02:00
Jacob Vosmaer
f4bca105d1
Backport Adapter#ldap_search from EE
2014-05-14 18:10:43 +02:00
Marin Jankovski
636ec6d3a0
Update warnings about relative url support.
2014-05-13 17:59:08 +02:00
Marin Jankovski and Dmitriy Zaporozhets
6b04a5f910
Add support for Jira ticket mentions in format JIRA-123.
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
CHANGELOG-EE
2014-05-13 15:33:38 +03:00
Dmitriy Zaporozhets
1f1c59b61d
Merge pull request #6778 from dblessing/feature/mr_labels
...
Merge Request Labels
2014-05-13 14:43:46 +03:00
Drew Blessing
5f25cdfe19
Implement Merge Request Labels
2014-05-13 06:41:36 -05:00
Dmitriy Zaporozhets
0c62170865
Merge branch 'api-mr-merge' into 'master'
...
Accept merge request API
This MR adds new endpoint `PUT /projects/:id/merge_request/:merge_request_id/merge`. After this change you can merge branches using API.
Fixes internal issue #1166
2014-05-13 11:27:19 +00:00
Dmitriy Zaporozhets
e0fdb4262a
Merge pull request #6823 from milgner/api_expose_project_archived_status
...
Expose archive status of projects in API
2014-05-13 12:24:44 +03:00
Dmitriy Zaporozhets
ab032256da
Add some tests for merge API
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-05-13 11:01:40 +03:00
Dmitriy Zaporozhets
5880d7df62
Docs for merge api
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-05-12 18:01:22 +03:00
Dmitriy Zaporozhets
0c73e66643
Specify error codes for merge api
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-05-12 17:51:43 +03:00
Dmitriy Zaporozhets
fe6d392236
Draft API method for merge MR
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-05-12 16:34:41 +03:00
Julien Pivotto
566badbaee
Use uid as username when creating user with LDAP
...
Without that commit, each user created by a LDAP login would have the
first part of their email address as nickname.
This is not useful for LDAP, where a uid attribute is already set.
2014-05-12 07:30:35 +02:00
Jacob Vosmaer
0f29ccffd2
Backup wiki repo even if the main repo is empty
...
This fixes a bug where wiki repositories for projects with an empty main
repository would not get backed up.
2014-05-08 22:50:48 +02:00
Dmitriy Zaporozhets
32875f9aaf
Merge pull request #6937 from chamill/master
...
Provide fallback for missing `name` value.
2014-05-08 21:49:59 +03:00
Dmitriy Zaporozhets
cb20ab0201
Merge pull request #6929 from asedge/fix_api_branches_with_periods
...
Add fix for API when branch names have periods in them. Relates to issu...
2014-05-08 21:22:13 +03:00
Jacob Vosmaer
da347d1bb4
Apply the locale encoding to tar --version
...
Fixes a bug with non-UTF8 locales introduced by
2b816075dc .
2014-05-08 18:23:44 +02:00
C. Morgan Hamill
0456101117
Clean up conditional statement in name method.
...
Reverse the conditional order to avoid awkward `if !` construction.
2014-05-08 09:23:17 -04:00
Sean Edge
da9b009d31
Add fix for API when branch names have periods in them. Relates to issue #6128 ( https://github.com/gitlabhq/gitlabhq/issues/6128 ).
2014-05-08 07:06:47 -04:00
C. Morgan Hamill
a45f7262f9
Clean up of name fallback code.
...
Don't use `unless` for the conditional.
Avoid double-quotes where possible.
2014-05-07 16:41:35 -04:00
C. Morgan Hamill
9e805b7754
Provide fallback for missing name value.
...
If `auth.info.name` is `nil`, then use `auth.info.first_name + auth.info.last_name`
as the value of `name`.
2014-05-07 16:33:54 -04:00
Dmitriy Zaporozhets
4fea8afc4b
Add CompareAction class for collecting commits and diffs using satellites
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-05-07 16:14:24 +03:00
Dmitriy Zaporozhets
fd7a221cca
Change gitlab:test task
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-05-06 09:07:15 +03:00
Dmitriy Zaporozhets
cac916d974
Clean working directory in satellite
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-05-05 14:21:00 +03:00
Dmitriy Zaporozhets
87c397f577
More fixes to gitlab:shell:install
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-05-02 14:13:45 +03:00
Dmitriy Zaporozhets
dd47f9532f
Fix gitlab-shell setup rake task
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-05-02 13:46:32 +03:00
Dmitriy Zaporozhets
85b5d203ac
Merge branch 'improve-gitlab-shell-installation' of https://github.com/pkgr/gitlabhq into pkgr-improve-gitlab-shell-installation
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
doc/install/installation.md
2014-05-02 13:30:26 +03:00
Dmitriy Zaporozhets
c51ac0484f
Merge pull request #5962 from skv-headless/editing-preview
...
editing preview
2014-04-29 10:00:29 +03:00
Jacob Vosmaer
b4b6447b55
Merge pull request #6857 from bytheway/master
...
Add scoping to ldap lookup when only dn given
2014-04-25 10:48:28 +02:00
Dmitriy Zaporozhets
2eaca54536
Add rake setup alias for gitlab:setup
2014-04-24 19:53:00 +02:00
Dmitriy Zaporozhets
2a99f18478
Merge branch 'mysql_field_limits' into 'master'
...
Adjust MySQL limits for existing installations
2014-04-24 17:37:38 +00:00
Ben Bytheway
de794b6a77
Add scoping to ldap lookup when only dn given
2014-04-23 21:00:56 -06:00
Jacob Vosmaer
b810ef1099
Merge branch 'bump_gitlab_shell' into 'master'
...
Bump gitlab shell
2014-04-23 09:20:33 +00:00
Jacob Vosmaer
77e565d347
Bump the required gitlab-shell version to 1.9.3
2014-04-23 11:13:21 +02:00
Jacob Vosmaer
cd61239540
Move the adapter check to the migration
2014-04-23 11:08:51 +02:00
Jacob Vosmaer
43e77099d8
Adjust MySQL limits for existing installations
2014-04-23 11:07:36 +02:00
Marcus Ilgner
b5a73b1f90
Expose archive status of projects in API
...
That way clients like Gitlab CI can decide to show or hide projects
based on that information
2014-04-18 17:55:06 +02:00