Skip to content

Commit 84d46c0

Browse files
pre-commit-ci[bot]SahilJat
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c99d8c7 commit 84d46c0

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

api/core/workflows_services.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
from django.db import transaction
55
from django.utils import timezone
66

7-
from environments.tasks import rebuild_environment_document
87
from features.versioning.models import EnvironmentFeatureVersion
98
from features.versioning.signals import environment_feature_version_published
10-
from features.versioning.tasks import trigger_update_version_webhooks
119
from features.workflows.core.exceptions import ChangeRequestNotApprovedError
1210

1311
if TYPE_CHECKING:

api/tests/unit/features/versioning/test_unit_versioning_receiver.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
from features.versioning.receivers import update_environment_document
77

88

9-
def test_update_environment_document__immediate_publish__does_not_schedule_rebuild() -> None:
9+
def test_update_environment_document__immediate_publish__does_not_schedule_rebuild() -> (
10+
None
11+
):
1012
# Given
1113
mock_instance = mock.MagicMock()
1214
mock_instance.live_from = timezone.now() - timedelta(seconds=1)
@@ -22,7 +24,9 @@ def test_update_environment_document__immediate_publish__does_not_schedule_rebui
2224
mock_rebuild.delay.assert_not_called()
2325

2426

25-
def test_update_environment_document__scheduled_publish__schedules_rebuild_at_live_from() -> None:
27+
def test_update_environment_document__scheduled_publish__schedules_rebuild_at_live_from() -> (
28+
None
29+
):
2630
# Given
2731
future = timezone.now() + timedelta(hours=1)
2832
mock_instance = mock.MagicMock()

docs/docs/deployment-self-hosting/observability/_events-catalogue.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ Attributes:
381381
### `workflows.change_request.committed`
382382

383383
Logged at `info` from:
384-
- `api/core/workflows_services.py:39`
384+
- `api/core/workflows_services.py:37`
385385

386386
Attributes:
387387
- `environment.id`
@@ -391,15 +391,15 @@ Attributes:
391391
### `workflows.missing_live_segment`
392392

393393
Logged at `warning` from:
394-
- `api/core/workflows_services.py:114`
394+
- `api/core/workflows_services.py:100`
395395

396396
Attributes:
397397
- `draft_segment`
398398

399399
### `workflows.segment_revision_created`
400400

401401
Logged at `info` from:
402-
- `api/core/workflows_services.py:119`
402+
- `api/core/workflows_services.py:105`
403403

404404
Attributes:
405405
- `revision_id`

0 commit comments

Comments
 (0)