Add ALD Transition Console preview and Astra lab build workflow

This commit is contained in:
scandalist-trash committed 2026-10-27 10:50:43 -04:00
1 parent f330a3c00a
commit e5c6a2fc0e
199 files changed
+9866

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
#include "ComplianceEvaluator.h"
namespace ald {QJsonObject ComplianceEvaluator::evaluate(const QJsonObject &card,const QJsonValue &runtime,const QJsonValue &persistent){const bool verified=card.value("mapping_state").toString()=="VERIFIED";auto expected=card.value("accepted_value");QString result="NOT_CHECKED";if(verified&&!runtime.isUndefined()&&!runtime.isNull()&&!expected.isNull()){result=runtime==expected?"PARTIAL":"FAIL";if(runtime==expected&&persistent==expected)result="PASS";}return {{"result",result},{"applicability","UNKNOWN"},{"runtime",runtime},{"persistent_next_boot",persistent},{"certification_claim",false},{"reason_ru",verified?"Технический результат выбранного профиля":"Исходная рекомендация и профиль Astra ещё не сопоставлены; наблюдение не является соответствием"}};}}