Skip to content

Plotter Parameter issue on creation

Summary

The plotterparameter editor on beat.editor is not consistent with the behavior we have on the web platform. It doesn't save the changes but all the fields from the plotter it targets.

Steps to reproduce

When creating a new plotter parameter, ONLY the updated parameters from the plotter should be saved in the json, not everything.

Each time an entry is modified, it's added to the json data of the plotterparameter. Unchanged values shouldn't be updated and saved if they were never touched.

What is the current bug behavior?

All parameters from the plotter get saved to the newly created plotterparameter.

What is the expected correct behavior?

They should be shown visually without being saved in the json data file

Relevant logs and/or screenshots

Please have a look on the beat web platform for a better understanding of the problem

This is what is shown on screen after creation and during edition: plotterparameter_test_shown_1

plotterparameter_test_shown_2

This is what is saved after update on one field: plotterparameter_test

This is what we have after creation or small update on one field on beat.editor: plotterparameter_beat_editor

Possible fixes

Having a signal that checks which parameter field has been updated

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information