Commit Graph
24890 Commits
Author SHA1 Message Date
Douglas Barbosa Alexandre 9e342fb00a Destroy all related todos when removing a project 2016-03-09 11:06:58 -03:00
Rémy Coutable 500337c4b2 Merge branch 'iurisilvio/gitlab-ce-bitbucket_closed' into 'master'
Fix bug where Bitbucket 'closed' issues were imported as 'opened'

_Originally opened at !2930 by @iurisilvio._

- - -

Bitbucket has an undocumented status `closed`.

https://confluence.atlassian.com/bitbucket/issues-resource-296095191.html

Related to https://gitlab.com/gitlab-com/support-forum/issues/559

See merge request !2973
2016-03-09 12:54:52 +00:00
Yorick Peterse 2af9326c34 Merge branch 'update-db-schema' into 'master'
See merge request !3136
2016-03-09 12:53:55 +00:00
Yorick Peterse c666441d40 Added main_language to the schema
This wasn't included in gitlab-org/gitlab-ce!3000.
2016-03-09 12:35:24 +01:00
Achilleas Pipinellis 0ab52373c3 Merge branch 'fix/upgrader-docs' into 'master'
Fix master branch link to upgrader.md



See merge request !2967
2016-03-09 09:54:13 +00:00
Dmitriy Zaporozhets b0b72c3bd4 Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce 2016-03-09 10:13:20 +01:00
Dmitriy Zaporozhets 0f14980383 Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq 2016-03-09 10:13:09 +01:00
Dmitriy Zaporozhets 68f1535ab6 Merge branch 'rs-traits-are-good' into 'master'
Make better use of the `visibility_level` factory traits



See merge request !3131
2016-03-09 09:12:26 +00:00
Dmitriy Zaporozhets bc14d81af0 Merge branch 'rs-snippets-dont-expire' into 'master'
Remove `Snippet#expires_at`

This was removed from the interface in
https://github.com/gitlabhq/gitlabhq/pull/6027 but its implementation
lingered around for two years.

See merge request !3103
2016-03-09 09:02:17 +00:00
Dmitriy Zaporozhets c674ffe0e0 Merge branch 'improve-archived-projects' 2016-03-09 09:51:59 +01:00
Jonas Friedmann 0853628cbf Fix URL to upgrader guide 2016-03-09 08:26:39 +01:00
Robert Speicher b900304c38 Make better use of the visibility_level factory traits 2016-03-08 16:40:45 -05:00
Robert Speicher 7000e76a01 Simplify the various Snippet factories 2016-03-08 16:40:27 -05:00
Robert Speicher e8cd04e831 Merge branch 'branch-tag-count-methods' into 'master'
Use dedicated methods for counting branches and tags

This started out as "Lets add two methods to count and cache some data" and ended up in a clean-up/fix of some existing code. The two problems were:

1. Different code was used for adding/removing branches/tags via Git and the UI
2. The code used for the UI didn't have any RSpec tests, and I couldn't find any Spinach tests either (though grepping for Spinach stuff is hard)

This MR addresses the following:

1. `Repository#branch_count` and `Repository#tag_count` are used to count and cache the number of branches/tags, these methods are then used on the branches/commits/tags pages.
2. `Repository#add_tag`, `Repository#add_branch`, `Repository#rm_tag` and `Repository#rm_branch` now all the appropriate before/after hook methods instead of calling a random single cache expiration method. This ensures caches are properly flushed when adding/removing tags/branches via the UI.
3. RSpec tests were added for the above methods.

This fixes gitlab-org/gitlab-ce#13459

See merge request !3128
2016-03-08 20:11:40 +00:00
Robert Speicher fe9a445faa Merge branch 'evuez/gitlab-ce-add-info-user-api' into 'master'
Expose User#last_sign_in_at and User#confirmed_at for admins

Closes #840

See merge request !3090
2016-03-08 17:30:10 +00:00
Robert Speicher 24663e8095 Merge branch 'improve/3102-memoize-group-instance-variable-in-admin-groups-controller' into 'master'
Remove instance variable `@group` multiple assignment

See merge request !3127
2016-03-08 17:27:51 +00:00
Robert Speicher c3eb245874 Merge branch 'remove-duplicate-cache_store-in-test-config' into 'master'
Remove duplicate 'cache_store' configuration in test environment

[ci skip]

See merge request !3061
2016-03-08 17:26:47 +00:00
Yorick Peterse 590e1b4b21 Call after_create_branch in Repository#add_branch
This ensures the right caches are flushed when adding a branch via the
UI, instead of only flushing this one random cache.
2016-03-08 18:19:40 +01:00
Yorick Peterse 4ec035b488 Call the right hooks in Repository#add_tag
This ensures Repository#add_tag calls Repository#before_push_tag instead
of just 1 random cache expiration method.
2016-03-08 18:19:40 +01:00
Yorick Peterse 6857b92fab Added specs for Repository#rm_tag 2016-03-08 18:19:40 +01:00
Yorick Peterse 177025b5dd Call the right hooks when removing branches
This ensures that Repository#rm_branch calls
before_remove_branch/after_remove_branch instead of just 1 random cache
expiration method.
2016-03-08 18:19:40 +01:00
Yorick Peterse cb5a5ba095 Cache & flush tag/branch counts
The methods used for this are Repository#tag_count and
Repository#branch_count which cache their output in Redis as well as
memoizing it in an instance variable. Both methods have a corresponding
methods/hooks to flush the caches at the right time.
2016-03-08 18:19:40 +01:00
Robert Speicher f2209c98b2 Merge branch 'sql-guide' into 'master'
Added basic SQL guidelines

This is mostly based on the various changes I've made over the past few months.

See merge request !3091
2016-03-08 17:18:19 +00:00
Achilleas Pipinellis 149a52b10f Merge branch 'patch-1' into 'master'
update slack instructions

the previous instructions no longer apply, there is no "Incoming WebHooks" row anymore.

luckily there exists direct link to web hooks, so the previous steps aren't even neccessary

See merge request !3052
2016-03-08 16:52:20 +00:00
Achilleas Pipinellis c74b609874 Merge branch 'patch-2' into 'master'
add link to web hooks docs

Add link to web hooks docs on custom hooks docs page.

See merge request !3082
2016-03-08 15:54:13 +00:00
Yatish MehtaandRémy Coutable 6ac68d8cb0 Remove instance variable @group multiple assignment 2016-03-08 16:48:00 +01:00
Yorick Peterse 36730e8e63 Merge branch 'master' into 'master'
adds language names to projects list [image attached]

See merge request !3000
2016-03-08 14:52:53 +00:00
Yorick Peterse 059df2256e Added basic SQL guidelines
[ci skip]
2016-03-08 11:28:50 +01:00
Achilleas Pipinellis a19a9faba9 Merge branch 'doc/ci-api-update' into 'master'
Deprecated GitLab CI API clean up

Deprecated GitLab CI API clean up.

The intent here is to clean up deprecated GitLab CI documentation leaving only relevant information.
Since we merged `Ci::Project` to `Project` most of this documentation is outdated.

Closes #13610 

See merge request !3003
2016-03-08 09:35:10 +00:00
Achilleas Pipinellis 75a67ac0c7 Merge branch 'bundle_clean' into 'master'
add bundle clean to upgrade docs

This MR adds a bundle clean after installing new gems. Bundle clean removes old, not needed gems to keep the system clean.

See merge request !2809
2016-03-08 06:22:23 +00:00
Achilleas Pipinellis 015d7eeae6 Merge branch 'doc-troubleshooting' into 'master'
Added Troubleshooting information for most used services.

This replaces the changes started at gitlab-com/www-gitlab-com!1603

I'd like to add similar troubleshooting information for EE only services, but that needs to happen on a different MR on the EE side. Probably after this one gets merged.

cc @ernstvn @dblessing @balameb @cabargas @kelvinmutuma 

See merge request !3080
2016-03-08 06:14:42 +00:00
Achilleas Pipinellis dc473964e0 Merge branch 'rs-initial-setup-docs' into 'master'
Document changes to the initial admin password

Addresses https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3068#note_4117550

[ci skip]

See merge request !3120
2016-03-08 06:12:50 +00:00
Robert Speicher 9568b4b4f7 Document changes to the initial admin password
[ci skip]
2016-03-07 21:00:53 -05:00
Douwe Maan 2db00dd5e0 Merge branch 'rs-redundant-features' into 'master'
Remove redundant integration tests

These three tests were essentially checking that adding a note to
something updated its `noteable`'s `updated_at` attribute.

This is well-tested Rails behavior and we shouldn't feel the need to
write an integration test to verify it. At most we should be ensuring
that the association definition adds the `touch: true` option, which we
now do in Note's unit test.

See merge request !3117
2016-03-07 22:05:50 +00:00
Douwe Maan afb8d76f3c Merge branch 'cache-raw-2' into 'master'
Set cache headers for raw blobs

This changes allows browsers and (in the case of public projects)
proxy caches to cache raw Git blob responses.

See merge request !3113
2016-03-07 22:05:15 +00:00
Patricio Cano 406f4a993a Fixed headers for anchors
[ci skip]
2016-03-07 16:29:22 -05:00
tiagonbotelhoandYorick Peterse 4929592458 adds test for git push service for updating the language of the project 2016-03-07 21:59:39 +01:00
tiagonbotelhoandYorick Peterse 4e8a534397 add my mr to changelog 2016-03-07 21:59:39 +01:00
tiagonbotelhoandYorick Peterse 96c0255107 moves the main_language update logic to git push service 2016-03-07 21:59:39 +01:00
tiagonbotelhoandYorick Peterse 8039bbf7f8 removes the test file of the project spec for invalid method 2016-03-07 21:59:39 +01:00
tiagonbotelhoandYorick Peterse 337cb45226 removes automatic setting of main_language to project for it to set a main language you have now to make a commit to the project 2016-03-07 21:59:39 +01:00
tiagonbotelhoandYorick Peterse 68d6f5bce1 fixes typo 2016-03-07 21:59:39 +01:00
tiagonbotelhoandYorick Peterse 93fb4ce2c5 removes redundant self 2016-03-07 21:59:39 +01:00
tiagonbotelhoandYorick Peterse 4b3f3167a4 implements test to simulate empty repo 2016-03-07 21:59:39 +01:00
tiagonbotelhoandYorick Peterse d72e6ad2a1 adds tests and fixes some broken code to main language mr 2016-03-07 21:59:39 +01:00
tiagonbotelhoandYorick Peterse c2c5572e22 adds swp and swo to gitignore and improves migration for project main_language 2016-03-07 21:59:39 +01:00
tiagonbotelhoandYorick Peterse dc31aff3da removes unused methods that I forgot 2016-03-07 21:59:39 +01:00
tiagonbotelhoandYorick Peterse a14b98f858 implements project languages saving them onto the database 2016-03-07 21:59:39 +01:00
tiagonbotelhoandYorick Peterse d9e646a796 moves method to repository model 2016-03-07 21:59:39 +01:00
tiagonbotelhoandYorick Peterse 85de3f6955 changes if ! to unless and now asks for language instead of languages 2016-03-07 21:59:39 +01:00