Skip to content

[Metadata Management] Updating ProductTemplates is not correct #3107

@maxceem

Description

@maxceem

ProductTemplates have a root field called questions instead of sections. But when we display them in the Metadata Editor we show their JSON with questions replaced with sections:

image

This most likely happens because of these lines https://github.com/appirio-tech/connect-app/blob/dev/src/routes/metadata/components/MetaDataPanel.jsx#L595-L597

If we edit something in such ProductTemplate JSON and save it, it would be saved with sections root element instead of questions.

For example, if I do it locally for a demo template. When I load it the template it has questions as a root element:

image

But when I save it, it is saved with sections as a root element:

image

As a result, on the server we have a product template with two root elements questions and sections.

image

As client side we use only questions for productTemplates, the change would make effect.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions