You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(location_manager): exclude special endpoint statuses from reactivation logic
fix(location): optimize get_or_create methods for LocationFindingReference and LocationProductReference
test(import_reimport): enhance tests to skip reactivation for special statuses in endpoint and location contexts
Copy file name to clipboardExpand all lines: dojo/importers/location_manager.py
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -127,17 +127,19 @@ def update_location_status(
127
127
"""Update the list of locations from the new finding with the list that is in the old finding"""
128
128
# New endpoints are already added in serializers.py / views.py (see comment "# for existing findings: make sure endpoints are present or created")
129
129
# So we only need to mitigate endpoints that are no longer present
130
-
# using `.all()` will mark as mitigated also `endpoint_status` with flags `false_positive`, `out_of_scope` and `risk_accepted`. This is a known issue. This is not a bug. This is a future.
0 commit comments