Commit Graph

18287 Commits

Author SHA1 Message Date
karen Carias 9a7645c8a4 added note about labels in MR 2015-07-23 12:30:05 -07:00
Valery Sizov 7e262ebf15 Merge branch 'update_changelog1' into 'master'
Update changelog in master



See merge request !1036
2015-07-23 15:14:47 +00:00
Valery Sizov 2e5be9c994 update changelog 2015-07-23 15:13:47 +00:00
Valery Sizov 01d29ae661 update changelog1 2015-07-23 15:12:44 +00:00
Sytse Sijbrandij f6ba8c41e2 Clarify some things in monthly.md 2015-07-23 14:47:15 +00:00
Douwe Maan b7be08c515 Merge branch 'changes_for_gmail_inbox_actions' into 'master'
Changes for gmail inbox actions

Related to the ongoing efforts to get Gmail inbox actions for GitLab.com in #1517

Not using `mdash` would break the rendering of the html email by switching `Content-Transfer-Encoding` to `quoted-printable` for every email.

Removed the rake task and docs to prevent users from sending dummy emails which might cause application rejection.

See merge request !1024
2015-07-23 14:35:31 +00:00
Douwe Maan 70a3c165a9 Allow custom label to be set for authentication providers. 2015-07-23 15:20:12 +02:00
Valery Sizov 5dd4dea93b Merge branch 'remove-source-branch' into 'master'
Fix bug causing "Remove source-branch" option not to work for merge requests from the same project.

Fixes #2049.

See merge request !1025
2015-07-23 11:31:29 +00:00
Douwe Maan 0484ae7e6a Return true/false from AutoMergeService#merge! 2015-07-23 13:10:32 +02:00
mchristof 8279d93680 updated restore docs wrt backup location [ci skip]
Made sure to point out that the restore location can be overwritten by
an entry in the config.
2015-07-23 09:47:32 +01:00
Valery Sizov 8a539e58c8 Merge branch 'revert_even_cache' into 'master'
Revert cache for events

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/1014#note_1661322

See merge request !1027
2015-07-23 08:17:30 +00:00
Valery Sizov 4466f25dd5 revert cache for events 2015-07-23 10:47:39 +03:00
Valery Sizov db69c7325c Merge branch 'label_caching' into 'master'
Revert cache issue

It reverts 40e31e1db3

and fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/2048
and https://gitlab.com/gitlab-org/gitlab-ce/issues/2043

See merge request !1028
2015-07-23 07:45:37 +00:00
Robert Speicher 6ae806b1df Merge branch 'fix-link-to-2fa' into 'master'
Fix link to 2fa help page.  Closes #2055

See merge request !1026
2015-07-22 20:13:41 +00:00
Robert Speicher 33b802603f Merge branch 'migrate_session_expire_delay_unless_it_exists' into 'master'
Check if session_expire_delay column exists before adding the column.

Fixes #2052 

Fixes #1985

See merge request !1029
2015-07-22 19:19:12 +00:00
Stan Hu d51ebb7e86 Merge pull request #9472 from Leibniz137/indent_unfolded_code_1_char
Gitlab Issue 707: Indent unfolded code 1 character
2015-07-22 10:48:34 -07:00
Marin Jankovski 6e08e7aac4 Check if session_expire_delay column exists before adding the column. 2015-07-22 17:04:49 +02:00
Valery Sizov 6454bcbfa4 revert cache issue 2015-07-22 17:53:18 +03:00
Achilleas Pipinellis bde2173b63 Fix link to 2fa help page. Closes #2055 2015-07-22 17:03:38 +03:00
ngentile dbff6bc106 Gitlab Issue 707: Indent unfolded code 1 character 2015-07-22 09:58:17 -04:00
Douwe Maan 276ca427ea Fix Remove source-branch for MRs from same project 2015-07-22 14:07:41 +02:00
Valery Sizov 95d89e442a Merge branch 'revert_note_caching' into 'master'
revert caching of note text

This MR reverts the caching of note texts because what is rendered as a link in Markdown depends on the user's access to other projects and groups.

Until we find a solution that doesn't decrease security, let's not use the cache for this.

See discussion in gitlab-org/gitlab-ce!911 for more information.

/cc @DouweM @stanhu @vsizov

See merge request !1014
2015-07-22 10:51:37 +00:00
Marin Jankovski ca451365ab Remove docs and rake task for gmail actions to prevent problems with registration. 2015-07-22 11:46:08 +02:00
Marin Jankovski aee579eac2 Use mdash to prevent breaking html emails. 2015-07-22 11:31:15 +02:00
Douwe Maan 546731244a Merge branch 'rs-security-spec-speed' into 'master'
Speed up security feature specs

Before: `rspec spec/features/security/  0.12s user 0.04s system 0% cpu 3:38.00 total`

After: `rspec spec/features/security/  0.12s user 0.04s system 0% cpu 1:40.58 total`

The majority of the speed improvements is from two things:

1. Instead of using our standard `login_as` helper in the matchers, we take advantage
   of the `Warden::Test::Helpers` version of the method which bypasses the login form
   and logs the user in directly. We were essentially testing that filling out the login
   form works hundreds of times.
2. There were many tests that verified if a user of a certain access level
   (master, owner, reporter, guest) had access to a resource. Unfortunately we were
   creating every type of user for each test even though a test was only verifying one of
   them at a time. Now the tests only create the one user role they're testing.

See merge request !1023
2015-07-22 09:22:43 +00:00
Marin Jankovski 39dc39e335 Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce 2015-07-22 09:56:43 +02:00
Job van der Voort 806be101a9 Merge branch 'fork-project' into 'master'
Added Fork Project document to GitLab Basics



See merge request !1909
2015-07-22 07:38:23 +00:00
Robert Speicher b42422a7a9 Move spec/features/admin/security_spec to spec/features/security 2015-07-22 00:39:18 -04:00
Robert Speicher b24d5f13a5 Consolidate group access specs into one file 2015-07-22 00:01:17 -04:00
Robert Speicher 0d5cf111f3 Move custom matchers to their own files under spec/support/matchers 2015-07-22 00:01:17 -04:00
Robert Speicher ff8811c40b Remove redundant Profile access test cases
The user being created was no different than what `be_allowed_for` was
doing behind the scenes so we were essentially testing all user-level
accesses twice.
2015-07-22 00:01:17 -04:00
Robert Speicher 421b06508d Remove be_not_found_for matcher
It was only used in one test, and the test was kind of redundant.
2015-07-22 00:01:17 -04:00
Robert Speicher a2ecfdc585 Move access-related matchers to their own module 2015-07-22 00:01:17 -04:00
Stan Hu 6bf1beaf94 Merge branch 'fix-cache-clear-test-issue' into 'master'
Use project repository expire_cache to clear cache in test

Clearing the entire Redis cache in 643557d for the `branches_spec.rb` may be causing issues. Just clear what we need.

See merge request !1022
2015-07-22 02:11:14 +00:00
Robert Speicher 1fee24a361 Remove unused `be_valid_commit` matcher 2015-07-21 22:11:08 -04:00
Stan Hu 5aff5223d4 Clearing the entire Redis cache may be too expensive; just use
the repository expire_cache method
2015-07-21 19:09:33 -07:00
Stan Hu dc5504812d Merge branch 'fix-dup-changelog-entry' into 'master'
Remove 7.14 entry that was pushed to 7.13

See merge request !1020
2015-07-22 01:13:50 +00:00
Stan Hu 913e1b217e Remove 7.14 entry that was pushed to 7.13 2015-07-21 18:09:06 -07:00
Stan Hu f593b621e3 Merge branch 'fix-404-empty-repo' into 'master'
Fix 404 error in files view after deleting the last file in a repository

Here's the logic:

1. In `TreeController`, `require_non_empty_project` will prevent `show` from being called if the project is  empty. That means all calls to `show` will be guaranteed to have at least 1 commit.
2. If the ref name is not valid, then return a 404. This ensures that at least the controller is looking at a valid branch/tag/SHA ID.
3. This leaves a number of cases:

```
3a. Valid ref, valid directory
3b. Valid ref, valid filename
3c. Valid ref, invalid path
3d. Valid ref, no files
```

Case 3a: The tree will not be `empty?` and will pass through the whole function.

Case 3b: The tree will be `empty?` but the `blob_at` will resolve properly and trigger a redirect to the file.

Case 3c: In this case, a path is given. Return 404 if it cannot be resolved neither as a tree nor a blob.

Case 3d: In this case, no path is given. If the tree is empty, this means it's an empty branch and just fall through.

Example broken branch: https://gitlab.com/gitlab-org/gitlab-test/tree/empty-branch

Closes #1362

See merge request !1010
2015-07-22 01:01:03 +00:00
karen Carias afc8e92223 fixed image 2015-07-21 15:47:17 -07:00
karen Carias 42130a97e9 added Fork Project document 2015-07-21 15:45:12 -07:00
Hannes Rosenögger 815cf7f843 Merge branch 'fix-snippet-note-fullscreen' into 'master'
Fix full screen mode for snippet comments

ZenMode is now initialized for snippet pages.

Fixes #2036.

See merge request !1016
2015-07-21 22:07:01 +00:00
Stan Hu 643557dabc Fix 404 error in files view after deleting the last file in a repository
Closes #1362
2015-07-21 14:12:43 -07:00
Daniel Gerhardt 65bd871be7 Fix full screen mode for snippet comments
ZenMode is now initialized for snippet pages.

Fixes #2036.
2015-07-21 19:51:16 +02:00
Valery Sizov 8ba1a7a03f Merge branch 'document-2fa-backup' into 'master'
You need to store your DB encryption key

You can break two-factor authentication for existing users when
restoring a backup if you lost your DB encryption key.

See merge request !1015
2015-07-21 13:08:12 +00:00
Jacob Vosmaer 96819d2fb4 You need to store your DB encryption key 2015-07-21 14:35:58 +02:00
Hannes Rosenögger bf3b318ec5 revert caching of note text 2015-07-21 13:59:14 +02:00
Valery Sizov 74778d7064 Merge branch 'changelog_update' into 'master'
Update changelog



See merge request !1013
2015-07-21 10:41:15 +00:00
Valery Sizov 280576a2d5 Update changelog 2015-07-21 10:40:05 +00:00
Valery Sizov 2c4210f538 Merge branch 'overwrite-during-backup' into 'master'
Don't stop if database.sql.gz already exists

The existing behavior of the backups is to overwrite whatever data
was still there in the scratch directories. This broke when we added
a 'gzip' step because 'gzip database.sql' will fail if 'database.sql.gz'
already exists. Doing 'rm -f database.sql.gz' before the 'gzip'
avoids this failure.

See merge request !1011
2015-07-21 09:12:42 +00:00