Skip to content

Commit

Permalink
changing deployment table
Browse files Browse the repository at this point in the history
  • Loading branch information
Claire.Nicholas authored and Claire.Nicholas committed Oct 2, 2023
1 parent 18d8044 commit bd5d3dc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ services:
# https://go-vela.github.io/docs/administration/server/
server:
container_name: server
image: target/vela-server:latest
image: server:local
networks:
- vela
environment:
Expand Down
8 changes: 8 additions & 0 deletions src/elm/Pages/Deployments/View.elm
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ deploymentsToRows repo_ deployments =
tableHeaders : Table.Columns
tableHeaders =
[ ( Just "-icon", "" )
, ( Nothing, "id" )
, ( Nothing, "number" )
, ( Nothing, "target" )
, ( Nothing, "commit" )
Expand Down Expand Up @@ -191,6 +192,13 @@ renderDeployment repo_ deployment =
, Util.testAttribute <| "deployments-row-id"
]
[ text <| String.fromInt deployment.id ]
, td
[ attribute "data-label" "number"
, scope "row"
, class "break-word"
, Util.testAttribute <| "deployments-row-number"
]
[ text <| String.fromInt deployment.number ]
, td
[ attribute "data-label" "target"
, scope "row"
Expand Down
6 changes: 6 additions & 0 deletions src/elm/Vela.elm
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,7 @@ type alias KeyValuePair =

type alias Deployment =
{ id : Int
, number : Int
, repo_id : Int
, url : String
, user : String
Expand Down Expand Up @@ -1249,6 +1250,7 @@ type alias Build =
, started : Int
, finished : Int
, deploy : String
, deploy_number : Int
, clone : String
, source : String
, title : String
Expand Down Expand Up @@ -1282,6 +1284,7 @@ decodeBuild =
|> optional "started" int -1
|> optional "finished" int -1
|> optional "deploy" string ""
|> optional "deploy_number" int -1
|> optional "clone" string ""
|> optional "source" string ""
|> optional "title" string ""
Expand Down Expand Up @@ -1669,6 +1672,7 @@ type alias Hook =
, error : String
, status : String
, link : String
, deployment_id : Int
}


Expand All @@ -1687,6 +1691,7 @@ decodeHook =
|> optional "error" string ""
|> optional "status" string ""
|> optional "link" string ""
|> optional "deployment_id" int -1


{-| decodeHooks : decodes json from vela into list of hooks
Expand Down Expand Up @@ -1992,6 +1997,7 @@ decodeDeployment : Decoder Deployment
decodeDeployment =
Decode.succeed Deployment
|> optional "id" int -1
|> optional "number" int -1
|> optional "repo_id" int -1
|> optional "url" string ""
|> optional "user" string ""
Expand Down

0 comments on commit bd5d3dc

Please sign in to comment.