Skip to content

Calling UpdateChaosExperiment with same name returns error #5320

@1spyral

Description

@1spyral

What happened:
When calling the updateChaosExperiment mutation and passing in the same experiment name that the experiment already had, an error is thrown, stating that it's a duplicate name.

What you expected to happen:
The mutation should work as usual with no changes to the experiment name.

Where can this issue be corrected? (optional)

In chaoscenter/graphql/server/pkg/chaos_experiment/handler/handler.go, there is logic to catch duplicate experiment names in UpdateChaosExperiment, but it throws an error even if the duplicate experiment name belongs to the original experiment.

How to reproduce it (as minimally and precisely as possible):
Call updateChaosExperiment mutation with the experiment name field as the experiment's existing name.

Anything else we need to know?:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions