Valery Sizov
|
f194f56538
|
fix tests
|
2015-11-16 16:54:13 +02:00 |
|
Robert Speicher
|
ce5bc4f8ca
|
RSpec 3 updates for EE
|
2015-07-02 12:35:49 -04:00 |
|
Douwe Maan
|
844cca4a1e
|
Add Git hook to validate maximum file size.
|
2015-06-09 10:23:38 +02:00 |
|
Dmitriy Zaporozhets
|
1af8b1e4f8
|
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ce-to-ee
Conflicts:
app/views/help/index.html.haml
lib/gitlab/git_access.rb
public/500.html
public/502.html
|
2015-05-15 13:29:58 +03:00 |
|
Douwe Maan
|
c5e4b443ff
|
Fix GitAccess.
|
2015-05-13 09:46:22 +02:00 |
|
Douwe Maan
|
fbb011be38
|
Merge branch 'license' into 'master'
Allow license to be uploaded and enforce its validity.
Addresses #274.
Still a work in progress, there are no tests yet, some things need extra validation or prettier error messages, and we're not doing anything to enforce active user count yet. Still, the flow stands! Let me know what you think :)
- [x] Check active user count at moment of upload
- [x] Prettier validation / error message when license is invalid
- [x] Prettier error when public key is invalid
- [x] Tests
- [x] Work on copy
These will go into separate MRs as they require more discussion:
- Check historic active user count over past year
- Add application setting to disallow creating/activating new user when limit is reached
-----
No license:

Also shown when pushing code:

The "Upload a new license in the admin area" part is only for admins, regular users will see "Ask an admin to upload a new license".
Upload page in admin area:

License details in admin area:

Notice of a license that will expire: Also notice the license history at the bottom.

Notice of an expired license:

cc @dzaporozhets @sytse
See merge request !383
|
2015-05-07 18:54:47 +00:00 |
|
Douwe Maan
|
4dfaed34b2
|
Skip git hooks commit validation when pushing new tag.
|
2015-05-05 15:44:36 +02:00 |
|
Douwe Maan
|
3a6b9ad85e
|
Test license blocking changes.
|
2015-05-05 13:20:40 +02:00 |
|
Dmitriy Zaporozhets
|
3840549566
|
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq
Conflicts:
app/assets/javascripts/dispatcher.js.coffee
features/admin/settings.feature
features/steps/admin/settings.rb
features/steps/user.rb
features/user.feature
lib/gitlab/git_access.rb
|
2015-03-25 09:16:09 -07:00 |
|
Douwe Maan
|
4830b2be5e
|
Refactor GitAccess to use instance variables.
|
2015-03-24 14:11:48 +01:00 |
|
Marin Jankovski
|
1d11e28b6e
|
Update spec per rspec 2.99 requirements.
|
2015-02-16 13:11:39 -08:00 |
|
Marin Jankovski
|
7d9ef1124e
|
Merge remote-tracking branch 'ce/master' into merge_ce
Conflicts:
README.md
app/assets/javascripts/project.js.coffee
app/models/concerns/mentionable.rb
app/models/project.rb
app/models/project_services/jira_service.rb
app/models/service.rb
app/models/user.rb
app/services/git_push_service.rb
config/initializers/1_settings.rb
config/routes.rb
db/schema.rb
doc/integration/README.md
doc/integration/external-issue-tracker.md
doc/integration/github.md
spec/controllers/import/github_controller_spec.rb
spec/helpers/merge_requests_helper.rb
spec/lib/gitlab/upgrader_spec.rb
spec/models/note_spec.rb
spec/requests/api/groups_spec.rb
spec/services/git_push_service_spec.rb
|
2015-02-16 11:50:30 -08:00 |
|
Jeroen van Baarsen
|
0c4a70a306
|
Updated rspec to rspec 3.x syntax
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
|
2015-02-12 19:17:35 +01:00 |
|
Dmitriy Zaporozhets
|
2bfd4f4438
|
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq
Conflicts:
VERSION
config/gitlab.yml.example
config/initializers/1_settings.rb
lib/api/entities.rb
lib/api/groups.rb
|
2015-01-21 17:05:31 -08:00 |
|
Valery Sizov
|
ab7a79bf3b
|
developer can push to protected branches
|
2015-01-20 17:34:23 -08:00 |
|
Dmitriy Zaporozhets
|
3a9682a3d7
|
Merge dev.gitlab.org:gitlab/gitlabhq into upstream-ce
Conflicts:
VERSION
app/helpers/selects_helper.rb
app/models/project.rb
app/views/devise/sessions/new.html.haml
app/views/groups/_settings_nav.html.haml
app/views/layouts/nav/_admin.html.haml
app/views/profiles/keys/_key.html.haml
app/views/profiles/keys/index.html.haml
app/views/profiles/keys/show.html.haml
app/views/projects/merge_requests/show/_mr_accept.html.haml
config/routes.rb
db/schema.rb
doc/api/projects.md
features/steps/shared/paths.rb
|
2015-01-08 20:37:35 -08:00 |
|
Marin Jankovski
|
84af3ceb9b
|
Add spec for developers can push to protected branches.
|
2014-12-26 11:41:04 +01:00 |
|
Dmitriy Zaporozhets
|
3bd66989de
|
Merge branch 'master' into ee-master
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Conflicts:
Gemfile
Gemfile.lock
VERSION
app/models/project.rb
app/models/user.rb
db/schema.rb
doc/install/installation.md
doc/update/6.x-or-7.x-to-7.5.md
doc/update/7.4-to-7.5.md
lib/gitlab/git_access.rb
spec/factories.rb
spec/lib/gitlab/git_access_spec.rb
|
2014-12-05 13:28:32 +02:00 |
|
Dmitriy Zaporozhets
|
06b7907c2a
|
Fix deploy keys permission check in internal api
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
|
2014-12-01 16:25:10 +02:00 |
|
Valery Sizov
|
53bf52f191
|
Better message for failed pushes because of git hooks
Conflicts:
lib/gitlab/git_access.rb
spec/lib/gitlab/git_access_spec.rb
|
2014-11-18 13:10:07 +02:00 |
|
Valery Sizov
|
3058059c0a
|
Better message for failed pushes because of git hooks
|
2014-11-17 12:34:37 +02:00 |
|
Valery Sizov
|
3fcd75a911
|
Merge CE master into EE master
Conflicts:
Gemfile
VERSION
app/assets/javascripts/project.js.coffee
app/assets/javascripts/users_select.js.coffee
app/controllers/projects/services_controller.rb
app/models/project.rb
app/views/groups/edit.html.haml
features/project/service.feature
features/steps/project/services.rb
spec/models/concerns/mentionable_spec.rb
|
2014-11-13 17:05:12 +02:00 |
|
Valery Sizov
|
b2e48f27a5
|
added some specs for gitlab_access class
|
2014-11-04 16:40:47 +02:00 |
|
Ciro Santilli
|
71ed0ab069
|
Fix push not allowed to protected branch if
commit starts with 7 zeros.
|
2014-11-03 20:37:47 +01:00 |
|
Dmitriy Zaporozhets
|
15ba6ea105
|
Refactor Gitlab::GitAccess tests
|
2014-09-24 12:04:40 +03:00 |
|
Dmitriy Zaporozhets
|
3aa7132adc
|
Add GitAccess specs
|
2014-09-24 11:37:30 +03:00 |
|