Use a builder to create Workflow in tests

Change-Id: I8098e6daa632e30d99a35a4d8325b5665647b308
Merge "Use a builder to create Workflow in tests" into 4515_apply_triggers
rulesManages has a processTriggers

… that, at this point, returns involved rules

Change-Id: Idb1e4641935dd3374955a65cc5deb3dce129cf80
Merge remote-tracking branch 'stable/master' into 4515_apply_triggers
Replace get siblings implementation

Fetch everything from DB in one query

Change-Id: I70bc91083ea5e44071735e786af9c24cc67c5d24
Process rules when an artifact change

This implementation assume it's called when given rule was triggered by
artifact change

Change-Id: Iaaa85167972777c8d06c0b97f636a1f1173529bd
Invoke RulesProcessor::process for each involved rule

Change-Id: I44a73baa5bf685331ffec48b00897e0934bfeb5c
Pass the current user

This is a follow-up of the previous message that should not have been
merged like that. The reviewer should have seen that only half of the
modification were effective.

The current user were needed by a part of the code but not given at the
other end.

Change-Id: Ibd5f80d1901e76be52d61bd96fc15b1e59f097ea
The new changeset is not the previous one.

Calling getLastChangeset after having created a new changeset in the
database should return this really new changeset instead of the previous
one.

Furthermore, the field->saveNewChangeset were expecting the previous,
not the new changeset.

Change-Id: I829f72837aac13ab5ffa3dad439d60918633dd68
User manager can delegate User instance creation to plugins

Change-Id: I76c2de92b9c3dbaa12ccd87f9ec89e63702605bd
Tracker can instanciate a workflow user

Change-Id: I09f51506675d9277d5267427c0d6b995b9544205
Introduce logging to ease debugging

Change-Id: Idfd6c0914a315ad9e3e6bee0f91d4621fe1284d8
When RulesProcessor make a change, it's done as Workflow manager user

Change-Id: I277cb0dff0de965c8db4dff53e86a8556d1f9566
Propagate use of permissions constants through the Tracker_FormElement class

Change-Id: I571e227fa02d96cece16831a1b23bb3afea6764a
Workflow user is the king

Change-Id: I280aca1f19092c5e57d916867a4e2293a3eadefb
Typo in debug traces

Change-Id: If1d29e7b652e542f44a281783fb6ab981f16d217
To manage both tests and prod, use iterators

Change-Id: I8a9fc5305df9142f415d3428ed1fb5b9bf3e436c
Increment log messages for better visulisation of the stack

This produces the following:

... [WF] ┌ Start Workflow::after(101, […], 18661, 18659)
... [WF] │ ┌ Start Tracker_Workflow_Trigger_RulesManager::processTriggers(101, 18661)
... [WF] │ └ End Tracker_Workflow_Trigger_RulesManager::processTriggers(101, 18661)
... [WF] └ End Workflow::after(101, […], 18661, 18659)

Change-Id: I2f98bf7d5aa28da4458bd00c8eb30359312fe863
Merge "Typo in debug traces" into 4515_apply_triggers
Merge "Increment log messages for better visulisation of the stack" into 4515_apply_triggers