Skip to content

Conversation

StevenReitsma
Copy link

Closes #5171

📑 Description

When using the Keep provider to create alerts in a foreach loop, all generated alerts may end up sharing the same (often last) data, especially if the alert template contains nested structures (such as dictionaries or lists). Replace the shallow copy with a deep copy to ensure that each alert in the loop gets a fully independent copy of the template, including all nested structures.

Thanks to @akipham15 for the research in #5171

✅ Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

ℹ Additional Information

n/a

Copy link

vercel bot commented Oct 7, 2025

@StevenReitsma is attempting to deploy a commit to the KeepHQ Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Oct 7, 2025
@CLAassistant
Copy link

CLAassistant commented Oct 7, 2025

CLA assistant check
All committers have signed the CLA.

@dosubot dosubot bot added Bug Something isn't working Provider Providers related issues labels Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working Provider Providers related issues size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🐛 Bug]: Keep Provider: Alerts in foreach loop share data due to shallow copy (copy.copy instead of copy.deepcopy)

2 participants