Duplicated activity item

I'm calling the graphql api to restart my service. Mutation is done as follow.
mutation DeploymentRestart($id: String!) {
deploymentRestart(id: $id)
}
mutation DeploymentRestart($id: String!) {
deploymentRestart(id: $id)
}
Deployment logs show correctly the container restart (first screenshot). It shows 2 lines, one from today and one from previous day/restart triggers. However, in the activity thingy, there are 2 lines for today's and yesterday's restarts (second and third screenshots) 34849d22-d685-4e73-8858-fbd4fe42ea65
No description
No description
No description
6 Replies
Percy
Percy4w ago
Project ID: 34849d22-d685-4e73-8858-fbd4fe42ea65
Brody
Brody4w ago
is this reproducible?
jeremy
jeremyOP4w ago
I went back to old activities, and looks like every restart done through the api mutation show duplicated. When I have some time, I can try to create a new project/deploy a dummy template and call the graphql api to try reproduce from scratch. Unless you have a faster way in mind to reproduce?
Brody
Brody4w ago
not that I can think of, that sounds good to me
jeremy
jeremyOP4w ago
Alright, could reproduce. 1. Create a new project 2. Deploy any template, in my case "Node.js" 3. Get the active deployment id 4. CURL
curl --request POST \
--url https://backboard.railway.app/graphql/v2 \
--header 'Authorization: Bearer HEHE' \
--header 'Content-Type: application/json' \
--data '{"query":"mutation DeploymentRestart{deploymentRestart(id: \"ID\")}"}'
curl --request POST \
--url https://backboard.railway.app/graphql/v2 \
--header 'Authorization: Bearer HEHE' \
--header 'Content-Type: application/json' \
--data '{"query":"mutation DeploymentRestart{deploymentRestart(id: \"ID\")}"}'
5. Duplicated restarted item in the activity log. Did 2 restarts, both times the item were duplicated My token comes from here if that matters https://railway.app/account/tokens project id in case you wanna check the activity feed 032b17f2-ce06-42ce-ac5a-e46698b2d8c3
Brody
Brody3w ago
perfect thank you! I have been able to reproduce reliably and have made a ticket
Want results from more Discord servers?
Add your server