gathering / gondul

Network management/monitoring system specialized for temporary events
http://tech.gathering.org
GNU General Public License v2.0
43 stars 10 forks source link

Switch editing: Fix broken JSON fields that are "dobule-stringified" #202

Closed KristianLyng closed 5 years ago

KristianLyng commented 5 years ago

Workaround:

https://github.com/olemathias/gondul/commit/065a025bcc09cafa1f799016f16e3221842d1af8#diff-b97a628016b60ac27f91ad34d48a34b1R45

So the core of the problem is that I've messed up in nmsType: The getter basically needs to go away and just return ._value instead, then we also need to use toString for actually stringifying.... Ideally we want toEditor and toViewer also, so as top support richer editing.