Skip to content

[$50] [Metadata management] JSON is cleared when there is a syntax error #2769

@maxceem

Description

@maxceem

Expected behavior

Current JSON should stay.

Actual behavior

Current JSON is replaced with {} empty object.

Steps to reproduce the problem (scenario 1)

  • Go to project templates list https://connect.topcoder-dev.com/metadata/projectTemplates
  • Select any template and click Maximize to edit the template JSON
  • Make a syntax mistake, for example, add a comma after some value
  • Select another browser tab, and after coming back to the tab with JSON. JSON will be empty

See screencast https://monosnap.com/file/hrscvjoxVMUJbPKQjVIjtalH1P4TYf

Steps to reproduce the problem (scenario 2)

  • Go to project templates list https://connect.topcoder-dev.com/metadata/projectTemplates
  • Select any template and click Maximize to edit the template JSON
  • Copy all the JSON to your text editor
  • In your text editor make some syntax mistake in the JSON
  • Copy the JSON from your text editor with the syntax mistake and paste to the JSON editor on Connect App
  • Instead of pasting your JSON with a syntax error, it will become empty

See screencast https://monosnap.com/file/8xTAFe9zM3iK7mnKKZcC2t9wjVLjqQ

fyi @vikasrohit @RishiRajSahu

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions