Merge pull request #729 from grafana/dev

release v.1.0.46
This commit is contained in:
Joey Orlando 2022-10-27 15:35:42 +02:00 committed by GitHub
commit d9c6104208
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 9 deletions

View file

@ -1,5 +1,10 @@
# Change Log
## v1.0.46 (2022-10-27)
- Bug fixes
## v1.0.45 (2022-10-27)
- Bug fix to revert commit which removed unused engine code

View file

@ -232,21 +232,13 @@ class Alert(models.Model):
return distinction
@property
def skip_signal(self):
try:
_ = self.migrator_lock
return True
except Alert.migrator_lock.RelatedObjectDoesNotExist:
return False
def listen_for_alert_model_save(sender, instance, created, *args, **kwargs):
AlertGroup = apps.get_model("alerts", "AlertGroup")
"""
Here we invoke AlertShootingStep by model saving action.
"""
if created and instance.group.maintenance_uuid is None and not instance.skip_signal:
if created and instance.group.maintenance_uuid is None:
# RFCT - why additinal save ?
instance.save()