Commit Graph

94 Commits

Author SHA1 Message Date
GitLab Bot 329f63356a Add latest changes from gitlab-org/gitlab@master 2024-07-24 18:10:15 +00:00
GitLab Bot a4c6719f21 Add latest changes from gitlab-org/gitlab@master 2024-07-11 12:18:38 +00:00
GitLab Bot 188b122116 Add latest changes from gitlab-org/gitlab@master 2024-06-03 21:13:04 +00:00
GitLab Bot 6a4ec0399b Add latest changes from gitlab-org/gitlab@master 2024-05-13 12:17:47 +00:00
GitLab Bot 1731854712 Add latest changes from gitlab-org/gitlab@master 2024-03-12 03:08:54 +00:00
GitLab Bot de4ded9594 Add latest changes from gitlab-org/gitlab@master 2024-01-17 21:09:04 +00:00
GitLab Bot d4fcd1794e Add latest changes from gitlab-org/gitlab@master 2023-11-07 15:19:19 +00:00
GitLab Bot c77b780ee0 Add latest changes from gitlab-org/gitlab@master 2023-06-06 06:08:48 +00:00
GitLab Bot 44ca34ad66 Add latest changes from gitlab-org/gitlab@master 2023-05-04 03:09:07 +00:00
GitLab Bot 0ad8135c1f Add latest changes from gitlab-org/gitlab@master 2023-03-17 21:08:46 +00:00
GitLab Bot a3487798ae Add latest changes from gitlab-org/gitlab@master 2023-02-08 18:07:53 +00:00
GitLab Bot ec558ad8ed Add latest changes from gitlab-org/gitlab@master 2023-01-25 15:09:25 +00:00
GitLab Bot a59aa00d8a Add latest changes from gitlab-org/gitlab@master 2022-12-22 12:07:22 +00:00
GitLab Bot e2280e2f9c Add latest changes from gitlab-org/gitlab@master 2022-11-12 03:10:39 +00:00
GitLab Bot b5bdf6e521 Add latest changes from gitlab-org/gitlab@master 2022-11-08 15:09:34 +00:00
GitLab Bot 983f6954d1 Add latest changes from gitlab-org/gitlab@master 2022-11-02 18:10:05 +00:00
GitLab Bot d489dd79cf Add latest changes from gitlab-org/gitlab@master 2022-05-03 00:08:25 +00:00
GitLab Bot 47bb4281f0 Add latest changes from gitlab-org/gitlab@master 2022-04-12 12:08:50 +00:00
GitLab Bot bc3187f6d9 Add latest changes from gitlab-org/gitlab@master 2022-04-05 18:09:00 +00:00
GitLab Bot 52192e0f19 Add latest changes from gitlab-org/gitlab@master 2022-03-23 09:07:30 +00:00
GitLab Bot e5f2a04e9d Add latest changes from gitlab-org/gitlab@master 2021-06-29 12:08:48 +00:00
GitLab Bot 2ac4833015 Add latest changes from gitlab-org/gitlab@master 2020-10-08 18:08:32 +00:00
GitLab Bot 7a1895c74a Add latest changes from gitlab-org/gitlab@master 2020-08-11 18:10:06 +00:00
GitLab Bot 4a3ba3e5f2 Add latest changes from gitlab-org/gitlab@master 2020-05-22 09:08:09 +00:00
GitLab Bot f2151c65d5 Add latest changes from gitlab-org/gitlab@master 2020-05-19 15:08:04 +00:00
GitLab Bot 31a340adab Add latest changes from gitlab-org/gitlab@master 2020-05-15 18:07:52 +00:00
GitLab Bot e4c711546c Add latest changes from gitlab-org/gitlab@master 2019-09-18 21:06:34 +00:00
Matija Čupić 7cee6139c0
Find build by sha from ref
Adds ability to find builds by sha when only specifying a ref.
2019-07-23 20:55:59 +02:00
Steve Azzopardi ab6b9a1c43
Remove get_build method for find_by_id
The original intention of `get_build` was as a workaround not to violate
`CodeReuse/ActiveRecord`. `find_by_id` does the exact same thing but
does not violate the rubocop rule.
2019-01-09 16:33:22 +01:00
Steve Azzopardi f9c8822afd
Create `get_build` for project model
Inside of `Projects::ArtifactsController` and
`Projects::BuildArtifactsController` we fetching the build by id using
active record directly which violates `CodeReuse/ActiveRecord` rubocop
rule. Create `get_build` inside of `project` model which does the same
thing.
2019-01-07 17:29:26 +01:00
Steve Azzopardi 7ac32ae282
Refactor project.latest_successful_builds_for def
`project.latest_successful_builds_for(ref)` is being used to find a
single job all the time. This results into us having to call `find_by`
inside of the controller which violates our CodeReuse/ActiveRecord
rubocop rule.

Refactor `project.latest_successful_builds_for(ref)` to
`project.latest_successful_build_for(job_name, ref)` which will execute
the `find_by` inside of the model.

Also create `project.latest_successful_build_for!(job_name, ref)` which
raises an exception instead of returning nil.
2019-01-07 17:29:26 +01:00
Douwe Maan 16f7243fef
Revert "[Rails5] Set request.format for artifacts_controller"
This reverts commit c48e7dc263.

# Conflicts:
#	app/controllers/projects/artifacts_controller.rb
2018-12-03 12:29:01 +01:00
Kamil Trzciński 5da2f42dc9 backport: Always proxy reports downloads
This makes to always proxy reports
2018-11-07 21:49:45 +01:00
Matija Čupić 22d1ec661d Disable artifact validation for download action 2018-10-16 13:01:48 +00:00
Matija Čupić 48c911b75e CE Resolve "Refactor code quality similar to JUnit tests" 2018-10-02 17:01:26 +00:00
gfyoung 12ee2753c1 Enable even more frozen string in app/controllers
Enables frozen string for some vestigial files as
well as the following:

* app/controllers/projects/**/*.rb
* app/controllers/sherlock/**/*.rb
* app/controllers/snippets/**/*.rb
* app/controllers/users/**/*.rb

Partially addresses #47424.
2018-09-25 22:43:49 -07:00
Yorick Peterse 2039c8280d
Disable existing offenses for the CodeReuse cops
This whitelists all existing offenses for the various CodeReuse cops, of
which most are triggered by the CodeReuse/ActiveRecord cop.
2018-09-11 17:32:00 +02:00
blackst0ne c48e7dc263 [Rails5] Set request.format for artifacts_controller
Since Rails 5 request.format gets set by extension if it's not explicitly
set.
That means artifacts_controller#file no longer works as expected.
This commit explicitly sets request.format for artifacts_controller#file.
2018-06-16 21:46:31 +11:00
Grzegorz Bizon 6ca02a4150 Merge branch 'zj-multiple-artifacts-ee' into 'master'
Multiple artifacts ee

See merge request gitlab-org/gitlab-ee!3276
2018-02-28 20:44:09 +01:00
Kamil Trzciński e0401df121 Merge commit '11c67e7c2f992299ff5918ce67995b73d1e0be6d' into object-storage-ee-to-ce-backport 2018-02-28 20:35:22 +01:00
Douwe Maan bc76062774 Merge branch 'jej/lfs-object-storage' into 'master'
Can migrate LFS objects to S3 style object storage

Closes #2841

See merge request !2760
2018-02-28 20:29:37 +01:00
Zeger-Jan van de Weg e4d07f12b6
Test against public projects 2017-10-05 12:41:22 +02:00
Zeger-Jan van de Weg 8cbfe3aea6
Redirect to pages daemon 2017-10-03 12:34:24 +02:00
Grzegorz Bizon 3b874414c0 Do not use artifacts metadata to access single artifact 2017-09-05 12:34:49 +02:00
Douwe Maan fe13f11041 Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
Sean McGivern 04251829ba Merge branch 'dm-collapsed-blob' into 'master'
Consistent diff and blob size limit names

See merge request !11776
2017-06-01 09:10:53 +00:00
Douwe Maan aed0387f97 Consistent diff and blob size limit names 2017-05-29 17:02:02 -05:00
Lin Jen-Shin 71777a4a18 Rename BuildsController to JobsController
Rename other URL generators

admin_builds_path -> admin_jobs_path

Fix tests and more renaming

Fix more tests

Also change build_id to job_id in the controller
2017-05-17 20:17:30 +08:00
Douwe Maan 0f58eb6bde Add artifact file page that uses the blob viewer 2017-05-04 08:50:12 -05:00
Douwe Maan df36f1f47b Add breadcrumb, build header and pipelines submenu to artifacts browser 2017-05-03 16:32:36 -05:00