diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2021-07-22 14:09:46 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-07-22 15:52:12 +0200 |
commit | 261d490c4e8ad9b6cee46e82a8ad029eeaf6cd6b (patch) | |
tree | eef5c5974e3c33c26441da9b738b6e6d82fa5112 /tests/units/test_0020_get_client_setup.py | |
parent | 33d8cecfe1ce64c517fe995875397b32e534bdb0 (diff) |
#1052 Populate session column when adding actions
If the scope of a command, procedure or task is related to a group of
computers then actions associated with that schedule can share the same
session value.
og_dbi_add_action was not initializing session value, as it is only used
for visualization purposes in the legacy web interface.
This patch enables og_dbi_add_action to populate session column by
assigning it the id value of the first action related to the scope.
Example: Power off command for a room scope of 4 clients will result in
4 actions, a power off for each client. The first action id will determine
the session value for the rest.
Diffstat (limited to 'tests/units/test_0020_get_client_setup.py')
0 files changed, 0 insertions, 0 deletions