v1.2.1: fix tracker_add in executor + labelCls + descr context + script order
Opus review fixes: - executor.py: tracker_add inside executor after instance_uid, before params/run (A3, orphan protection) - executor.py: descr parameter (version/context instead of hardcoded) - api_test.py: pass client_id/stand/descr, remove duplicate tracker_add - scenario.py: pass client_id/stand/descr with scenario context - params-render.js: fix labelCls ReferenceError in renderMapFixedRow (pre-existing bug) - index.html: params-render.js already before operations.js (verified)
This commit is contained in:
@@ -128,16 +128,19 @@ def run_scenario(client, steps, client_id, stand, user_email, app_version, scena
|
||||
if is_create:
|
||||
instance_uid = None
|
||||
display_name = f"{AUTOTEST_PREFIX}{scenario_name}-{uuid.uuid4().hex[:6]}"
|
||||
descr = f"scenario {scenario_name} step {step_num}"
|
||||
else:
|
||||
instance_uid = _resolve_instance_uid(step, bindings, instance_map)
|
||||
if not instance_uid:
|
||||
raise ValueError(f"No instance for step {step_num} — need CREATE before non-create operations")
|
||||
display_name = None
|
||||
descr = None
|
||||
|
||||
# 4. Запуск через executor
|
||||
result = execute_operation(
|
||||
client, svc_id, op_name, instance_uid, resolved_params,
|
||||
svc_op_id=svc_op_id, display_name=display_name
|
||||
svc_op_id=svc_op_id, display_name=display_name, descr=descr,
|
||||
client_id=client_id, stand=stand
|
||||
)
|
||||
if not result["ok"]:
|
||||
raise RuntimeError(f"{op_name}: {result['error']} (step: {result['failed_step']})")
|
||||
|
||||
Reference in New Issue
Block a user