cubicweb #2522159 Entity.set_attributes should invalidate its attribute cache [rejected]

This methods ends by:

self.cw_attr_cache.update(kwargs)

But since hooks machinery may change the value of these attributes "under the feets", it's not safe to update the Entity local attribute cache with values given as argument. The simplest is to invalidate them from this cache.

For example, this "overoptimistic" implementation of set_attributes is problematic for automatic Named Entity recognition.

priorityimportant
typebug
done in3.15.6
load0.000
load left0.000
closed by<not specified>