fix(jira,tests): push system gaps to Jira, show detect suggested procedure in catalog
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
flag_blue_review_gap saved system_gaps on the test but the Jira in_review comment never mentioned it, so a flagged capability gap was silently invisible in Jira. Now included in the comment and tagged with a system-gap label for filtering. Also surfaces TestTemplate.detect_suggested_procedure as a read-only reference in the Test Catalog's create-from-template modal — it was only ever shown in the admin template editor, not here, so an approved suggestion appeared to vanish when viewed from the catalog.
This commit is contained in:
@@ -508,6 +508,8 @@ def _build_state_comment(
|
||||
"",
|
||||
f"*Detection Result:* {test.detection_result or 'N/A'}",
|
||||
]
|
||||
if test.system_gaps:
|
||||
lines += ["", "h4. ⚠️ System Gap Flagged", test.system_gaps]
|
||||
if test.blue_summary:
|
||||
lines += ["", "h4. Blue Team Summary", test.blue_summary]
|
||||
if test.remediation_steps:
|
||||
@@ -933,6 +935,8 @@ def push_test_event(
|
||||
"Could not unassign %s for state %s: %s",
|
||||
link.jira_issue_key, new_state, exc_a,
|
||||
)
|
||||
if test.system_gaps:
|
||||
_add_jira_label(jira, link.jira_issue_key, "system-gap")
|
||||
|
||||
link.last_synced_at = datetime.utcnow()
|
||||
db.flush()
|
||||
|
||||
Reference in New Issue
Block a user