Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Packs/Base/ReleaseNotes/1_41_72.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Scripts

##### CommonServerPython

Fixed an issue in the *create_updated_last_run_object* function where the fetch limit was incorrectly reset after encountering only duplicate incidents. Causing the system to miss future incidents when lookback was enabled.
Original file line number Diff line number Diff line change
Expand Up @@ -12227,7 +12227,7 @@ def create_updated_last_run_object(last_run, incidents, fetch_limit, look_back,
elif len(incidents) == 0:
new_last_run = {
'time': end_fetch_time,
'limit': fetch_limit,
'limit': new_limit if look_back > 0 else fetch_limit,
}
else:
latest_incident_fetched_time = get_latest_incident_created_time(incidents, created_time_field, date_format,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9022,7 +9022,7 @@ def test_fetch_with_look_back(self, mocker, params, result_phase1, result_phase2
},
{
'time': '2022-04-06T10:11:00',
'limit': 3,
'limit': 6,
'found_incident_ids': {'1': '', '2': '', '3': ''}
},
{
Expand All @@ -9038,7 +9038,7 @@ def test_fetch_with_look_back(self, mocker, params, result_phase1, result_phase2
},
{
'time': '2022-04-07T10:13:00',
'limit': 3,
'limit': 6,
'found_incident_ids': {'1': '', '2': '', '3': ''}
}
)
Expand Down
2 changes: 1 addition & 1 deletion Packs/Base/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Base",
"description": "The base pack for Cortex XSOAR.",
"support": "xsoar",
"currentVersion": "1.41.71",
"currentVersion": "1.41.72",
"author": "Cortex XSOAR",
"serverMinVersion": "6.0.0",
"url": "https://www.paloaltonetworks.com/cortex",
Expand Down
Loading