thoughtworks / metrik

An easy-to-use, cross-platform measurement tool that pulls data out of CD pipelines and analysis the four key metrics for you.
MIT License
354 stars 87 forks source link

Update project name results to unnecessary quotation marks due to lack of payload validation (only using raw string) #149

Closed wildan3105 closed 1 year ago

wildan3105 commented 1 year ago

Describe the context of this enhancement Currently, it's accepting the raw body as the payload when updating the project name. This results in unnecessary quotation marks (i.e. \"Foundation team\") stored in the database when updating the project name from the UI.

Describe the solution you'd like Let's change the payload to only accept JSON (in the backend) as well as change how UI sends request accordingly so we have consistent, clean, and structured data both in the frontend and backend. This is also consistent on how we accept JSON body when creating project.

I can help to fix this if necessary, just let me know what your opinion on this 😄