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]: Webhook labels shows complete history of updates #6394

Closed
1 task done
gijsriet opened this issue Jan 14, 2025 · 1 comment
Closed
1 task done

[bug]: Webhook labels shows complete history of updates #6394

gijsriet opened this issue Jan 14, 2025 · 1 comment
Assignees
Labels
🐛bug Something isn't working

Comments

@gijsriet
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

Similar to the previously mentioned bug here: https://github.com/makeplane/plane/issues/6235
When updating labels, the webhook is not returning the currently attached labels, but full history of added labels, including the same label multiple times.

in my example after the task through the API a couple of times:

{
    "event": "issue",
    "action": "updated",
    "webhook_id": "cdd4a6b9-8a05-4e6c-858c-61866a879e62",
    "workspace_id": "6e7843dd-2538-4ff7-af95-211ed6ad4e74",
    "data": {
        "id": "cc316e3b-1db6-4f59-a12f-1442fb9328e5",
        "labels": [
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },
            {
                "id": "944bf5e2-8b89-484b-aae3-494a6da01b38",
                "name": "2024",
                "color": "#8ED1FC"
            },

etc.

Steps to reproduce

  1. Create task with labels
  2. Update task and labels through api
  3. see labels in webhook data

Environment

Production

Browser

None

Variant

Self-hosted

Version

1.6.0

@gijsriet gijsriet added the 🐛bug Something isn't working label Jan 14, 2025
@pushya22 pushya22 assigned pablohashescobar and unassigned vihar and pushya22 Jan 15, 2025
@pablohashescobar
Copy link
Collaborator

@gijsriet Thanks for reporting the issue, it was fixed under this PR #6241. It will be available in the upcoming release.

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

No branches or pull requests

4 participants