cubicweb-container #3642859 [hooks] Selection ambiguity on the SetContainerRelation hook for containers with shared structural rtypes [done]

When working with several containers, the build_container_hooks method creates a per-container specialized version of the SetContainerRelation hook. The selectors of these specialized hooks are based on a match_rtype predicate operating on the structural rtypes.

When several containers share a structural relation type, the selectors of their SetContainerRelationHooks are the same, hence we have a selection ambiguity between these hooks.

priorityimportant
typebug
done in2.7.0
load0.000
load left0.000
closed by<not specified>
patch[test] Add test showing SetContainerRelation hook selection ambiguity for rtypes shared between several containers (related to #3642859) [applied]Fix a failing old test, showing a design problem similar to what is exhibited in #3642859. [rejected][test] Add test showing SetContainerRelation hook selection ambiguity for rtypes shared between several containers (related to #3642859) [rejected]