gitlab-org--gitlab-foss/spec/features
Douwe Maan 51087cfa1a Merge branch 'artifacts-from-ref-and-build-name' into 'master'
Add a download buttons for Build Artifacts

## What does this MR do?
This MR adds a download buttons for build artifacts of latest succesful pipeline in:
- dashboard of project,
- branches and tags views,
- and tree viewer

Implement #4255

## What are the relevant issue numbers?

Closes #4255, Closes #14419

## Screenshots

### Project main

![](/uploads/29ee2154a214416059a875f2715d4fa3/Screen_Shot_2016-08-24_at_8.00.31_PM.png)

### Branches

![](/uploads/9220c593288370986fbc1d42a1425ef7/Screen_Shot_2016-08-24_at_8.02.01_PM.png)

### Tags

![](/uploads/a843e8103221fea475a0cf9d62a1999d/Screen_Shot_2016-08-24_at_8.03.32_PM.png)

### Source Tree

![](/uploads/63cd3c8c91b6f427c166dc90d8e3c059/Screen_Shot_2016-08-24_at_8.04.56_PM.png)

## Does this MR meet the acceptance criteria?

- [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
- [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [x] Download buttons
- [x] Models
- [x] Routes
- [x] Projects::ArtifactsController
- [x] API
- Tests
  - Rails
      - [x] Project#builds_for
      - [x] branch name with slashes
      - [x] only success builds
      - [x] only latest builds
      - [x] feature tests for download buttons
  - API
      - [x] branch name with slashes
      - [x] only success builds
      - [x] only latest builds
  - [x] All builds are passing
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

See merge request !5142
2016-08-30 18:03:16 +00:00
..
admin Handle unavailable system info 2016-08-25 08:28:35 +01:00
atom fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
boards Fixed keyboard shortcuts not working on issue boards 2016-08-19 10:21:09 +01:00
dashboard fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
groups/members Fix a few nitpicks 2016-07-20 14:38:21 +02:00
issuables Handle legacy sort order values 2016-08-18 23:26:07 +01:00
issues Capitalize mentioned issue timeline notes 2016-08-25 10:47:40 -05:00
merge_requests Fix diff comments on legacy MRs 2016-08-30 09:19:57 +01:00
profiles Remove sleeping and replace escaped text. 2016-08-13 00:57:40 -05:00
projects Merge remote-tracking branch 'upstream/master' into artifacts-from-ref-and-build-name 2016-08-24 20:56:30 +08:00
protected_branches Move protected branches access control spec into a shared example. 2016-08-20 00:24:12 +05:30
security Support integration with Koding (online IDE) 2016-08-19 12:10:58 -07:00
tags Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
todos Add specs to ensure a successful return 2016-08-25 06:46:11 +02:00
ci_lint_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
commits_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
compare_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
container_registry_spec.rb Show proper image ID on registry page 2016-06-21 13:08:10 +02:00
dashboard_issues_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
dashboard_milestones_spec.rb Add missing Dashboard::LabelsController 2016-03-23 12:02:15 +01:00
environments_spec.rb Add an URL field to Environments 2016-07-29 13:54:45 +02:00
expand_collapse_diffs_spec.rb Collapsed diffs lines/size don't accumulate to overflow diffs. 2016-07-18 14:43:28 -06:00
gitlab_flavored_markdown_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
groups_spec.rb Fix creating group with space in group path 2016-07-14 15:31:48 -03:00
help_pages_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
issues_spec.rb Revert the revert of Optimistic Locking 2016-08-22 18:43:13 +03:00
login_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
markdown_spec.rb Remove VideoJS and clean the integration 2016-07-20 11:36:42 +02:00
milestone_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
notes_on_merge_requests_spec.rb Capitalize mentioned issue timeline notes 2016-08-25 10:47:40 -05:00
participants_autocomplete_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
password_reset_spec.rb
pipelines_settings_spec.rb Create PipelinesSettingsController for showing settings page 2016-07-20 14:39:06 +02:00
profile_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
projects_spec.rb Fix file links on project page Files view 2016-08-23 11:01:20 +01:00
protected_branches_spec.rb Move protected branches access control spec into a shared example. 2016-08-20 00:24:12 +05:30
runners_spec.rb Enable RSpec/NotToNot cop and auto-correct offenses 2016-05-24 15:40:29 -04:00
search_spec.rb Fixed enter key in search input not working 2016-08-23 14:44:28 +02:00
signup_spec.rb Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
task_lists_spec.rb Shorten task status phrase 2016-08-29 10:46:36 -05:00
triggers_spec.rb Remove ci_ prefix from all ci related things 2015-12-11 18:02:09 +01:00
u2f_spec.rb Add feature specs to cover naming and deleting U2F devices. 2016-08-18 22:12:02 +05:30
users_spec.rb Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
variables_spec.rb Updated tests 2016-08-13 00:57:40 -05:00