Commit graph

23 commits

Author SHA1 Message Date
GitLab Bot
733befe96a Add latest changes from gitlab-org/gitlab@master 2020-02-14 09:08:43 +00:00
GitLab Bot
6b13a226dd Add latest changes from gitlab-org/gitlab@master 2019-11-29 09:06:31 +00:00
GitLab Bot
b7dfe2ae40 Add latest changes from gitlab-org/gitlab@master 2019-09-13 13:26:31 +00:00
Shinya Maeda
f246db4446 Fix deployable nil exception on job controller
When deployable is nil, we gracefully take care of the case.
2019-08-30 18:45:00 +07:00
Tim Zallmann
459309fa57 Merge branch '66037-deployment-user' into 'master'
Return correct user for manual deployments

See merge request gitlab-org/gitlab-ce!32004
2019-08-23 20:50:01 +00:00
Krasimir Angelov
d86b77bf20 Extract logic who created deployment into Deployment#deployed_by
Prefer the deployable user over the deployment user.

Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/66037.
2019-08-22 15:36:55 +03:00
Krasimir Angelov
92ac94c26e Replace finished_at with deployed_at for Deployment entity
Instead of `finished_at` attribute use `deployed_at` methods which also
takes into account the deployment status.

Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/56130.
2019-08-20 12:39:19 +03:00
Krasimir Angelov
18159235a3 Add finished_at to the internal API Deployment entity
Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/56130.
2019-08-15 10:53:48 +03:00
Grzegorz Bizon
6ef27f7744 Expose build environment latest deployable name and path 2019-05-24 10:04:35 +01:00
Grzegorz Bizon
de24df98a3 Do not serialize deployment details for build details page 2019-05-24 10:04:05 +01:00
Shinya Maeda
6b99848be3 Move permission check of manual actions of deployments 2019-02-08 12:53:35 +00:00
Shinya Maeda
2dd7339c01 Add scheduled actions in deployment entity 2018-10-04 17:52:36 +09:00
gfyoung
dce26700b2 Enable frozen string in app/serializers/**/*.rb
Partially addresses #47424.
2018-07-23 11:27:39 -07: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
Kamil Trzcinski
d03e687882 Rename BuildEntity to JobEntity 2017-06-13 09:53:54 +02:00
Pawel Chojnacki
33f7c40f3f use represent_concise instead of separate entity 2017-04-24 22:34:36 +02:00
Pawel Chojnacki
4469946105 Reduce the amount of data deployment endpoint returns 2017-04-20 11:58:31 +02:00
Pawel Chojnacki
7320387343 Use DeploymentSerializer to create deployment json 2017-03-28 12:52:13 +02:00
Grzegorz Bizon
54ee0df78a Do not use absolute URLS in entities use relative 2016-11-17 16:10:12 +01:00
Grzegorz Bizon
b0a4635be3 Simplify implementation of entity serializers 2016-11-04 15:00:39 +01:00
Grzegorz Bizon
3968b07d7e Add tests for serialization entities, add user entity 2016-11-04 13:08:58 +01:00
Grzegorz Bizon
7dd6485a0f Add manual actions for deployment serialization 2016-11-03 13:43:27 +01:00
Grzegorz Bizon
573921cb9d Implement entities needed for environments folders 2016-11-03 13:27:00 +01:00