administrate icon indicating copy to clipboard operation
administrate copied to clipboard

Potential solution to handling arrays

Open sdwolfz opened this issue 1 year ago • 0 comments

Before I proceed with this further I need to know if this is the right approach, and also I'd like advice on how to handle errors in cases like this.

This has the potential to be a big change reason why I just showcase a small sample.

The idea is: if we have an array column we should treat it as a string containing JSON data that people can edit as is. It's the simplest thing I could think of.

Right now, if you have an array column in the DB, the value is neither displayed nor saved correctly in the form, which leads to corrupting the data if the form is submitted with that field.

What do you think? Is this approach OK? Should I continue with this for other fields types?

sdwolfz avatar Apr 04 '24 20:04 sdwolfz