Commit Graph
19887 Commits
Author SHA1 Message Date
Dmitriy Zaporozhets 64c2bccdd9 Merge branch 'fix-issue-3067' into 'master'
Fix nonatomic database update potentially causing project star counts to go negative

The `counter_cache` decrement function is called when a project star is deleted,
but there was no guarantee multiple workers would not attempt to delete the
same item simultaneously. Use an atomic update to prevent the count from going negative.

Note: I was only able to duplicate the issue on GitLab.com, but I haven't been able to replicate it anywhere else. Presumably this bug happens when the `WHERE` clause takes some time to search for the right entry and multiple requests get sent simultaneously. Need to verify whether this fix truly solves the issue.

Closes #3067

See merge request !1628
2015-10-17 18:00:02 +00:00
Douwe Maan 5ad3a274b3 Merge branch 'rs-redactor-filter' into 'master'
Separate rendering of Markdown reference links from redacting those the user doesn't have access to and extracting referenced objects

Related: !1014

See merge request !1090
2015-10-17 11:55:55 +00:00
Dmitriy Zaporozhets 5d010ecd8a Merge branch 'redirect-ci-dash' into 'master'
Temporary bring /ci page page with help information

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>

See merge request !1630
2015-10-17 10:23:53 +00:00
Dmitriy Zaporozhets 5e74c5c4db Merge branch 'redirect-ci-page' into 'master'
Redirect old CI project route to GitLab project

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>

See merge request !1629
2015-10-17 09:12:29 +00:00
Dmitriy Zaporozhets e9be3ec8ee Temporary bring /ci page page with help information
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-10-17 11:12:08 +02:00
Dmitriy Zaporozhets fbd9d3ec0d Merge branch 'hide-builds-tab' into 'master'
Hide Builds tab is GitLab CI is not enabled

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>

See merge request !1627
2015-10-17 08:34:39 +00:00
Dmitriy Zaporozhets 748631b5a3 Redirect old CI project route to GitLab project
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-10-17 10:21:01 +02:00
Stan Hu ca3ce5c26c Fix nonatomic database update potentially causing project star counts to go negative
The counter_cache decrement function is called when a project star is deleted,
but there was no guarantee multiple workers would not attempt to delete the
same item simultaneously. Use an atomic update to prevent the count from going negative.

Closes #3067
2015-10-17 00:58:14 -07:00
Dmitriy Zaporozhets efd5472c4b Hide Builds tab is GitLab CI is not enabled
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-10-17 09:38:29 +02:00
Robert Speicher c856a7a593 Merge branch 'filter-label' into 'master'
Allow dashboard and group issues/MRs to be filtered by label

See merge request !1591
2015-10-16 21:29:47 +00:00
Robert Speicher 292b9da54a Merge branch 'fix_svn_link' into 'master'
Fix import from SVN link

See merge request !1617
2015-10-16 21:17:50 +00:00
Yorick Peterse 2e1e3c4486 Merge branch 'friday-meltdown-indexes' into 'master'
See merge request !1623
2015-10-16 20:29:10 +00:00
Robert Speicher f84ed86a52 Merge branch 'gghs-0.3.0' into 'master'
Use gitlab-git-http-server 0.3.0 for GitLab 8.1

See merge request !1605
2015-10-16 20:14:37 +00:00
Yorick Peterse f405954764 Added indexes for notes.line_code and CI columns
This adds indexes for the following columns:

* notes.line_code
* ci_projects.gitlab_id
* ci_projects.shared_runners_enabled
* ci_builds.type
* ci_builds.status
2015-10-16 21:58:30 +02:00
Robert Speicher b39860b01b Merge branch 'gitlab-git-http-server-version' into 'master'
Track compatible gitlab-git-http-server version

The 'git archive' changes in GitLab 8.1 require a version of
gitlab-git-http-server that is incompatible with GitLab 8.0, so we
need to keep track of this now.

See merge request !1603
2015-10-16 19:37:22 +00:00
Dmitriy Zaporozhets dad30ec0d6 Merge branch 'improve-typography' into 'master'
Improve typography



See merge request !1622
2015-10-16 15:21:46 +00:00
Dmitriy Zaporozhets 2ff13cb37e Merge branch 'fix-wiki-padding' into 'master'
Dont put padding on typography but on holder elements instead

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>

Fixes wrong padding of wiki content. 


cc @JobV @skyruler 

See merge request !1620
2015-10-16 15:20:52 +00:00
Dmitriy Zaporozhets efc31446a3 Merge branch 'compact-select' into 'master'
Make selectbox options more compact

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>

See merge request !1619
2015-10-16 15:20:09 +00:00
Dmitriy Zaporozhets f666460171 Increase dropdown padding a bit 2015-10-16 15:18:21 +00:00
Dmitriy Zaporozhets 5bf3906a48 Merge branch 'comment-highlight' into 'master'
Highlight comment based on anchor in URL

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>

Fix for #2954 

See merge request !1618
2015-10-16 15:12:13 +00:00
Dmitriy Zaporozhets 1543989d63 Improve markdown typography scss
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-10-16 17:06:24 +02:00
Dmitriy Zaporozhets b4cc05e56e Add extra padding to some markdown pages
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-10-16 16:36:37 +02:00
Dmitriy Zaporozhets db1e7fb8dd Dont put padding on typography but on holder elements instead
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-10-16 16:25:57 +02:00
Yorick Peterse f0bfbd72bc Merge branch 'ci-commits-gl-project-id-index' into 'master'
Add index on ci_commits.gl_project_id



See merge request !1616
2015-10-16 14:21:11 +00:00
Dmitriy Zaporozhets f5b9c3d59d Make selectbox options more compact
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-10-16 16:15:30 +02:00
Dmitriy Zaporozhets 46d748dc2e Highlight comment based on anchor in URL
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-10-16 16:06:11 +02:00
Drew Blessing a7fafee521 Fix import from SVN link 2015-10-16 08:45:50 -05:00
Yorick Peterse c6be5006da Add index on ci_commits.gl_project_id
Fixes #3086
2015-10-16 15:29:50 +02:00
Dmitriy Zaporozhets e10f5f4f56 Merge branch 'last-commit-project-page' into 'master'
Show last commit from default branch on project home page

Implements #2705 

Screenshot: 

![Screenshot_2015-10-15_19.03.29](https://gitlab.com/gitlab-org/gitlab-ce/uploads/ef1cfa6764ab0ec5e7584ae61980a47d/Screenshot_2015-10-15_19.03.29.png)


Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>

cc @skyruler 

See merge request !1610
2015-10-16 13:21:37 +00:00
Dmitriy Zaporozhets 47e17103f5 Change order of sha and commit message on project home page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-10-16 13:36:48 +02:00
Douwe Maan 34148d1576 Merge branch 'master' into rs-redactor-filter 2015-10-16 11:26:48 +02:00
Dmitriy Zaporozhets 66584f72fd Add changelog item
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-10-16 11:15:12 +02:00
Douwe Maan 0c2df939df Merge branch 'notify-mr-upon-branch-presence-change' into 'master'
Add a system note and update relevant merge requests when a branch is deleted or re-added

If a branch is deleted with an open merge request, amended offline, and then pushed again,
GitLab doesn't bother to update the merge request even though the last commit ID and/or
code may have changed. This MR ensures that each push will update any relevant merge
requests and adds a system note if this happens as well.

The new messages look like:

![image](https://gitlab.com/gitlab-org/gitlab-ce/uploads/6581eea069cd8e485b7fa4187ed4c043/image.png)

Closes #2926 

See merge request !1601
2015-10-16 09:03:24 +00:00
Dmitriy Zaporozhets d1450af81f Add tests for last commit info on project home page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-10-16 10:10:33 +02:00
Stan Hu f726df26c2 Reorder system note verb to say "Restored source branch X" instead of "Source branch X restored" 2015-10-16 00:51:25 -07:00
Stan Hu 888c1a3fc5 Add spec for refresh service adding notes to restored branches 2015-10-16 00:33:58 -07:00
Stan Hu bf290a52b7 Rubocop fix 2015-10-15 23:54:13 -07:00
Stan Hu 577565d939 Add system notes for restored branches 2015-10-15 23:54:13 -07:00
Stan Hu 9c67f4fb51 Memoize merge request source branches 2015-10-15 23:54:13 -07:00
Stan Hu effa94bb87 Improve SystemNote interface for branch add/restore case 2015-10-15 23:54:13 -07:00
Stan Hu 22775c596f Preserve target branch 2015-10-15 23:54:13 -07:00
Stan Hu 2611d9f63c Add a system note and update relevant merge requests when a branch is deleted or re-added
If a branch is deleted with an open merge request, amended offline, and then pushed again,
GitLab doesn't bother to update the merge request even though the last commit ID and/or
code may have changed. This MR ensures that each push will update any relevant merge
requests and adds a system note if this happens as well.

Closes #2926
2015-10-15 23:54:13 -07:00
Stan Hu bd3689e9e0 Merge pull request #9740 from ashleyhindle/patch-1
Changed loose to lose
2015-10-15 23:38:15 -07:00
Ashley Hindle a317c5296e Changed loose to lose 2015-10-16 07:36:20 +01:00
Robert Speicher 94ec666923 Merge branch 'when-syntax' into 'master'
Implement when syntax in .gitlab-ci.yml

See merge request !1606
2015-10-16 03:01:24 +00:00
Robert Speicher 64352d25b3 Correct spec description typo
[ci skip]
2015-10-15 21:30:47 -04:00
Robert Speicher 6fe2a679a7 Update CI YAML docs 2015-10-15 19:46:01 -04:00
Robert Speicher 62377d1754 Shut up, Rubocop 2015-10-15 19:44:15 -04:00
Robert Speicher c2c9f6d52d Remove 8.0-only steps from the 8.1 update guide
Also adds a preamble note that a working 8.0 installation (i.e.,
gitlab-git-http-server, updated Nginx/Apache configs) is required before
proceeding.

[ci skip]
2015-10-15 18:59:28 -04:00
Robert Speicher 6232bb1ef3 Remove notes about CI migration from 8.1 update guide
[ci skip]
2015-10-15 18:18:41 -04:00