Skip to content

Commit 852026e

Browse files
authored
fix: [AAP-46785] set log_tracking_id when copying activations (#1322)
The log_tracking_id is missing in the copied activation. https://issues.redhat.com/browse/AAP-46785 ![image](https://github.com/user-attachments/assets/4b3495a1-065e-4fe7-874c-88a59d5259fb)
1 parent 67ba8c6 commit 852026e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/aap_eda/api/serializers/activation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,7 @@ def copy(self) -> dict:
573573
"rulebook_rulesets": activation.rulebook_rulesets,
574574
"git_hash": activation.rulebook.project.git_hash,
575575
"project": activation.rulebook.project,
576+
"log_tracking_id": str(uuid.uuid4()),
576577
}
577578
if activation.eda_system_vault_credential:
578579
inputs = yaml.safe_load(

tests/integration/api/test_activation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,6 +1260,7 @@ def test_copy_activation(
12601260
activation = models.Activation.objects.filter(id=data["id"]).first()
12611261
assert activation.name == "another_name"
12621262
assert activation.is_enabled is False
1263+
assert activation.log_tracking_id is not None
12631264

12641265

12651266
@pytest.mark.django_db

0 commit comments

Comments
 (0)