Commit Graph
2875 Commits
Author SHA1 Message Date
Stan Hu 74d7de8196 Revert "Revert "Merge branch 'support-go-subpackages' into 'master' ""
This reverts commit 5a586f364c
2016-03-12 21:05:23 +00:00
Douwe Maan 5a586f364c Revert "Merge branch 'support-go-subpackages' into 'master' "
This reverts merge request !3191
2016-03-12 17:42:51 +00:00
Douwe Maan 826bc72c12 Merge branch 'support-go-subpackages' into 'master'
Support Golang subpackage fetching

Closes #13805

See merge request !3191
2016-03-12 17:38:08 +00:00
Stan Hu 2563213ccf Remove existing go_import.html.haml implementation 2016-03-12 07:49:16 -08:00
Jacob Schatz 6968ea32e2 Merge branch 'award-emoji-design-update' into 'master'
Updated UI of award emoji

Closes #13878 

See merge request !3028
2016-03-11 16:06:18 +00:00
Jacob Schatz 29ac9f64ea Merge branch 'fix-issue-toggle-button-mobile' into 'master'
Fixes issue with issue sidebar toggle button not working

Closes #14195

See merge request !3165
2016-03-11 13:09:54 +00:00
Jacob Schatz d343c7a159 Merge branch 'comment-discard-button' into 'master'
Added discard button to comment form

Also changed the labels on the buttons to better match the action they are completing.

Closes #8057

See merge request !3085
2016-03-11 13:07:43 +00:00
Jacob Schatz 0c5b92cbd7 Merge branch 'build-scroll-controls-position' into 'master'
Affix the build scroll controls

Closes #4709

See merge request !3109
2016-03-11 11:19:27 +00:00
Phil Hughes 5e145918b4 Updated UI of award emoji
Closes #13878
2016-03-11 09:02:43 +00:00
Phil Hughes 07e1754c7c Removed deprecated bootstrap classes 2016-03-11 08:57:53 +00:00
ashleys 4cd9a5208c web hooks to webhooks 2016-03-10 14:48:29 -05:00
Robert Speicher 5c1dba671d Merge branch 'issue-mr-build-status-placement' into 'master'
Moves build status tooltip on issues

See merge request !3156
2016-03-10 18:52:33 +00:00
Phil Hughes 145143ac7f Changed named argument
Set position to auto left so that if it is off-screen it goes to the right
2016-03-10 18:05:55 +00:00
Phil Hughes bc19acab25 Correct ruby code 2016-03-10 17:39:53 +00:00
Phil Hughes bd411675d2 Fixes issue with issue sidebar toggle button not working
Closes #14195
2016-03-10 17:34:06 +00:00
Jacob Schatz 3d4063efa1 Merge branch 'download-button-flicker' into 'master'
Fixed flicker of download project button

Closes #14177

![download-button-flicker](/uploads/21e8ccc68ed66394c8ec65ca549f94ad/download-button-flicker.gif)

See merge request !3152
2016-03-10 15:20:17 +00:00
Phil Hughes 2cd401676f Moves build status tooltip on issues 2016-03-10 13:17:35 +00:00
Phil Hughes 573bbd674b Fixed flicker of download project button
Closes #14177
2016-03-10 11:52:31 +00:00
Phil Hughes 3c6fdc7a0a Fixed quick submit on note edit
Also removed the cloning of forms for note edits. Instead it just hides/shows the form seeing as it is already there

Closes #14094
2016-03-10 11:02:22 +00:00
Jacob Vosmaer 5e46662798 Merge branch 'commit-limits' into 'master'
Commit limits

Prevent timeouts when creating/viewing Merge Requests with many
commits. Also, reduce the number of commits shown in the UI from 500
to 100.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/14031

This MR avoids Unicorn timeouts in some places and takes 4.5 seconds
off load times in others, when manually testing with a 4500-commit
compare/MR in the linux repo. It does not limit the number of Commit
objects instantiated in memory, just the amount of HTML generated. It
seems that having 4500 commits objects is not a problem in itself. If
it ever becomes one we could do something for Commit objects like we
did for Diff (introduce a CommitCollection or something).

See merge request !3095
2016-03-09 16:39:07 +00:00
Jacob Vosmaer 9d9d2fbbc2 Prevent performance issues 2016-03-09 12:00:17 +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
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
Douwe Maan 903aa7c95e Merge branch 'issue_13621_2' into 'master'
Labels should be visible in dashboard and group milestone views

Closes #13621

See merge request !2931
2016-03-07 17:18:25 +00:00
Phil Hughes b9168b0759 Affix the build scroll controls
Closes #4709
2016-03-07 09:44:55 +00:00
Jacob Vosmaer d51877cac8 Change "some commits hidden" message 2016-03-07 10:42:27 +01:00
Jacob Vosmaer 8236333258 Finish refactor 2016-03-07 10:41:49 +01:00
Douwe Maan d43c778402 Merge branch 'indicate-mr-diverged-from-target' into 'master'
Indicate when an MR diverged from the target branch

This adds an indicator to the "Merge MR" box, to tell if and how much an MR diverged from its target branch.

For instance, consider an MR to merge the branch `feature` into `master`. Some other commits were added to `master` since `feature` was created, and the two branches diverged.

```text
o master
|
o    o feature
|    |
o    o
|  /
o
```

In this case, there will be a label in the MR Merge box stating:

> This MR is by 3 commits behind the target branch `master`.

## Screenshots

### The branch diverged from the target (UI Proposal)

![UI_suggestion_1](/uploads/cd5bee3959e68026ec7d5097259d53f4/UI_suggestion_1.png)

### The branch diverged from the target (alternative UI Proposal)

![UI_suggestion_2](/uploads/f36977101b59a610850e129837dfbc83/UI_suggestion_2.png)

## How is this useful?

- In a _rebase-workflow_ (MR are preferably rebased before being merged), the reviewer wants to know if an MR is rebased on the target branch before merging it. 
    
    _With this indicator, the reviewer knows immediately if the branch is rebased, or if she needs to ask the committer to rebase its branch._

<br>

- To keep the git history readable, a team prefers to avoid merging branches that really lag a lot behind the target branch. Merging an MR that is 10 commits behind is fine, but 200 is too much.

    _With this indicator, the reviewer can see on the MR page if the branch is really far behind the target – or only a few commits behind._

## Open questions

We've been using this at @captaintrain for a few months now, and found it quite useful.

I guess the open-questions are mostly: what UI would be the more adequate? Any thoughts on this, on the general usefulness and/or on the code?

See merge request !2217
2016-03-07 09:01:26 +00:00
Rubén Dávila 95b06a62c0 Updates from last code review. 2016-03-06 23:07:19 -05:00
Rubén Dávila ed48085558 Refactor Merge Requests tab into a custom partial
* Add Labels tab to Groups
* Add decorator for label so it's aware of Milestones.
2016-03-04 22:37:03 -05:00
Rubén Dávila 834b5d49ec Refactor Merge Requests tab into a custom partial 2016-03-04 22:37:03 -05:00
Rubén Dávila 37d92d0b7b Refactor Merge Requests tab into a custom partial 2016-03-04 22:37:03 -05:00
Rubén Dávila 70028d36be Recator Issues Tab into a custom partial. 2016-03-04 22:37:03 -05:00
Jacob Schatz 8835514b10 Fixes style consistencies. 2016-03-04 13:24:24 -05:00
Jacob Vosmaer f943156b5e Put 'hidden commits' logic in CommitsHelper 2016-03-04 15:45:58 +01:00
Jacob Vosmaer 5eeea4b7c6 Limit the number of commits shown in MRs
This prevents timeouts when creating a MR with 1000s of commits.
2016-03-04 15:20:30 +01:00
Jacob Schatz d98dc53106 Correct media queries for small devices and tablets. 2016-03-04 09:06:57 -05:00
Jacob Schatz 6e6a25187d Combining recent change to have username in header with my MR. 2016-03-04 09:06:57 -05:00
Jacob Schatz cabd228f70 Fix bugs with open and close buttons 2016-03-04 09:06:57 -05:00
Jacob Schatz 61ce134fa9 Small outside aside shrink sidebar button for mobile only. 2016-03-04 09:06:57 -05:00
Jacob Schatz cabb61719d Open sidebar button on mobile. 2016-03-04 09:06:57 -05:00
Jacob Schatz c3e07b6f9c Move static icon and change appearance.
MR meta details media queries.
2016-03-04 09:06:57 -05:00
Jacob Schatz d913febf0f Hide correct author info in header of issuable. 2016-03-04 09:06:57 -05:00
Jacob Schatz 2feb9eb1f0 Change icons for open close on issue/MR
Button full width on phone on MR/issue.
2016-03-04 09:06:57 -05:00
Phil Hughes da6e38a889 Fixed tests for comment forms 2016-03-04 10:44:04 +00:00
Phil Hughes e033b9a7f1 Added discard button to comment form
Also changed the labels on the buttons to better match the action they are completing.

Closes #8057
2016-03-04 08:42:22 +00:00
Jacob Vosmaer 1764e1b7cb Use Gitlab::Git::DiffCollections 2016-03-03 18:38:44 +01:00
Jacob Vosmaer fc90d9e589 Tell clients/proxies to cache raw blob requests 2016-03-03 17:59:47 +01:00
Pierre de La Morinerie 543845f7ef Indicate how much an MR branch diverges from the target branch 2016-03-03 15:11:44 +01:00
Dmitriy Zaporozhets 7455d950bc Refactor projects list
1. Fix double bottom border if pagination
2. Fix broken search on forks page
4. Remove duplicate js logic
4. Remove unused show all link
5. Remove duplicate “no project” message in different views

After this merge request you can easily render shared projects template
with all necessary html/js included to make searchable list with
pagination. All you need to provide is controller that returns
projects list with seach nad pagination and render html form with
project-filter-form id and text field with filter_projects name.

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-03-03 13:09:58 +01:00