We have identified two issues when refreshing devices that cause duplicate devices to appear inside of scout.
Tasks:
When manually refreshing inventory in /controllers/devices.js all devices from all servers are grabbed into a list. This can cause duplications to occur as the lists are just concatenated. We should make this collection a set with a unique identified based on UDID.
When updating devices in the upsert device command it is currently limited by JPS Id (scout id) and UDID. We can limit only by UDID and this should solve many device duplication issues.
We have identified two issues when refreshing devices that cause duplicate devices to appear inside of scout.
Tasks:
/controllers/devices.js
all devices from all servers are grabbed into a list. This can cause duplications to occur as the lists are just concatenated. We should make this collection a set with a unique identified based on UDID.