cubicweb #1627724 hooks_control context manager silently looses effect after a commit [resolved]

When using the hooks_control context manager, a commit within the context results in all the hooks being re-enabled, without even a warning being displayed.

We must either:

  • ensure that the user is warned
  • forbid doing anything within the context manager after a commit by raising an exception
  • ensure the hooks control is still in effect after a commit (possibly with a perf impact)
done in3.13.0
load left0.000
closed by<not specified>