File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2531,9 +2531,11 @@ def perform_create(self, serializer):
25312531 if jira_project := (jira_helper .get_jira_project (jira_driver ) if jira_driver else None ):
25322532 push_to_jira = push_to_jira or jira_project .push_all_issues
25332533
2534- # Add pghistory context for audit trail (adds to existing middleware context)
2534+ # Add pghistory context for audit trail (adds to existing middleware context).
2535+ # /api/vue is the Pro UI
2536+ source = "import_vue" if "/api/vue/" in self .request .path else "import_api"
25352537 pghistory .context (
2536- source = "import_api" ,
2538+ source = source ,
25372539 scan_type = serializer .validated_data .get ("scan_type" ),
25382540 )
25392541 serializer .save (push_to_jira = push_to_jira )
@@ -2692,8 +2694,10 @@ def perform_create(self, serializer):
26922694 test_id = test .id if test else serializer .validated_data .get ("test" , {})
26932695 if hasattr (test_id , "id" ):
26942696 test_id = test_id .id
2697+ # /api/vue is the Pro UI
2698+ source = "reimport_vue" if "/api/vue/" in self .request .path else "reimport_api"
26952699 pghistory .context (
2696- source = "reimport_api" ,
2700+ source = source ,
26972701 test_id = test_id if isinstance (test_id , int ) else None ,
26982702 scan_type = serializer .validated_data .get ("scan_type" ),
26992703 )
You can’t perform that action at this time.
0 commit comments