ioBroker.javascript icon indicating copy to clipboard operation
ioBroker.javascript copied to clipboard

[Feature request] Backward search of objects

Open obodeldog opened this issue 6 years ago • 4 comments

If you use an object in many places (scripts, scenes, vis pages, etc.), it would be desirable to have an overview where the object is used everywhere.

obodeldog avatar Sep 20 '18 11:09 obodeldog

This could be hard or even next to impossible to do. If its used in an adapter, one would have to search the code of that adapter and its modules.

Also it might be that the id is not in cleartext: getObject("adapter.0" + somethingCalculated + ".state")

AlCalzone avatar Sep 20 '18 12:09 AlCalzone

We must try. Of course not all cases will be covered, but something simple (99,5% of usecases) will be possible.

GermanBluefox avatar Sep 22 '18 18:09 GermanBluefox

Could it be an option to capture those references as key/value whenever an object like view, script, scene, enum, text-to-command is being created/modified/deleted ? Then only that table needs to be searched.

OstfrieseUnterwegs avatar Nov 08 '18 09:11 OstfrieseUnterwegs

Yes, but this is a lot of data to gather during normal system runtime ... so if, it needs to make sure that there are no performance issues caused by collecting those data ... just for such a rare usecase ...

Apollon77 avatar Nov 08 '18 09:11 Apollon77