Encoding a dictionary key in a full access path is usually done with single quotes, i.e. when accessing a dictionary key, the full access path will look like "my_dict['my_key'].some_attribute". When changing some_attr through the frontend, the key will be encoded in double quotes: 'my_dict["my_key"].some_attribute'. Thus, I have to perform some normalization.
This PR adds normalization to the DataServiceObserver, transforming double quotes into single quotes before comparing to the property_deps_dict. (This is the dictionary containing the dependencies of properties -> needed to have automatic updates for python properties objects when their dependencies change.)
Encoding a dictionary key in a full access path is usually done with single quotes, i.e. when accessing a dictionary key, the full access path will look like
"my_dict['my_key'].some_attribute"
. When changingsome_attr
through the frontend, the key will be encoded in double quotes:'my_dict["my_key"].some_attribute'
. Thus, I have to perform some normalization.This PR adds normalization to the
DataServiceObserver
, transforming double quotes into single quotes before comparing to theproperty_deps_dict
. (This is the dictionary containing the dependencies of properties -> needed to have automatic updates for python properties objects when their dependencies change.)