fix(jira): unwrap detection_result enum in the in_review comment
Aegis CI / lint-and-test (push) Has been cancelled
Snyk Security Scan / Python vulnerabilities (backend) (push) Has been cancelled
Snyk Security Scan / npm vulnerabilities (frontend) (push) Has been cancelled
Snyk Security Scan / Docker image vulnerabilities (backend) (push) Has been cancelled
Aegis CI / lint-and-test (push) Has been cancelled
Snyk Security Scan / Python vulnerabilities (backend) (push) Has been cancelled
Snyk Security Scan / npm vulnerabilities (frontend) (push) Has been cancelled
Snyk Security Scan / Docker image vulnerabilities (backend) (push) Has been cancelled
Was rendering the raw Python enum repr (TestResult.detected) instead of the plain value, the only branch in _build_state_comment that skipped _enum_value(). Caught while verifying the system-gap fix on a live ticket.
This commit is contained in:
@@ -506,7 +506,7 @@ def _build_state_comment(
|
|||||||
lines += [
|
lines += [
|
||||||
"Blue Team has completed evaluation. Test is awaiting lead validation.",
|
"Blue Team has completed evaluation. Test is awaiting lead validation.",
|
||||||
"",
|
"",
|
||||||
f"*Detection Result:* {test.detection_result or 'N/A'}",
|
f"*Detection Result:* {_enum_value(test.detection_result) or 'N/A'}",
|
||||||
]
|
]
|
||||||
if test.system_gaps:
|
if test.system_gaps:
|
||||||
lines += ["", "h4. ⚠️ System Gap Flagged", test.system_gaps]
|
lines += ["", "h4. ⚠️ System Gap Flagged", test.system_gaps]
|
||||||
|
|||||||
Reference in New Issue
Block a user