gitlab-org--gitlab-foss/spec/models
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
..
ci Merge remote-tracking branch 'upstream/master' into artifacts-from-ref-and-build-name 2016-08-24 20:56:30 +08:00
concerns rename Statuseable to HasStatus 2016-08-25 04:55:32 +02:00
hooks
members
network Fix Error 500 resulting when loading network graph 2016-08-20 09:57:20 -07:00
project_services
ability_spec.rb Fix "Wiki" link not appearing in navigation for projects with external wiki 2016-08-26 17:20:00 -03:00
abuse_report_spec.rb
appearance_spec.rb
application_setting_spec.rb
award_emoji_spec.rb
blob_spec.rb
board_spec.rb The lists: Backlog, and Done cannot be destroyed 2016-08-17 12:58:57 -03:00
broadcast_message_spec.rb Now we already included it in spec_helper.rb 2016-08-20 00:11:03 +08:00
build_spec.rb Merge remote-tracking branch 'upstream/master' into artifacts-from-ref-and-build-name 2016-08-17 13:40:18 +08:00
commit_range_spec.rb
commit_spec.rb
commit_status_spec.rb
compare_spec.rb
deploy_key_spec.rb
deploy_keys_project_spec.rb
deployment_spec.rb
diff_note_spec.rb Store discussion_id on Note for faster discussion lookup. 2016-08-17 12:16:46 -05:00
discussion_spec.rb
email_spec.rb
environment_spec.rb
event_spec.rb
external_issue_spec.rb
forked_project_link_spec.rb
generic_commit_status_spec.rb
global_milestone_spec.rb
group_spec.rb
identity_spec.rb
issue_spec.rb
key_spec.rb
label_link_spec.rb
label_spec.rb Destroy related lists when a label is removed 2016-08-17 12:58:58 -03:00
legacy_diff_note_spec.rb Store discussion_id on Note for faster discussion lookup. 2016-08-17 12:16:46 -05:00
list_spec.rb Add a movable scope and a movable? method to List model 2016-08-17 12:58:59 -03:00
member_spec.rb Merge branch 'master' into expiration-date-on-memberships 2016-08-18 15:54:07 +01:00
merge_request_diff_spec.rb Add code improvements to merge request version feature 2016-08-25 10:59:30 +03:00
merge_request_spec.rb Merge branch 'artifacts-from-ref-and-build-name' into 'master' 2016-08-30 18:03:16 +00:00
milestone_spec.rb
namespace_spec.rb
note_spec.rb Capitalize mentioned issue timeline notes 2016-08-25 10:47:40 -05:00
notification_setting_spec.rb
personal_access_token_spec.rb
project_group_link_spec.rb
project_security_spec.rb
project_snippet_spec.rb
project_spec.rb Merge branch 'artifacts-from-ref-and-build-name' into 'master' 2016-08-30 18:03:16 +00:00
project_team_spec.rb
project_wiki_spec.rb
protected_branch_spec.rb
release_spec.rb
repository_spec.rb Add a spec testing a second side effect of Repository#merge. 2016-08-19 11:20:21 +05:30
service_spec.rb
snippet_spec.rb
spam_log_spec.rb
todo_spec.rb
tree_spec.rb
user_agent_detail_spec.rb Further refactor and syntax fixes. 2016-08-15 17:20:57 -05:00
user_spec.rb Show "Create Merge Request" widget for push events to fork projects on the source project 2016-08-24 18:54:26 +02:00
wiki_page_spec.rb