Commit 870b6dc6 authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch 'ak/project-path' into 'master'

Remove project_path key in environments entity

See merge request gitlab-org/gitlab!25365
parents b4f6148f 65355d7e
...@@ -8,10 +8,6 @@ module EE ...@@ -8,10 +8,6 @@ module EE
prepended do prepended do
expose :rollout_status, if: -> (*) { can_read_deploy_board? }, using: ::RolloutStatusEntity expose :rollout_status, if: -> (*) { can_read_deploy_board? }, using: ::RolloutStatusEntity
expose :project_path do |environment|
project_path(environment.project)
end
expose :logs_path, if: -> (*) { can_read_pod_logs? } do |environment| expose :logs_path, if: -> (*) { can_read_pod_logs? } do |environment|
project_logs_path(environment.project, environment_name: environment.name) project_logs_path(environment.project, environment_name: environment.name)
end end
......
...@@ -57,9 +57,6 @@ ...@@ -57,9 +57,6 @@
"folder_path": { "folder_path": {
"type": "string" "type": "string"
}, },
"project_path": {
"type": "string"
},
"created_at": { "created_at": {
"type": "date" "type": "date"
}, },
......
...@@ -108,7 +108,6 @@ const sharedEnvironmentData = id => ({ ...@@ -108,7 +108,6 @@ const sharedEnvironmentData = id => ({
has_stop_action: false, has_stop_action: false,
id, id,
last_deployment: null, last_deployment: null,
project_path: '/root/review-app',
rollout_status: {}, rollout_status: {},
state: 'available', state: 'available',
stop_path: `/root/review-app/environments/${id}/stop`, stop_path: `/root/review-app/environments/${id}/stop`,
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
"stop_path": { "type": "string" }, "stop_path": { "type": "string" },
"cancel_auto_stop_path": { "type": "string" }, "cancel_auto_stop_path": { "type": "string" },
"folder_path": { "type": "string" }, "folder_path": { "type": "string" },
"project_path": { "type": "string" },
"created_at": { "type": "string", "format": "date-time" }, "created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" },
"auto_stop_at": { "type": "string", "format": "date-time" }, "auto_stop_at": { "type": "string", "format": "date-time" },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment