When restoring archive (full or groups) dynamic groups are created empty
When your restore an archive, dynamic groups are restored empty, meaning that Rules won't be generated on those empty groups.
Since dynamic group reload occurs only every 5 minutes, Rules won't be deployed until taht event occurs.
It can be launched manually within the webapp, in Administration -> Settings page or by using the api on the url /api/dyngroup/reload
When groups are restaured and automatic group reloading should be launched before deployment.
Fixes #4480: When restoring archive (full or groups) dynamic groups are created empty
Updated by François ARMAND over 5 years ago
- Status changed from New to 8
So, it's less trivial than initially thought:
- 1/ updating dynamic group is done asynchronously, so if we start it before starting promise generation, the result will certainly not be what we want (only partial update of groups ?)
- 2/ but if we issue a not asynchronous dynamic update, it may be long and make the import process even longer.
So, it seems that we want a way to start other things at the end of the dyngroup generation, something "on complete" (that does not exists for now).
Updated by Nicolas CHARLES 3 months ago
- Target version changed from 4.1.20 to 5.0.10
Targeting to 5.0, as #14758 take care of the workaround in 4.1
when importing an archive, it should compute node list before saving. This should be synchronized, as others actions can happen at the same time (accept node, change request, etc), and this computation should block loading nodes list in policy generation