Douwe Maan
577f2fb47a
Save and use actual diff base commit for MR diff highlighting
2016-01-20 18:44:27 +01:00
Douwe Maan
c23ca0b0b5
Merge branch 'master' into issue_3945
2016-01-20 14:53:41 +01:00
Robert Speicher
8a028cf3a2
Merge branch 'fix-autocomplete-new-issues' into 'master'
...
Fix autocomplete for new issues/MRs/snippets
Fixes gitlab-org/gitlab-ce#8067
See merge request !2446
2016-01-15 20:57:56 +00:00
Grzegorz Bizon
6b2f38f39a
Fix nonexistent method in artifacts controller
2016-01-15 13:48:29 +01:00
Andrew Johnson and Grzegorz Bizon
f66f9e95bf
Give reporters the ability to download artifacts.
...
Also fix a few places where page_404 should be render_404.
2016-01-15 12:01:19 +01:00
Yorick Peterse
f7240e03a6
Fix autocomplete for new issues/MRs/snippets
2016-01-15 11:29:53 +01:00
Rubén Dávila
c8db25c37c
Merge branch 'master' into issue_3945
2016-01-14 17:28:44 -05:00
Rubén Dávila
6b9c730e91
More refactoring from last code review. #3945
...
* Use commit objects instead of IDs when generating diffs
* Use proper references when generating MR's source and target
* Update broken specs
2016-01-14 16:47:55 -05:00
Rubén Dávila
70bc322415
Use the adequate reference for the old rev. #3945
2016-01-14 16:41:10 -05:00
Douwe Maan
8dfad143d4
Add inline diff markers in highlighted diffs.
2016-01-14 22:28:07 +01:00
Grzegorz Bizon
6b0a43aff3
Improve readability of artifacts browser Entry related code
2016-01-14 12:48:17 +01:00
Grzegorz Bizon
487b0a026f
Improvements, readability for artifacts browser
2016-01-14 12:48:16 +01:00
Grzegorz Bizon
e9c2628220
Check if file exists in metadata in download action
2016-01-14 12:48:16 +01:00
Grzegorz Bizon
09a4a5aff8
Render only valid paths in artifacts metadata
...
In this version we will support only relative paths in artifacts
metadata. Support for absolute paths will be introduced later.
2016-01-14 12:48:16 +01:00
Grzegorz Bizon
61fb47a432
Simplify implementation of build artifacts browser (refactoring)
2016-01-14 12:48:15 +01:00
Grzegorz Bizon
cd3b8bbd2f
Add method that checks if path exists in StringPath
2016-01-14 12:48:15 +01:00
Grzegorz Bizon
a5e1905d28
Render 404 when artifacts path is invalid
2016-01-14 12:48:15 +01:00
Grzegorz Bizon
a7f99b67a0
Extract artifacts metadata implementation to separate class
2016-01-14 12:48:15 +01:00
Grzegorz Bizon
3de8a4620a
Parse artifacts metadata stored in JSON format
2016-01-14 12:48:15 +01:00
Grzegorz Bizon
447f56036e
Use metadata stored in artifacats metadata file
2016-01-14 12:48:14 +01:00
Grzegorz Bizon
662f4b9e1d
Add artifacts metadata uploader filed
...
Artifacts metadata field will be used to store a filename of gzipped
file containing metadata definition for given artifacts archive.
2016-01-14 12:48:14 +01:00
Grzegorz Bizon
8eeed761a9
Update specs for CI Build, add artifacts? method
...
`artifacts?` method checks if artifacts archive is available.
2016-01-14 12:48:14 +01:00
Grzegorz Bizon
ebd69c5fc1
Remove artifacts metadata column from database
2016-01-14 12:48:13 +01:00
Grzegorz Bizon
5a1faf61f6
Add artifacts browser
...
This implementation makes it possible to browse artifacts, it
depends on artifacts metadata.
2016-01-14 12:48:13 +01:00
Grzegorz Bizon
80a71576ba
Use Gitlab::StringPath in CI build artifacts controller
2016-01-14 12:48:13 +01:00
Grzegorz Bizon
f091272f19
Move artifacts controller level up
...
This reverts nesting artifacts controller in builds module.
2016-01-14 12:48:12 +01:00
Grzegorz Bizon
a96d45c694
Add view action to artifacts controller
2016-01-14 12:48:12 +01:00
Grzegorz Bizon
79fe18d9e7
Move build artifacts implementation to separate controller
2016-01-14 12:48:12 +01:00
Rubén Dávila
1161cf2ec6
Use current commit id if it doesn't have a parent. #3945
2016-01-13 18:01:40 -05:00
Rémy Coutable
9d7f88c122
Show referenced MRs & Issues only when the current viewer can access them
2016-01-13 11:59:10 +01:00
Rubén Dávila
7307fa48e7
Fix broken specs. #3945
2016-01-12 19:28:31 -05:00
Rubén Dávila
f1f9b5f7d3
Small fixes from code review. #3945
2016-01-12 12:53:54 -05:00
Rubén Dávila
c476395b4d
Reuse existent vars with ref and path. #3945
2016-01-12 11:14:41 -05:00
Rubén Dávila
21b602c60a
Change strategy to highlight diffs. #3945
...
Now we apply syntax highlighting to the whole old and new files.
This basically help us to highlight adequately multiline content.
2016-01-07 22:37:01 -05:00
Dmitriy Zaporozhets
4443a5f3c7
Add support for ref and path to commits filtering
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2016-01-07 15:16:11 +01:00
Dmitriy Zaporozhets
9a250ad6d8
Filter commits by search parameter
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2016-01-07 15:16:10 +01:00
Jacob Vosmaer
41b8a238ce
Merge branch 'master' of github.com:gitlabhq/gitlabhq
2016-01-07 12:56:18 +01:00
Douwe Maan
c0849101e6
Merge branch 'master' into merge-when-build-succeeds-unchecked
2016-01-06 13:06:01 +01:00
Douwe Maan
07c39c9976
Merge branch 'brunsa2/gitlab-ce-diverging-branch-graphs' into 'master'
...
Add graphs of commits ahead/behind default branch (by @brunsa2)
Replaces https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/1716
See merge request !2301
2016-01-05 15:44:22 +00:00
Douwe Maan
097faeb481
Get "Merge when build succeeds" to work when commits were pushed to MR target branch while builds were running
2016-01-05 16:30:03 +01:00
Douglas Barbosa Alexandre
567dc62b6d
Show 'All' tab by default in the builds page
2016-01-04 10:21:10 -02:00
Rubén Dávila
3fbcf52ec8
Apply syntax highlighting when expanding diff plus some refactor. #3945
2015-12-31 01:05:52 -05:00
Robert Speicher
1bda2e43a2
Prevent an XSS warning from the updated Brakeman
2015-12-27 21:19:14 -05:00
Dmitriy Zaporozhets
76b7e24f85
Merge branch 'edit-on-fork' into 'master'
...
Automatically fork a project when not allowed to edit a file.
Fixes #3215 .
To do:
- [ ] Add tests
-----
## "Edit" button on file in a project the user does NOT have write access to

## Clicking will automatically create a fork

## When the fork has been created, the user is returned to the edit page on the original project with a notice

## The user cannot change the target branch and is informed that editing will start an MR

## Hitting "Commit changes" will commit and start an MR from my fork to the origin project

-----
## "Create file, "Upload file" and "New directory" buttons in a project the user does NOT have write access to

## Clicking any of these options will automatically create a fork

## When the fork has been created, the user is returned to the tree page on the original project with a notice

## Clicking "New directory" again will show the modal. The user cannot change the target branch and is informed that editing will start an MR

## Hitting "Create directory" will commit and start an MR from my fork to the origin project

cc @dzaporozhets @skyruler
See merge request !2145
2015-12-24 12:24:57 +00:00
Valery Sizov
a48dd40a92
base implementation of emoji picker [ci skip]
2015-12-22 23:12:23 +02:00
Douwe Maan
c910bca730
Add tests for new functionality
2015-12-21 11:57:51 +01:00
Drew Blessing
f177aaa5fa
Backport JIRA service
2015-12-18 14:19:48 -06:00
Douwe Maan
f4f4a6b530
Fix specs and behavior for LFS files
2015-12-18 16:14:12 +01:00
Douwe Maan
d9c82d679f
Automatically fork a project when not allowed to edit a file.
2015-12-18 10:03:34 +01:00
Robert Speicher
b5230bbe7c
Merge branch 'fix-merge-immediately' into 'master'
...
Fix 'Merge Immediately' button
Fixes #4125
See merge request !2117
2015-12-16 17:51:25 +00:00