Commit Graph
20671 Commits
Author SHA1 Message Date
Ruben DavilaandRubén Dávila 97afb84b31 Generate system note after Task item has been updated on Issue or Merge Request. #2296
Everytime the User check or uncheck a Task Item from the Issue or
Merge Request description, a new update is going to be
added to the activity logs of the Issue or Merge Request.

Note that when using the edit form, you can only update the Task item
status or add/delete/modify existing ones. Doing both actions is not
fully supported.
2015-11-19 21:05:44 -05:00
Robert Speicher a8e7bee3a6 Merge branch 'rs-mr-reference-copy' into 'master'
Add clipboard button to merge request cross-project reference

See merge request !1847
2015-11-20 01:08:07 +00:00
Robert Speicher 2df492fd2f Add clipboard button to merge request cross-project reference 2015-11-19 19:25:22 -05:00
Robert Speicher b3cd7243e9 Merge branch 'rs-safari-clipboard-fallback' into 'master'
Add a fallback for Safari copy-to-clipboard

Also, hide the tooltip in a less stupid way.

Closes #3547

See merge request !1844
2015-11-19 23:23:31 +00:00
Kamil Trzciński 0383f84d88 Merge branch 'ci-yaml-validation' into 'master'
Commits without .gitlab-ci.yml are marked as skipped

- Commits without .gitlab-ci.yml are marked as skipped
- Save detailed error when YAML syntax

This also fixes: #3521 #3546 

/cc @jacobvosmaer 


See merge request !1827
2015-11-19 22:57:06 +00:00
Dmitriy Zaporozhets 68d4ab2381 Merge branch 'emoji_votes' into 'master'
Award Emoji

This it first iteration of award emoji feature.
We have plan to extend emoji picker by the next release.

For now, you can add award by clicking to the emoji picker or posting a regular comment with emoji like "👍" and any other. You can post not only emoji that listed in the emoji picker.

See merge request !1825
2015-11-19 21:34:38 +00:00
Dmitriy Zaporozhets ef1ed8f702 Merge branch 'missing_dot_confirm_modal' into 'master'
Add missing dot in confirm modal



See merge request !1645
2015-11-19 21:26:10 +00:00
Robert Speicher 2a3680219b Add a fallback for Safari copy-to-clipboard
Also, hide the tooltip in a less stupid way.

Closes #3547
2015-11-19 16:06:53 -05:00
Valery Sizov 22bbb379ae fox tests 2015-11-19 23:00:30 +02:00
Dmitriy Zaporozhets e1780825ee Merge branch 'finding-issues-by-labels-performance' into 'master'
Improve performance of finding issues with/without labels

The changes in this MR ultimately lead to finding issues with(out) labels being about 2x faster due to:

1. Newly added indexes on `issues.state` and `projects.visibility_level`
2. Adjusting the query so that finding issues for multiple projects is more efficient

See merge request !1787
2015-11-19 19:35:38 +00:00
Kamil Trzcinski 8248314bc9 Don't rescue Exception, but StandardError 2015-11-19 20:17:17 +01:00
Robert Speicher 56476f1847 Merge branch 'dbalexandre/gitlab-ce-fix-personal-snippet-access-workflow' into 'master'
Improve personal snippet access workflow.

Replaces !1709

Fixes #3258

See merge request !1817
2015-11-19 17:22:20 +00:00
Robert Speicher 3a85c93a7a Merge branch 'dirceu/gitlab-ce-new-merge-request-from-file-edit' into 'master'
Add option to create merge request when editing/creating a file

Replaces !1611 

Fixes #3059

See merge request !1820
2015-11-19 16:45:45 +00:00
Valery Sizov bdf4007cb7 adressing comments 2015-11-19 18:12:17 +02:00
Robert Speicher 547240e11e Merge branch 'new-tag-textarea' into 'master'
Fix 'Attach a file' link in new tag form

Also removed a little bit of code repetition :)

See merge request !1834
2015-11-19 15:40:03 +00:00
Robert Speicher 6756f87f90 Merge branch 'update-gitlab-shell-doc' into 'master'
Update gitlab-shell documentation to 2.6.7



See merge request !1836
2015-11-19 15:09:28 +00:00
Robert Schilling aec4aac0c2 Update gitlab-shell documentation [ci skip] 2015-11-19 16:06:13 +01:00
Yorick Peterse 094e1cc01b Align hash literals in IssuesFinder spec 2015-11-19 16:02:21 +01:00
Kamil Trzcinski a5b10196e6 Fix tests 2015-11-19 15:56:03 +01:00
Robert Speicher c8074b6b11 Merge branch 'client-max-body-size' into 'master'
Do not limit workhorse POST/PUT size in NGINX

Limiting, if any, should happen in gitlab-workhorse.

See merge request !1831
2015-11-19 14:41:44 +00:00
Douwe Maan 97842cea74 Fix 'Attach a file' link in new tag form 2015-11-19 15:37:20 +01:00
Job van der Voort 587ab57f4a Merge branch 'lfs-client-doc' into 'master'
Add link to git-lfs client  [ci skip]



See merge request !1832
2015-11-19 13:44:34 +00:00
Robert Schilling d70da301f6 Add link to git-lfs client [ci skip] 2015-11-19 14:13:17 +01:00
Dmitriy Zaporozhets 347f136229 Merge branch 'builds_page_scroll_buttons' into 'master'
Fix bottom position of scroll buttons in build log page

Look at the up/down buttons as well as the **Enable Autoscroll**.

The **Enable Autoscroll** could also be alligned with the right grey box.


## Before

![autoscroll_before](/uploads/f410dc353ca66c338d8a29c7c294758a/autoscroll_before.png)

## After

![autoscroll_after](/uploads/015fdf53618a0d6f468d666de1bbab6a/autoscroll_after.png)


\cc @dzaporozhets @creamzy 

See merge request !1792
2015-11-19 13:00:42 +00:00
Jacob Vosmaer 372dcc217e Do not limit workhorse POST/PUT size in NGINX
Limiting, if any, should happen in gitlab-workhorse.
2015-11-19 13:51:18 +01:00
Valery Sizov 671a49cfd5 added specs 2015-11-19 14:41:05 +02:00
Dmitriy Zaporozhets b7029841cf Merge branch 'update_nginx_deploy' into 'master'
Deploy page should be shown for all pages not just root

Related to change already merged to Omnibus - gitlab-org/omnibus-gitlab!540

This change makes it so the deploy page is shown on all GitLab pages if the page exists. Users will no longer receive the 502 when deploys are happening.

See merge request !1828
2015-11-19 12:29:47 +00:00
Valery Sizov 23c5473cc0 added spinach tests 2015-11-19 13:20:09 +02:00
Kamil Trzcinski fd6b589496 Since GitLab CI is enabled by default, remove enabling it by pushing .gitlab-ci.yml 2015-11-19 12:09:34 +01:00
Kamil Trzcinski 0df7a32ea5 Fix tests 2015-11-19 12:09:34 +01:00
Kamil Trzcinski 2b907f61ff Commits without .gitlab-ci.yml are marked as skipped
- Save detailed error when YAML syntax
2015-11-19 12:09:34 +01:00
Yorick Peterse 901d3dee0f Changelog entry for finding issues performance 2015-11-19 12:01:08 +01:00
Yorick Peterse 8591cc02be Use a JOIN in IssuableFinder#by_project
When using IssuableFinder/IssuesFinder to find issues for multiple
projects it's more efficient to use a JOIN + a "WHERE project_id IN"
condition opposed to running a sub-query.

This change means that when finding issues without labels we're now
using the following SQL:

    SELECT issues.*
    FROM issues
    JOIN projects ON projects.id = issues.project_id

    LEFT JOIN label_links ON label_links.target_type = 'Issue'
                          AND label_links.target_id  = issues.id

    WHERE (
        projects.id IN (...)
        OR projects.visibility_level IN (20, 10)
    )
    AND issues.state IN ('opened','reopened')
    AND label_links.id IS NULL
    ORDER BY issues.id DESC;

instead of:

    SELECT issues.*
    FROM issues
    LEFT JOIN label_links ON label_links.target_type = 'Issue'
                          AND label_links.target_id  = issues.id

    WHERE issues.project_id IN (
        SELECT id
        FROM projects
        WHERE id IN (...)
        OR visibility_level IN (20,10)
    )
    AND issues.state IN ('opened','reopened')
    AND label_links.id IS NULL
    ORDER BY issues.id DESC;

The big benefit here is that in the last case PostgreSQL can't properly
use all available indexes. In particular it ends up performing a
sequence scan on the "label_links" table (processing around 290 000
rows). The new query is roughly 2x as fast as the old query.
2015-11-19 11:58:05 +01:00
Yorick Peterse e9cd58f5d5 Memoize IssuableFinder#projects
Since this method's returned data doesn't change between calls on the
same IssuableFinder instance we can just memoize this similar to the
"project" method.
2015-11-19 11:48:50 +01:00
Yorick Peterse c232a0f97f Removed trailing whitespace from IssuableFinder 2015-11-19 11:48:50 +01:00
Yorick Peterse 45840426a7 Added benchmark for IssuesFinder 2015-11-19 11:48:50 +01:00
Yorick Peterse e4ae8b1385 Updated DB schema with new issues/projects indexes 2015-11-19 11:48:50 +01:00
Yorick Peterse d63da89094 Added index on projects.visibility_level 2015-11-19 11:46:38 +01:00
Yorick Peterse 50f6541610 Added index on issues.state
This field is queried when filtering issues and due to the lack of an
index would end up triggering a sequence scan.
2015-11-19 11:46:38 +01:00
Yorick Peterse a42d469ab2 Merge branch 'atom-feed-latest-update' into 'master'
Improve performance of user profiles, finding groups, and finding projects

This MR improves the following:

* Rendering of profile pages and Atom feeds
* Finding groups (using GroupsFinder & friends)
* Finding projects (using ProjectsFinder & friends)

Initially this MR was intended to only improve rendering of Atom feeds, but over time other fixes were introduced as well as the same code was the cause of all these problems.

See merge request !1790
2015-11-19 10:05:53 +00:00
Yorick Peterse 96cdacd4ea Changelog entries for atom/profile improvements 2015-11-19 11:05:21 +01:00
Dmitriy Zaporozhets 5b30285407 Merge branch 'check_if_it_should_be_archived_in_backup' into 'master'
Check which folders and archives should be packed before passing to tar command.

If user uses backup task with SKIP and skips one of the archives listed(uploads, builds, artifacts) backup create will give an error: `Cannot stat: No such file or directory`.

This MR fixes that by checking for skipped items.
Additionally, compact everything to avoid `TypeError: no implicit conversion of nil into String` errors.

See merge request !1824
2015-11-19 10:00:58 +00:00
Dmitriy Zaporozhets 2c7d867862 Few minor improvements to emoji awards UI
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-11-19 10:59:58 +01:00
Kamil Trzcinski caf1c9d85b Fix CHANGELOG 2015-11-19 10:54:11 +01:00
Dmitriy Zaporozhets 618b54910e Improve UI for emoji awards
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-11-19 10:50:38 +01:00
Valery Sizov a2912074be satisfy rubocop 2015-11-19 01:31:15 +02:00
Valery Sizov fa2ed94fe9 fix schema 2015-11-19 01:26:00 +02:00
Valery Sizov 73bc9edc44 add changelog 2015-11-19 01:26:00 +02:00
Valery Sizov fdd5a8f2e1 addressing comments 2015-11-19 01:26:00 +02:00
Valery Sizov 92943580cb improve style 2015-11-19 01:26:00 +02:00