Add enum to graphql mutation
What does this MR do and why?
Addressing issue.
We usually prefer to use enum in graphql mutations, so this is just a quick refactor to apply enum instead of string.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
screenshots to update an instance of Ci::Catalog::VerifiedNamespace
When instance is not Gitlab.com![Screenshot_2024-05-27_at_13.46.37](/-/project/278964/uploads/9a576906a212049503519ca4ea81505b/Screenshot_2024-05-27_at_13.46.37.png)
![Screenshot_2024-05-27_at_13.46.54](/-/project/278964/uploads/dce7300abc8793a938ee2f3540dd382b/Screenshot_2024-05-27_at_13.46.54.png)
When namespace is unknown/invalid
Success update for existing Ci::Catalog::VerifiedNamespace
screenshots for new instance of Ci::Catalog::VerifiedNamespace
Before calling the endpoint![Screenshot_2024-05-27_at_14.01.14](/-/project/278964/uploads/80c578067fa3ada594dd2bb85c423417/Screenshot_2024-05-27_at_14.01.14.png)
![Screenshot_2024-05-27_at_14.02.55](/-/project/278964/uploads/71b00364503f654bf947931564f3a3a8/Screenshot_2024-05-27_at_14.02.55.png)
![Screenshot_2024-05-27_at_14.07.01](/-/project/278964/uploads/9802c49605f127dafbc9b357b61bab19/Screenshot_2024-05-27_at_14.07.01.png)
![Screenshot_2024-05-27_at_14.03.10](/-/project/278964/uploads/9f10d7dda5aae568b20491f1ae224707/Screenshot_2024-05-27_at_14.03.10.png)
![Screenshot_2024-05-27_at_14.03.19](/-/project/278964/uploads/7fd278459e343e8d7b5617f0dac7142e/Screenshot_2024-05-27_at_14.03.19.png)
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Edited by Kasia Misirli