Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]:Somebugs in Tag Endpoint #46

Closed
ybaskayadevops opened this issue Feb 23, 2022 · 6 comments
Closed

[Bug]:Somebugs in Tag Endpoint #46

ybaskayadevops opened this issue Feb 23, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@ybaskayadevops
Copy link

What happened?

Hi Awork,

I hav egot some issues.

1-)https://api.awork.io/api/v1/projects/47c69c59-1c93-ec11-a22a-38563d684e0e/tags in this end point coming a lot of tags but in system. only 5 Tags.

image

2-)Second bug is-->I am trying to delete Tags

https://api.awork.io/api/v1/projects/47c69c59-1c93-ec11-a22a-38563d684e0e/deletetags

[
{
"name": "Prio_Gold",
"entityId": "47c69c59-1c93-ec11-a22a-38563d684e0e"
},
{
"name": "Prio_High",
"entityId": "47c69c59-1c93-ec11-a22a-38563d684e0e"
},
{
"name": "Prio_Low",
"entityId": "47c69c59-1c93-ec11-a22a-38563d684e0e"
},
{
"name": "Prio_Standard",
"entityId": "47c69c59-1c93-ec11-a22a-38563d684e0e"
},
{
"name": "Status_Hold",
"entityId": "47c69c59-1c93-ec11-a22a-38563d684e0e"
}
]

and I am getting an error-->TraceID:2541af3389cc0b9c

Thank you for Your help,

Best regards,
Yusuf Baskaya

What is the trace id of the call?

TraceID:2541af3389cc0b9c

Relevant error responses

No response

@ybaskayadevops ybaskayadevops added the bug Something isn't working label Feb 23, 2022
@sebastianrosch
Copy link
Contributor

Hi @ybaskayadevops thanks for the bug report.
I found an issue with tags when creating a project using a template, and it seems that this is what's causing the duplicate tags you're getting. This is fixed now for all future projects. I'll continue looking into a solution for the projects you already created. The invalid data there is failing the DELETE call from what I can see.

@ybaskayadevops
Copy link
Author

ybaskayadevops commented Feb 24, 2022

HI Sebastion,

did you deploy to the server? Because I am getting same errors. :((

image

https://api.awork.io/api/v1/projects/05aad667-6e95-ec11-a22a-38563d684e0e/tags

[
{
"name": "Color_Blue",
"color": "azure",
"entityId": "05aad667-6e95-ec11-a22a-38563d684e0e"
},
{
"name": "Color_Blue",
"color": "azure",
"entityId": "05aad667-6e95-ec11-a22a-38563d684e0e"
},
{
"name": "Color_Green",
"color": "green",
"entityId": "05aad667-6e95-ec11-a22a-38563d684e0e"
},
{
"name": "Color_Green",
"color": "green",
"entityId": "05aad667-6e95-ec11-a22a-38563d684e0e"
},
{
"name": "Color_Orange",
"color": "coral",
"entityId": "05aad667-6e95-ec11-a22a-38563d684e0e"
},
{
"name": "Color_Red",
"color": "red",
"entityId": "05aad667-6e95-ec11-a22a-38563d684e0e"
},
{
"name": "Color_Red",
"color": "red",
"entityId": "05aad667-6e95-ec11-a22a-38563d684e0e"
},
{
"name": "Color_Yellow",
"color": "yellow",
"entityId": "05aad667-6e95-ec11-a22a-38563d684e0e"
},
{
"name": "Color_Yellow",
"color": "yellow",
"entityId": "05aad667-6e95-ec11-a22a-38563d684e0e"
},
{
"name": "Prio_Gold",
"color": "violet",
"entityId": "05aad667-6e95-ec11-a22a-38563d684e0e"
},
{
"name": "Prio_Gold",
"color": "violet",
"entityId": "05aad667-6e95-ec11-a22a-38563d684e0e"
},
{
"name": "Prio_High",
"color": "purple",
"entityId": "05aad667-6e95-ec11-a22a-38563d684e0e"
},
{
"name": "Prio_Low",
"color": "teal",
"entityId": "05aad667-6e95-ec11-a22a-38563d684e0e"
},
{
"name": "Prio_Low",
"color": "teal",
"entityId": "05aad667-6e95-ec11-a22a-38563d684e0e"
},
{
"name": "Prio_Standard",
"color": "arctic",
"entityId": "05aad667-6e95-ec11-a22a-38563d684e0e"
},
{
"name": "Prio_Standard",
"color": "arctic",
"entityId": "05aad667-6e95-ec11-a22a-38563d684e0e"
},
{
"name": "Status_Hold",
"entityId": "05aad667-6e95-ec11-a22a-38563d684e0e"
},
{
"name": "Status_Hold",
"entityId": "05aad667-6e95-ec11-a22a-38563d684e0e"
}
]

trace-id: 2da556962dbd2353

image

thank you for your help.

@sebastianrosch
Copy link
Contributor

Hi @ybaskayadevops yes it's been deployed. As I mentioned, the fix is related to creating a project from a template, not for deleting tags directly. The deletion fails because there was an issue when creating the project.
I did now also clean up the incorrectly created data.
If you fetch the tags now, it should only return the tags that actually exist, and then the delete should succeed. Could you confirm this?

@ybaskayadevops
Copy link
Author

ybaskayadevops commented Feb 24, 2022

Hi Sebastian,

I want to explain what I did

-I created project from the your api from template
-Our Ceo selected tags which he does not want.
-the tags coming which is in Template it is okey.

Then I call to your delete tags api (it is not working.)

So the problem is not one project. (Every day we'll create more then one project. )
I made everthing but I stucked this step.

if you advice me a way I will do this.

Thank you for your help.

@sebastianrosch
Copy link
Contributor

@ybaskayadevops Can you please try again? As I said, I've just cleaned up the erroneous data which prevented the call from succeeding. Can you please try this both for a new project (created from a template), as well as an existing one? Deleting tags should now work in both cases. If it doesn't, could you provide me with the latest trace ids again? Thanks!

@ybaskayadevops
Copy link
Author

Hi Sebastian,

Now it is working Thank you.

Best regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants