dashy icon indicating copy to clipboard operation
dashy copied to clipboard

[BUG] Edit Config not saving changes

Open UrekD opened this issue 3 years ago • 6 comments

Environment

Self-Hosted (Docker)

Version

2.1.0

Describe the problem

Updating the config with the "old" editor tree/code doesn't save changes to the config file on disk, just writes the config again with same data. Using the interactive editor it saves it fine. Looking at the POST request send when trying to save, in case of the interactive editor the value passed includes the config with the changes. But when looking at the same POST with the other editor it just passes on the same config as before it was edited.

Tested on my config and also a fresh container. Tried clearing cookies and rebuild, but I'm guessing that doesn't matter much if data doesn't reach the config anyway. Also saving to local doesn't work either in the "old" editor. If you preview the changes it writes changes instantly, I'm guessing it uses the same layout and functions as the interactive editor. Most likely related to #603, opened this as that had no real info.

Additional info

Interactive edit writes new data to config notepad++_27NxJVwWrs

"Old" editor writes same/old data to config notepad++_mEBJLhS4P1

Edit using "Old" editor, text in the notepad is the config value found in the save POST request notepad++_9IChP4BMOr

Config value passed to the POST request when edited with interactive editor notepad++_kVjPDpQBbj

Please tick the boxes

UrekD avatar Jun 20 '22 17:06 UrekD

I am also having this same issue.

Glitch3dPenguin avatar Jun 28 '22 21:06 Glitch3dPenguin

I am working on a complete re-work of how config is managed to make things faster, and that should also fix this issue.

I think duplicate of #603, but this ticket is much clearer with lots of really good info, so keeping open.

Lissy93 avatar Jun 28 '22 22:06 Lissy93

This issue has gone 6 weeks without an update. To keep the ticket open, please indicate that it is still relevant in a comment below. Otherwise it will be closed in 5 working days.

liss-bot avatar Jul 29 '22 01:07 liss-bot

See https://github.com/Lissy93/dashy/discussions/799

chevdor avatar Jul 29 '22 07:07 chevdor

This issue has gone 6 weeks without an update. To keep the ticket open, please indicate that it is still relevant in a comment below. Otherwise it will be closed in 5 working days.

liss-bot avatar Aug 29 '22 01:08 liss-bot

See #799

UrekD avatar Aug 29 '22 16:08 UrekD

This issue has gone 6 weeks without an update. To keep the ticket open, please indicate that it is still relevant in a comment below. Otherwise it will be closed in 5 working days.

liss-bot avatar Sep 29 '22 01:09 liss-bot

I'll go ahead and close this one you already got it planned in #799, to prevent having to reply it to every 6 weeks and save you having to close it in the future anyway. Thanks for the hard work :)

UrekD avatar Oct 03 '22 11:10 UrekD