User loosing favorites when adding device Topic is solved

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
modjor
Posts: 3
Joined: Wednesday 19 February 2020 19:25
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

User loosing favorites when adding device

Post by modjor »

Hi everyone,

i'm seeing an issue since Domoticz 2020.1. I just updated to 2021.1 but same behavior still occurs regarding users loosing their favorites :

Steps to duplicate
- Create a new user John (user, not admin or spectator)
- Assign some devices to this user
- Logon using this john user account
- Add some devices to your favorites
- Logon as admin, add a new device to user John devices list.
- Logon as user John, open the main dashboard with your favorites

Result : User lost all his favorites and need to recreate them.
Expected result : all favorites added before the new devices was added to this user device list should still be present as favorites.

I can see this behavior on Domoticz 2021.1, on Synology docker and RPi.

I was going to create a bug report on github, but would like to start here first (maybe it some kind of expected behavior...?)
Any idea whats going on ?

Thanks!
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: User loosing favorites when adding device

Post by waaren »

modjor wrote: Saturday 22 May 2021 21:09 User lost all his favorites and need to recreate them.
Thx for reporting!
This is indeed an oversight in the code (main/WebServer.cpp line 13067-13087) I will create a Pull Request to fix this. It might take some time and it will only be available in a future build.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
modjor
Posts: 3
Joined: Wednesday 19 February 2020 19:25
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: User loosing favorites when adding device

Post by modjor »

Cool, thanks for letting me know I was not crazy ;) I will keep an eye on the futures changelogs.
And thanks for the amazing work. I've been using Domoticz for a couple of years now, and I'm loving it (1 master, 2 slaves, orchestrating lights, watering, mouse traps etc... works like a charm !).
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: User loosing favorites when adding device

Post by waaren »

modjor wrote: Saturday 22 May 2021 21:09 User lost all his favorites and need to recreate them.
Should be fixed when PR 4838 is merged.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
modjor
Posts: 3
Joined: Wednesday 19 February 2020 19:25
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: User loosing favorites when adding device

Post by modjor »

waaren wrote: Saturday 22 May 2021 23:59 Should be fixed when PR 4838 is merged.
Thank you !
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest