[FIX] Moved check of constraint to a python function

Merged Santiago Said requested to merge GapDetection into 8.0-stage

Merge request reports