Skip to content

Fix single file editor not working for json files

Paul Slaughter requested to merge ps-fix-single-file-editor-json into master

What does this MR do and why?

Fix single file editor not working for json files

  • Regression was introduced in this MR.
  • We need to tell axios to not transform the response
  • Added test to cover this issue

Changelog: fixed

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

Before After
Screenshot_2024-03-08_at_1.00.27_PM Screenshot_2024-03-08_at_12.59.43_PM

How to set up and validate locally

  1. Start GDK and open a project with a .json file
  2. Click Edit dropdown and Edit single file
  3. Confirm that the actual content is loaded not [Object object]

Thanks

Thanks to @Taucher2003 for pairing on this with me!

Edited by Paul Slaughter

Merge request reports